1 <?xml version=
"1.0" encoding=
"UTF-8"?> <!-- -*- nxml -*- -->
10 <def-cat n=
"ger"> <!-- BCN -->
11 <cat-item name=
"ger"/>
15 <cat-item name=
"ger_enc"/>
24 <cat-item name=
"nom"/>
28 <cat-item name=
"nom_nom"/>
32 <cat-item name=
"adj_nom"/>
35 <def-cat n=
"adj_adj_nom">
36 <cat-item name=
"adj_adj_nom"/>
39 <def-cat n=
"nom_i_nom">
40 <cat-item name=
"nom_conj_nom"/>
43 <def-cat n=
"pottenirpronom">
44 <cat-item name=
"verbcj"/>
45 <cat-item name=
"verbcj_perif"/>
46 <cat-item name=
"pro_verbcj"/>
47 <cat-item name=
"pro_verbcj_perif"/>
48 <cat-item name=
"auxmod_inf"/>
49 <cat-item name=
"mod_inf"/>
50 <cat-item name=
"have_pp"/>
51 <cat-item name=
"be_ger"/>
52 <cat-item name=
"auxmod_mod_inf"/>
53 <cat-item name=
"mod_inf_perif"/>
54 <cat-item name=
"pro_be_ger"/>
55 <cat-item name=
"pro_auxmod_inf"/>
56 <cat-item name=
"pro_mod_inf"/>
57 <cat-item name=
"pro_have_pp"/>
58 <cat-item name=
"pro_do_inf"/>
59 <cat-item name=
"pro_mod_inf_perif"/>
60 <cat-item name=
"pro_auxmod_mod_inf"/>
63 <def-cat n=
"pottenirenclitic">
64 <cat-item name=
"verbcj_inf_perif"/>
65 <cat-item name=
"verbcj_inf"/>
66 <cat-item name=
"auxmod_inf_inf"/>
67 <cat-item name=
"have_pp_inf"/>
68 <cat-item name=
"be_inf_inf"/>
74 <def-cat n=
"pro_vblike">
75 <cat-item name=
"pro_vblike"/>
77 <def-cat n=
"pro_vblike2">
78 <cat-item name=
"pro_vblike2"/>
80 <def-cat n=
"pro_vblike3">
81 <cat-item name=
"pro_vblike3"/>
93 <attr-item tags=
"p1"/>
94 <attr-item tags=
"p2"/>
95 <attr-item tags=
"p3"/>
96 <attr-item tags=
"PD"/>
100 <attr-item tags=
"m"/>
101 <attr-item tags=
"f"/>
102 <attr-item tags=
"mf"/>
103 <attr-item tags=
"GD"/>
104 <attr-item tags=
"nt"/>
108 <attr-item tags=
"sg"/>
109 <attr-item tags=
"pl"/>
110 <attr-item tags=
"sp"/>
111 <attr-item tags=
"ND"/>
114 <def-attr n=
"tipus_verb">
115 <attr-item tags=
"SV.pron"/>
116 <attr-item tags=
"SV"/>
120 <attr-item tags=
"inf"/>
121 <attr-item tags=
"pres"/>
122 <attr-item tags=
"past"/>
123 <attr-item tags=
"pri"/>
124 <attr-item tags=
"pp"/>
125 <attr-item tags=
"ger"/>
126 <attr-item tags=
"pprs"/>
127 <attr-item tags=
"subs"/>
131 <attr-item tags=
"DET"/>
132 <attr-item tags=
"UNDET"/>
133 <attr-item tags=
"NUM"/>
134 <attr-item tags=
"PDET"/><!--'Per determinar', per a SN UNDET que han de passar a determinats, transformació que farà el postchunk detectant els PDET. -->
138 <def-attr n=
"a_preadv"><!--BCN (per generar bé els adj_nom quan hi ha comparatius/superlatius-->
139 <attr-item tags=
"preadv"/>
143 <def-attr n=
"a_verb">
144 <attr-item tags=
"vblex"/>
145 <attr-item tags=
"vblex.pron"/>
146 <attr-item tags=
"vbhaver"/>
147 <attr-item tags=
"vbser"/>
148 <attr-item tags=
"vbmod"/>
149 <attr-item tags=
"HAVER"/>
153 <attr-item tags=
"n"/>
154 <attr-item tags=
"np"/>
158 <attr-item tags=
"np.ant"/>
159 <attr-item tags=
"np.cog"/>
160 <attr-item tags=
"np.al"/>
163 <def-attr n=
"a_prnpro">
164 <attr-item tags=
"prn.pro"/>
167 <def-attr n=
"a_prnenc">
168 <attr-item tags=
"prn.enc"/>
174 <def-var n=
"paraula"/>
180 <def-macro n=
"f_bcond" npar=
"1">
198 </section-def-macros>
202 <rule comment=
"CHUNK: nom">
204 <pattern-item n=
"nom"/>
212 <clip pos=
"0" part=
"a_SN"/>
217 <clip pos=
"1" part=
"a_nom"/>
225 <get-case-from pos=
"1">
228 <lit-tag v=
"det.def"/>
229 <clip pos=
"1" part=
"gen"/>
230 <clip pos=
"1" part=
"nbr"/>
238 <clip pos=
"1" part=
"whole"/>
244 <rule comment=
"CHUNK: adj nom">
246 <pattern-item n=
"adj_nom"/>
253 <clip pos=
"0" part=
"a_SN"/>
259 <get-case-from pos=
"1">
262 <lit-tag v=
"det.def"/>
263 <clip pos=
"1" part=
"gen"/>
264 <clip pos=
"1" part=
"nbr"/>
272 <clip pos=
"1" part=
"whole"/>
276 <clip pos=
"2" part=
"whole"/>
279 <choose> <!-- BCN si s'ha afegit l'adverbi 'més' no genera l'adjectiu-->
283 <clip pos=
"2" part=
"a_preadv"/>
284 <lit-tag v=
"preadv"/>
290 <clip pos=
"3" part=
"whole"/>
298 <rule comment=
"CHUNK: nom conj nom">
300 <pattern-item n=
"nom_i_nom"/>
308 <clip pos=
"0" part=
"a_SN"/>
313 <clip pos=
"1" part=
"a_nom"/>
321 <get-case-from pos=
"1">
324 <lit-tag v=
"det.def"/>
325 <clip pos=
"1" part=
"gen"/>
326 <clip pos=
"1" part=
"nbr"/>
330 <clip pos=
"1" part=
"whole"/>
334 <clip pos=
"2" part=
"whole"/>
338 <get-case-from pos=
"3">
341 <lit-tag v=
"det.def"/>
342 <clip pos=
"3" part=
"gen"/>
343 <clip pos=
"3" part=
"nbr"/>
347 <clip pos=
"3" part=
"whole"/>
354 <clip pos=
"1" part=
"whole"/>
358 <clip pos=
"2" part=
"whole"/>
362 <clip pos=
"3" part=
"whole"/>
371 <rule comment=
"CHUNK: adj adj nom">
373 <pattern-item n=
"adj_adj_nom"/>
380 <clip pos=
"0" part=
"a_SN"/>
386 <get-case-from pos=
"1">
389 <lit-tag v=
"det.def"/>
390 <clip pos=
"1" part=
"gen"/>
391 <clip pos=
"1" part=
"nbr"/>
399 <clip pos=
"1" part=
"whole"/>
403 <clip pos=
"2" part=
"whole"/>
407 <clip pos=
"3" part=
"whole"/>
414 <rule comment=
"CHUNK: nom">
416 <pattern-item n=
"nom_nom"/>
424 <clip pos=
"0" part=
"a_SN"/>
429 <clip pos=
"2" part=
"a_nom"/>
437 <get-case-from pos=
"1">
440 <lit-tag v=
"det.def"/>
441 <clip pos=
"1" part=
"gen"/>
442 <clip pos=
"1" part=
"nbr"/>
450 <clip pos=
"1" part=
"whole"/>
454 <clip pos=
"2" part=
"whole"/>
463 <clip pos=
"2" part=
"a_np"/>
464 <lit-tag v=
"np.ant"/>
467 <clip pos=
"2" part=
"a_np"/>
468 <lit-tag v=
"np.cog"/>
476 <clip pos=
"3" part=
"whole"/>
485 <rule comment=
"CHUNK: INF">
487 <pattern-item n=
"inf"/>
492 <test><!--Si no és PD tampoc serà ND, en principi -->
495 <clip pos=
"0" part=
"pers"/>
502 <clip pos=
"1" part=
"lemh"/>
503 <clip pos=
"1" part=
"tags"/>
504 <clip pos=
"0" part=
"pers"/>
505 <clip pos=
"0" part=
"nbr"/>
506 <clip pos=
"1" part=
"lemq"/>
513 <clip pos=
"1" part=
"whole"/>
521 <rule comment=
"CHUNK: GER (BCN)">
523 <pattern-item n=
"ger"/>
528 <test><!--Si no és PD tampoc serà ND, en principi -->
531 <clip pos=
"0" part=
"pers"/>
538 <clip pos=
"1" part=
"lemh"/>
539 <clip pos=
"1" part=
"tags"/>
540 <clip pos=
"0" part=
"pers"/>
541 <clip pos=
"0" part=
"nbr"/>
542 <clip pos=
"1" part=
"lemq"/>
549 <clip pos=
"1" part=
"whole"/>
557 <rule comment=
"CHUNK: GER ENC">
559 <pattern-item n=
"ger_enc"/>
564 <test><!--Si no és PD tampoc serà ND, en principi -->
567 <clip pos=
"0" part=
"pers"/>
576 <clip pos=
"0" part=
"tipus_verb"/>
577 <lit-tag v=
"SV.pron"/>
582 <clip pos=
"2" part=
"lem"/>
583 <lit-tag v=
"prn.pro.ref"/>
584 <clip pos=
"2" part=
"pers"/>
585 <clip pos=
"2" part=
"gen"/>
586 <clip pos=
"2" part=
"nbr"/>
590 <clip pos=
"3" part=
"lem"/>
591 <lit-tag v=
"prn.pro"/>
592 <clip pos=
"3" part=
"pers"/>
593 <clip pos=
"3" part=
"gen"/>
594 <clip pos=
"3" part=
"nbr"/>
598 <clip pos=
"1" part=
"lemh"/>
599 <clip pos=
"1" part=
"tags"/>
600 <clip pos=
"0" part=
"pers"/>
601 <clip pos=
"0" part=
"nbr"/>
602 <clip pos=
"1" part=
"lemq"/>
609 <clip pos=
"2" part=
"lem"/>
610 <lit-tag v=
"prn.pro"/>
611 <clip pos=
"2" part=
"pers"/>
612 <clip pos=
"2" part=
"gen"/>
613 <clip pos=
"2" part=
"nbr"/>
617 <clip pos=
"1" part=
"lemh"/>
618 <clip pos=
"1" part=
"tags"/>
619 <clip pos=
"0" part=
"pers"/>
620 <clip pos=
"0" part=
"nbr"/>
621 <clip pos=
"1" part=
"lemq"/>
632 <clip pos=
"0" part=
"tipus_verb"/>
633 <lit-tag v=
"SV.pron"/>
639 <clip pos=
"1" part=
"whole"/>
642 <clip pos=
"2" part=
"whole"/>
645 <clip pos=
"3" part=
"whole"/>
654 <clip pos=
"1" part=
"whole"/>
657 <clip pos=
"2" part=
"whole"/>
663 <call-macro n=
"f_bcond">
664 <with-param pos=
"1"/>
671 <rule comment=
"CHUNK: BE (there is)">
673 <pattern-item n=
"be"/>
680 <clip pos=
"0" part=
"a_verb"/>
684 <choose><!--en aquesta regla, el nom no diferencia el perifràstic del sintètic: cal mirar si la primera paraula és 'anar' i modificar el lema de la 2a paraula en cas afirmatiu; si no, el de la primera. -->
687 <equal caseless=
"yes">
688 <clip pos=
"1" part=
"lem"/>
693 <clip pos=
"2" part=
"lem"/>
697 <clip pos=
"2" part=
"a_verb"/>
698 <lit-tag v=
"vbhaver"/>
703 <clip pos=
"1" part=
"lem"/>
707 <clip pos=
"1" part=
"a_verb"/>
708 <lit-tag v=
"vbhaver"/>
714 <choose><!--imprimeix, 1 o 2 chunks segons si és perifràstic o no-->
717 <equal caseless=
"yes">
718 <clip pos=
"1" part=
"lem"/>
724 <clip pos=
"1" part=
"whole"/>
728 <clip pos=
"2" part=
"whole"/>
735 <clip pos=
"1" part=
"whole"/>
744 <!-- regles per arreglar els verbs tipus "like->m'agrada" -->
746 <rule comment=
"assigna persona i nombre als verbs tipus LIKE amb pronom">
748 <pattern-item n=
"pro_vblike"/>
752 <clip pos=
"2" part=
"pers"/>
753 <clip pos=
"1" part=
"pers"/>
756 <clip pos=
"2" part=
"nbr"/>
757 <clip pos=
"1" part=
"nbr"/>
761 <clip pos=
"2" part=
"whole"/>
764 <call-macro n=
"f_bcond">
765 <with-param pos=
"1"/>
770 <rule comment=
"assigna persona i nombre als verbs tipus LIKE amb pronom">
772 <pattern-item n=
"pro_vblike2"/>
776 <clip pos=
"2" part=
"pers"/>
777 <clip pos=
"1" part=
"pers"/>
780 <clip pos=
"2" part=
"nbr"/>
781 <clip pos=
"1" part=
"nbr"/>
785 <clip pos=
"2" part=
"whole"/>
789 <clip pos=
"3" part=
"whole"/>
792 <call-macro n=
"f_bcond">
793 <with-param pos=
"2"/>
798 <rule comment=
"assigna persona i nombre als verbs tipus LIKE amb pronom">
800 <pattern-item n=
"pro_vblike3"/>
804 <clip pos=
"2" part=
"pers"/>
805 <clip pos=
"1" part=
"pers"/>
808 <clip pos=
"2" part=
"nbr"/>
809 <clip pos=
"1" part=
"nbr"/>
813 <clip pos=
"2" part=
"whole"/>
817 <clip pos=
"3" part=
"whole"/>
821 <clip pos=
"4" part=
"whole"/>
824 <call-macro n=
"f_bcond">
825 <with-param pos=
"3"/>
830 <!-- regles per arreglar el pronom reflexiu de tercera persona (li-> se)-->
832 <rule comment=
"arregla el pron reflexiu de tercera persona, quan és proclític">
834 <pattern-item n=
"pottenirpronom"/>
841 <clip pos=
"0" part=
"tipus_verb"/>
842 <lit-tag v=
"SV.pron"/>
849 <clip pos=
"0" part=
"pers"/>
854 <clip pos=
"1" part=
"lem"/>
858 <clip pos=
"1" part=
"a_prnpro"/>
859 <lit-tag v=
"prn.pro.ref"/>
862 <clip pos=
"1" part=
"nbr"/>
869 <clip pos=
"1" part=
"whole"/>
873 <clip pos=
"2" part=
"whole"/>
880 <equal caseless=
"yes">
881 <clip pos=
"0" part=
"lem"/>
882 <lit v=
"verbcj_perif"/>
884 <equal caseless=
"yes">
885 <clip pos=
"0" part=
"lem"/>
886 <lit v=
"pro_verbcj"/>
888 <equal caseless=
"yes">
889 <clip pos=
"0" part=
"lem"/>
890 <lit v=
"auxmod_inf"/>
892 <equal caseless=
"yes">
893 <clip pos=
"0" part=
"lem"/>
896 <equal caseless=
"yes">
897 <clip pos=
"0" part=
"lem"/>
900 <equal caseless=
"yes">
901 <clip pos=
"0" part=
"lem"/>
909 <clip pos=
"3" part=
"whole"/>
918 <equal caseless=
"yes">
919 <clip pos=
"0" part=
"lem"/>
920 <lit v=
"pro_verbcj_perif"/>
922 <equal caseless=
"yes">
923 <clip pos=
"0" part=
"lem"/>
924 <lit v=
"auxmod_mod_inf"/>
926 <equal caseless=
"yes">
927 <clip pos=
"0" part=
"lem"/>
928 <lit v=
"mod_inf_perif"/>
930 <equal caseless=
"yes">
931 <clip pos=
"0" part=
"lem"/>
932 <lit v=
"pro_be_ger"/>
934 <equal caseless=
"yes">
935 <clip pos=
"0" part=
"lem"/>
936 <lit v=
"pro_auxmod_inf"/>
938 <equal caseless=
"yes">
939 <clip pos=
"0" part=
"lem"/>
940 <lit v=
"pro_mod_inf"/>
942 <equal caseless=
"yes">
943 <clip pos=
"0" part=
"lem"/>
944 <lit v=
"pro_have_pp"/>
946 <equal caseless=
"yes">
947 <clip pos=
"0" part=
"lem"/>
948 <lit v=
"pro_do_inf"/>
955 <clip pos=
"3" part=
"whole"/>
959 <clip pos=
"4" part=
"whole"/>
968 <equal caseless=
"yes">
969 <clip pos=
"0" part=
"lem"/>
970 <lit v=
"pro_mod_inf_perif"/>
972 <equal caseless=
"yes">
973 <clip pos=
"0" part=
"lem"/>
974 <lit v=
"pro_auxmod_mod_inf"/>
981 <clip pos=
"3" part=
"whole"/>
985 <clip pos=
"4" part=
"whole"/>
989 <clip pos=
"5" part=
"whole"/>
996 <choose><!--Mira si hi ha algun verb que sigui HAVER (d'haver-hi), en tal cas cal canviar lemes i etiquetes del verb principal ('ser' passa a 'haver') -->
1000 <clip pos=
"0" part=
"a_verb"/>
1001 <lit-tag v=
"HAVER"/>
1007 <equal caseless=
"yes">
1008 <clip pos=
"0" part=
"lem"/>
1013 <clip pos=
"1" part=
"lem"/>
1017 <clip pos=
"1" part=
"a_verb"/>
1018 <lit-tag v=
"vbhaver"/>
1024 <equal caseless=
"yes">
1025 <clip pos=
"0" part=
"lem"/>
1026 <lit v=
"auxmod_inf"/>
1028 <equal caseless=
"yes">
1029 <clip pos=
"0" part=
"lem"/>
1032 <equal caseless=
"yes">
1033 <clip pos=
"0" part=
"lem"/>
1036 <equal caseless=
"yes">
1037 <clip pos=
"0" part=
"lem"/>
1038 <lit v=
"verbcj_perif"/>
1043 <clip pos=
"2" part=
"lem"/>
1047 <clip pos=
"2" part=
"a_verb"/>
1048 <lit-tag v=
"vbhaver"/>
1054 <equal caseless=
"yes">
1055 <clip pos=
"0" part=
"lem"/>
1056 <lit v=
"auxmod_mod_inf"/>
1058 <equal caseless=
"yes">
1059 <clip pos=
"0" part=
"lem"/>
1060 <lit v=
"mod_inf_perif"/>
1065 <clip pos=
"3" part=
"lem"/>
1069 <clip pos=
"3" part=
"a_verb"/>
1070 <lit-tag v=
"vbhaver"/>
1077 <out><!--I ara imprimeix el resultat de tot -->
1079 <clip pos=
"1" part=
"whole"/>
1086 <equal caseless=
"yes">
1087 <clip pos=
"0" part=
"lem"/>
1088 <lit v=
"verbcj_perif"/>
1090 <equal caseless=
"yes">
1091 <clip pos=
"0" part=
"lem"/>
1092 <lit v=
"pro_verbcj"/>
1094 <equal caseless=
"yes">
1095 <clip pos=
"0" part=
"lem"/>
1096 <lit v=
"auxmod_inf"/>
1098 <equal caseless=
"yes">
1099 <clip pos=
"0" part=
"lem"/>
1102 <equal caseless=
"yes">
1103 <clip pos=
"0" part=
"lem"/>
1106 <equal caseless=
"yes">
1107 <clip pos=
"0" part=
"lem"/>
1115 <clip pos=
"2" part=
"whole"/>
1124 <equal caseless=
"yes">
1125 <clip pos=
"0" part=
"lem"/>
1126 <lit v=
"pro_verbcj_perif"/>
1128 <equal caseless=
"yes">
1129 <clip pos=
"0" part=
"lem"/>
1130 <lit v=
"auxmod_mod_inf"/>
1132 <equal caseless=
"yes">
1133 <clip pos=
"0" part=
"lem"/>
1134 <lit v=
"mod_inf_perif"/>
1136 <equal caseless=
"yes">
1137 <clip pos=
"0" part=
"lem"/>
1138 <lit v=
"pro_be_ger"/>
1140 <equal caseless=
"yes">
1141 <clip pos=
"0" part=
"lem"/>
1142 <lit v=
"pro_auxmod_inf"/>
1144 <equal caseless=
"yes">
1145 <clip pos=
"0" part=
"lem"/>
1146 <lit v=
"pro_mod_inf"/>
1148 <equal caseless=
"yes">
1149 <clip pos=
"0" part=
"lem"/>
1150 <lit v=
"pro_have_pp"/>
1152 <equal caseless=
"yes">
1153 <clip pos=
"0" part=
"lem"/>
1154 <lit v=
"pro_be_ger"/>
1156 <equal caseless=
"yes">
1157 <clip pos=
"0" part=
"lem"/>
1158 <lit v=
"pro_do_inf"/>
1165 <clip pos=
"2" part=
"whole"/>
1169 <clip pos=
"3" part=
"whole"/>
1178 <equal caseless=
"yes">
1179 <clip pos=
"0" part=
"lem"/>
1180 <lit v=
"pro_mod_inf_perif"/>
1182 <equal caseless=
"yes">
1183 <clip pos=
"0" part=
"lem"/>
1184 <lit v=
"pro_auxmod_mod_inf"/>
1191 <clip pos=
"2" part=
"whole"/>
1195 <clip pos=
"3" part=
"whole"/>
1199 <clip pos=
"4" part=
"whole"/>
1210 <!--<rule comment="arregla el pron reflexiu de tercera persona quan és enclític. No es pot accedir el lema del pronom enclític i per ara no es pot fer la regla">
1212 <pattern-item n="pottenirenclitic"/>
1219 <clip pos="3" part="a_prnenc"/>
1220 <lit-tag v="prn.enc"/>
1241 <rule comment=
"CHUNK: HI">
1243 <pattern-item n=
"hi"/>
1247 <clip pos=
"1" part=
"lem"/>
1251 <clip pos=
"1" part=
"tags"/>
1252 <lit-tag v=
"prn.pro.adv"/>
1256 <clip pos=
"1" part=
"whole"/>