1 <?xml version=
"1.0" encoding=
"ISO-8859-15"?>
2 <transfer default=
"chunk">
9 <cat-item tags=
"adj.*"/>
12 <cat-item tags=
"n.*"/>
13 <cat-item tags=
"np.*"/>
16 <cat-item tags=
"sent"/>
19 <cat-item tags=
"det.ind.*"/>
20 <cat-item tags=
"det.def.*"/>
23 <cat-item lemma=
"prpers" tags=
"prn.*"/>
24 <cat-item lemma=
"Prpers" tags=
"prn.*"/>
25 <cat-item tags=
"prn.subj.*"/>
26 <cat-item tags=
"prn.obj.*"/>
29 <cat-item tags=
"prn.tn.*"/>
30 <cat-item tags=
"prn.tn"/>
32 <def-cat n=
"verbnm"><!--verb no modal -->
33 <cat-item tags=
"vblex.*"/>
34 <cat-item tags=
"vbser.*"/>
35 <cat-item tags=
"vbhaver.*"/>
38 <cat-item tags=
"vaux.*"/>
41 <cat-item tags=
"cnjadv"/>
42 <cat-item tags=
"cnjadv.*"/>
44 <def-cat n=
"prep"> <!-- preposition -->
47 <def-cat n=
"end_punct">
48 <cat-item tags=
"sent"/>
50 <cat-item tags=
"rpar"/>
53 <cat-item tags=
"pref"/>
54 <cat-item tags=
"pref.*"/>
59 <def-attr n=
"nbr"> <!-- Number -->
60 <attr-item tags=
"sg"/>
61 <attr-item tags=
"pl"/>
62 <attr-item tags=
"sp"/>
64 <def-attr n=
"gen"> <!-- Gender -->
67 <attr-item tags=
"mf"/>
70 <attr-item tags=
"cnjadv"/>
71 <attr-item tags=
"cnjcoo"/>
72 <attr-item tags=
"cnjsub"/>
76 <attr-item tags=
"n.acr"/>
77 <attr-item tags=
"n.unc"/>
78 <attr-item tags=
"np.loc"/>
81 <attr-item tags=
"adj"/>
82 <attr-item tags=
"adj.sint"/>
83 <attr-item tags=
"comp"/>
84 <attr-item tags=
"sup"/>
87 <attr-item tags=
"det.ind"/>
88 <attr-item tags=
"det.def"/>
90 <def-attr n=
"tipus_prn">
91 <attr-item tags=
"prn"/>
92 <attr-item tags=
"prn.subj"/>
93 <attr-item tags=
"prn.obj"/>
95 <def-attr n=
"pers"> <!-- Person -->
96 <attr-item tags=
"p1"/>
97 <attr-item tags=
"p2"/>
98 <attr-item tags=
"p3"/>
100 <def-attr n=
"a_verb">
101 <attr-item tags=
"vblex"/>
102 <attr-item tags=
"vbser"/>
103 <attr-item tags=
"vbhaver"/>
104 <attr-item tags=
"vbmod"/>
105 <attr-item tags=
"vaux"/>
108 <attr-item tags=
"pii"/>
109 <attr-item tags=
"pis"/>
110 <attr-item tags=
"pri"/>
111 <attr-item tags=
"past"/>
112 <attr-item tags=
"pres"/>
118 <def-var n=
"numero"/>
119 <def-var n=
"genere"/>
120 <def-var n=
"nombre"/>
121 <def-var n=
"caseFirstWord"/>
126 <def-macro n=
"firstWord" npar=
"1">
131 <clip pos=
"1" side=
"sl" part=
"a_np_acr"/>
144 <clip pos=
"1" side=
"tl" part=
"lem"/>
148 <var n=
"caseFirstWord"/>
156 <var n=
"caseFirstWord"/>
167 </section-def-macros>
169 <rule comment=
"REGLA: NOM (per a donar valor a la variable de gènere, i per a col·locar la cua en les multiparaules amb g"> <pattern>
170 <pattern-item n=
"nom"/>
173 <call-macro n=
"firstWord">
174 <with-param pos=
"1"/>
177 <chunk name=
"nom" case=
"caseFirstWord">
179 <tag><lit-tag v=
"SN.UNDET"/></tag>
180 <tag><clip pos=
"1" side=
"tl" part=
"gen"/></tag>
181 <tag><clip pos=
"1" side=
"tl" part=
"nbr"/></tag>
184 <clip pos=
"1" side=
"tl" part=
"lemh"/>
185 <clip pos=
"1" side=
"tl" part=
"a_nom"/>
186 <clip pos=
"1" side=
"tl" part=
"nbr"/>
187 <clip pos=
"1" side=
"tl" part=
"lemq"/>
192 <var n=
"caseFirstWord"/>
200 <pattern-item n=
"verbnm"/>
206 <tag><lit-tag v=
"V"/></tag>
209 <clip pos=
"1" side=
"tl" part=
"lem"/>
210 <clip pos=
"1" side=
"tl" part=
"a_verb"/>
211 <clip pos=
"1" side=
"tl" part=
"temps"/>
218 <rule comment=
"REGLA: VAUX VBLEX">
220 <pattern-item n=
"verbm"/>
221 <pattern-item n=
"verbnm"/>
227 <tag><lit-tag v=
"V"/></tag>
230 <clip pos=
"1" side=
"tl" part=
"lem"/>
231 <clip pos=
"1" side=
"tl" part=
"a_verb"/>
232 <clip pos=
"1" side=
"tl" part=
"temps"/>
236 <clip pos=
"2" side=
"tl" part=
"lem"/>
237 <clip pos=
"2" side=
"tl" part=
"a_verb"/>
238 <clip pos=
"2" side=
"tl" part=
"temps"/>
245 <rule comment=
"REGLA: CNJADV">
247 <pattern-item n=
"cnjadv"/>
251 <chunk name=
"cnjadv">
253 <tag><lit-tag v=
"CNJADV"/></tag>
256 <clip pos=
"1" side=
"tl" part=
"lem"/>
257 <clip pos=
"1" side=
"tl" part=
"a_cnj"/>
265 <rule comment=
"REGLA: ADJ">
267 <pattern-item n=
"adj"/>
273 <tag><lit-tag v=
"ADJ"/></tag>
277 <clip pos=
"1" side=
"tl" part=
"lem"/>
278 <clip pos=
"1" side=
"tl" part=
"a_adj"/>
285 <rule> <!-- In <PRN><VBLEX> constructions, propagate the person / number of
286 the personal pronoun to the verb. -->
288 <pattern-item n=
"prpers"/>
289 <pattern-item n=
"verbnm"/>
294 <test> <!-- If it is third person singular in the present tense -->
297 <clip pos=
"1" side=
"tl" part=
"pers"/>
301 <clip pos=
"2" side=
"tl" part=
"temps"/>
305 <clip pos=
"1" side=
"tl" part=
"nbr"/>
311 <chunk name=
"prn_verb">
313 <tag><lit-tag v=
"PRN"/></tag>
314 <tag><lit-tag v=
"V"/></tag>
317 <clip pos=
"1" side=
"tl" part=
"lem"/> <!-- Pronoun -->
318 <clip pos=
"1" side=
"tl" part=
"tipus_prn"/>
319 <clip pos=
"1" side=
"tl" part=
"pers"/>
320 <clip pos=
"1" side=
"tl" part=
"gen"/>
321 <clip pos=
"1" side=
"tl" part=
"nbr"/>
323 <clip pos=
"2" side=
"tl" part=
"lem"/> <!-- Verb -->
324 <clip pos=
"2" side=
"tl" part=
"a_verb"/>
326 <clip pos=
"1" side=
"tl" part=
"pers"/>
327 <clip pos=
"1" side=
"tl" part=
"nbr"/>
335 <clip pos=
"2" side=
"tl" part=
"temps"/>
340 <chunk name=
"prn_verb">
342 <tag><lit-tag v=
"PRN"/></tag>
343 <tag><lit-tag v=
"V"/></tag>
346 <clip pos=
"1" side=
"tl" part=
"lem"/>
347 <clip pos=
"1" side=
"tl" part=
"tipus_prn"/>
348 <clip pos=
"1" side=
"tl" part=
"pers"/>
349 <clip pos=
"1" side=
"tl" part=
"gen"/>
350 <clip pos=
"1" side=
"tl" part=
"nbr"/>
352 <clip pos=
"2" side=
"tl" part=
"lem"/>
353 <clip pos=
"2" side=
"tl" part=
"a_verb"/>
361 <chunk name=
"prn_verb">
363 <tag><lit-tag v=
"PRN"/></tag>
364 <tag><lit-tag v=
"V"/></tag>
367 <clip pos=
"1" side=
"tl" part=
"lem"/>
368 <clip pos=
"1" side=
"tl" part=
"tipus_prn"/>
369 <clip pos=
"1" side=
"tl" part=
"pers"/>
370 <clip pos=
"1" side=
"tl" part=
"gen"/>
371 <clip pos=
"1" side=
"tl" part=
"nbr"/>
373 <clip pos=
"2" side=
"tl" part=
"lem"/>
374 <clip pos=
"2" side=
"tl" part=
"a_verb"/>
375 <clip pos=
"2" side=
"tl" part=
"temps"/>
384 <rule> <!-- "nie" at the end of a phrase - remove it. this is a hack-->
386 <pattern-item n=
"adv"/>
387 <pattern-item n=
"end_punct"/>
394 <clip pos=
"1" side=
"sl" part=
"lem"/>
401 <tag><lit-tag v=
"cm"/></tag>
404 <clip pos=
"2" side=
"tl" part=
"whole"/>
411 <chunk name=
"default">
413 <tag><lit-tag v=
"adj"/></tag>
416 <clip pos=
"1" side=
"tl" part=
"whole"/>
418 <clip pos=
"2" side=
"tl" part=
"whole"/>
427 <rule comment=
"REGLA: DET NOM">
429 <pattern-item n=
"det"/>
430 <pattern-item n=
"nom"/>
434 <chunk name=
"det_nom" case=
"caseFirstWord">
436 <tag><lit-tag v=
"SN"/></tag>
437 <tag><clip pos=
"2" side=
"sl" part=
"gen"/></tag>
438 <tag><var n=
"nombre"/></tag>
441 <clip pos=
"1" side=
"tl" part=
"lem"/>
442 <clip pos=
"1" side=
"tl" part=
"a_det"/>
443 <clip pos=
"2" side=
"tl" part=
"nbr"/>
447 <clip pos=
"2" side=
"tl" part=
"lemh"/>
448 <clip pos=
"2" side=
"tl" part=
"a_nom"/>
449 <clip pos=
"2" side=
"tl" part=
"nbr"/>
450 <clip pos=
"2" side=
"tl" part=
"lemq"/>
455 <var n=
"caseFirstWord"/>
461 <rule comment=
"REGLA: PRN PR PRN">
463 <pattern-item n=
"prn"/>
464 <pattern-item n=
"prep"/>
465 <pattern-item n=
"prpers"/>
469 <chunk name=
"det_nom" case=
"caseFirstWord">
471 <tag><lit-tag v=
"PRN"/></tag>
472 <tag><var n=
"nombre"/></tag>
475 <clip pos=
"1" side=
"tl" part=
"lem"/>
476 <clip pos=
"1" side=
"tl" part=
"tipus_prn"/>
477 <clip pos=
"1" side=
"tl" part=
"pers"/>
478 <clip pos=
"1" side=
"tl" part=
"gen"/>
479 <clip pos=
"3" side=
"tl" part=
"nbr"/>
480 <clip pos=
"3" side=
"tl" part=
"lemq"/>
484 <clip pos=
"2" side=
"tl" part=
"lem"/>
485 <clip pos=
"1" side=
"tl" part=
"a_prep"/>
489 <clip pos=
"3" side=
"tl" part=
"lem"/>
490 <clip pos=
"1" side=
"tl" part=
"tipus_prn"/>
491 <clip pos=
"1" side=
"tl" part=
"pers"/>
492 <clip pos=
"1" side=
"tl" part=
"gen"/>
493 <clip pos=
"3" side=
"tl" part=
"nbr"/>
494 <clip pos=
"3" side=
"tl" part=
"lemq"/>
499 <var n=
"caseFirstWord"/>
507 <pattern-item n=
"end_punct"/>
513 <tag><lit-tag v=
"punct"/></tag>
516 <clip pos=
"1" side=
"tl" part=
"whole"/>
525 <pattern-item n=
"prefix"/>
526 <pattern-item n=
"verbnm"/>
532 <tag><lit-tag v=
"participle"/></tag>
535 <clip pos=
"2" side=
"tl" part=
"lem"/>
536 <clip pos=
"2" side=
"tl" part=
"a_verb"/>
537 <clip pos=
"1" side=
"tl" part=
"temps"/>
546 <rule> <!-- REGLA: reset variables-->
548 <pattern-item n=
"sent"/>
562 <tag><lit-tag v=
"sent"/></tag>
565 <clip pos=
"1" side=
"tl" part=
"whole"/>