1 <?xml version=
"1.0" encoding=
"UTF-8"?> <!-- -*- nxml -*- -->
6 <cat-item tags=
"SN.*"/>
10 <cat-item tags=
"SV.*"/>
11 <cat-item tags=
"SVneg.*"/>
14 <def-cat n=
"SV_pers"><!--Formes personals. Exclou inf i ger (i alguns imperatius per ara) -->
15 <cat-item lemma=
"verbcj" tags=
"SV.*"/>
16 <cat-item lemma=
"verbcj" tags=
"SVneg.*"/>
17 <cat-item lemma=
"aux_verb" tags=
"SV.*"/>
18 <cat-item lemma=
"aux_verb" tags=
"SVneg.*"/>
19 <cat-item lemma=
"haver_pp" tags=
"SV.*"/>
20 <cat-item lemma=
"haver_pp" tags=
"SVneg.*"/>
21 <cat-item lemma=
"haver_pp_enc" tags=
"SV.*"/>
22 <cat-item lemma=
"haver_pp_enc" tags=
"SVneg.*"/>
23 <cat-item lemma=
"aux_haver_pp" tags=
"SV.*"/>
24 <cat-item lemma=
"aux_haver_pp" tags=
"SVneg.*"/>
25 <cat-item lemma=
"aux_haver_pp_enc" tags=
"SV.*"/>
26 <cat-item lemma=
"aux_haver_pp_enc" tags=
"SVneg.*"/>
27 <cat-item lemma=
"verbcj_enc" tags=
"SV.*"/>
28 <cat-item lemma=
"verbcj_enc" tags=
"SVneg.*"/>
29 <!-- <cat-item lemma="be_adj" tags="SV.*"/>-->
33 <cat-item tags=
"SV.vblex.inf"/>
34 <cat-item tags=
"SVneg.vblex.inf"/>
35 <cat-item tags=
"SV.vbhaver.inf"/>
36 <cat-item tags=
"SVneg.vbhaver.inf"/>
37 <cat-item tags=
"SV.vbser.inf"/>
38 <cat-item tags=
"SVneg.vbser.inf"/>
39 <cat-item tags=
"SV.vbmod.inf"/>
40 <cat-item tags=
"SVneg.vbmod.inf"/>
44 <cat-item tags=
"SV.vbser.*"/>
45 <cat-item tags=
"SVneg.vbser.*"/>
49 <cat-item tags=
"cnjsub"/>
53 <cat-item lemma=
"de" tags=
"PREP"/>
57 <cat-item lemma=
"haverhi" tags=
"SV.*"/>
58 <cat-item lemma=
"haverhi" tags=
"SVneg.*"/>
59 <cat-item lemma=
"haverhi_pp" tags=
"SV.*"/>
60 <cat-item lemma=
"haverhi_pp" tags=
"SVneg.*"/>
64 <cat-item tags=
"SA.*"/>
68 <cat-item tags=
"sent"/>
76 <attr-item tags=
"p1"/>
77 <attr-item tags=
"p2"/>
78 <attr-item tags=
"p3"/>
79 <attr-item tags=
"PD"/>
85 <attr-item tags=
"mf"/>
86 <attr-item tags=
"GD"/>
87 <attr-item tags=
"nt"/>
91 <attr-item tags=
"sg"/>
92 <attr-item tags=
"pl"/>
93 <attr-item tags=
"sp"/>
94 <attr-item tags=
"ND"/>
98 <attr-item tags=
"inf"/>
99 <attr-item tags=
"pres"/>
100 <attr-item tags=
"past"/>
101 <attr-item tags=
"pri"/>
102 <attr-item tags=
"ifip"/>
103 <attr-item tags=
"cni"/>
104 <attr-item tags=
"fti"/>
105 <attr-item tags=
"pp"/>
106 <attr-item tags=
"ger"/>
107 <attr-item tags=
"pprs"/>
108 <attr-item tags=
"subs"/>
109 <attr-item tags=
"imp"/>
110 <attr-item tags=
"ifi"/>
111 <attr-item tags=
"pii"/>
112 <attr-item tags=
"pis"/>
113 <attr-item tags=
"prs"/>
118 <def-attr n=
"a_verb">
119 <attr-item tags=
"vblex"/>
120 <attr-item tags=
"vbser"/>
121 <attr-item tags=
"vbhaver"/>
122 <attr-item tags=
"vbmod"/>
123 <attr-item tags=
"vaux"/>
131 <def-var n=
"paraula"/>
136 <def-macro n=
"f_bcond" npar=
"1"><!--Per mirar si el blanc conté o no format. Cal posar aquesta funció en les regles en què desaparegui alguna paraula, per tal de decidir si el blanc de la paraula eliminada s'ha d'eliminar o conservar. Si conté format cal conservar-la, si no en conté cal eliminar-la perquè no apareguin dos espais seguits. -->
154 </section-def-macros>
164 <!--Regles per a sintagmes sols que han pogut quedarse amb GD, ND o PD -->
166 <rule comment=
"REGLA: SN (per assignar gènere i nombre si hi ha GD i ND que no s'han pogut determinar, com passa en alguns pronoms: both, etc.)">
168 <pattern-item n=
"SN"/>
175 <clip pos=
"1" part=
"gen"/>
180 <clip pos=
"1" part=
"gen"/>
189 <clip pos=
"1" part=
"nbr"/>
194 <clip pos=
"1" part=
"nbr"/>
201 <clip pos=
"1" part=
"lem"/>
202 <clip pos=
"1" part=
"tags"/>
203 <clip pos=
"1" part=
"chcontent"/>
209 <rule comment=
"REGLA: haverhi SN">
211 <pattern-item n=
"haverhi"/>
212 <pattern-item n=
"SN"/>
221 <clip pos=
"2" part=
"nbr"/>
225 <clip pos=
"2" part=
"nbr"/>
232 <clip pos=
"1" part=
"nbr"/>
233 <clip pos=
"2" part=
"nbr"/>
238 <clip pos=
"1" part=
"nbr"/>
243 <choose><!--això no sé si fa falta però ho poso per si de cas, estudiar-ho i treure-ho si cal -->
247 <clip pos=
"2" part=
"nbr"/>
252 <clip pos=
"2" part=
"nbr"/>
257 <choose><!--això no sé si fa falta però ho poso per si de cas, estudiar-ho i treure-ho si cal -->
261 <clip pos=
"2" part=
"gen"/>
266 <clip pos=
"2" part=
"nbr"/>
273 <clip pos=
"1" part=
"whole"/>
277 <clip pos=
"2" part=
"whole"/>
285 <rule comment=
"REGLA: SN haverhi SN (per a frase com 'al seu país no hi ha dubte que', pq no entrin per 'SN SV'">
287 <pattern-item n=
"SN"/>
288 <pattern-item n=
"haverhi"/>
289 <pattern-item n=
"SN"/>
296 <clip pos=
"1" part=
"gen"/>
301 <clip pos=
"1" part=
"gen"/>
310 <clip pos=
"1" part=
"nbr"/>
315 <clip pos=
"1" part=
"nbr"/>
326 <clip pos=
"3" part=
"nbr"/>
330 <clip pos=
"3" part=
"nbr"/>
337 <clip pos=
"2" part=
"nbr"/>
338 <clip pos=
"3" part=
"nbr"/>
343 <clip pos=
"2" part=
"nbr"/>
348 <choose><!--això no sé si fa falta però ho poso per si de cas, estudiar-ho i treure-ho si cal -->
352 <clip pos=
"3" part=
"nbr"/>
357 <clip pos=
"3" part=
"nbr"/>
362 <choose><!--això no sé si fa falta però ho poso per si de cas, estudiar-ho i treure-ho si cal -->
366 <clip pos=
"3" part=
"gen"/>
371 <clip pos=
"3" part=
"nbr"/>
378 <clip pos=
"1" part=
"whole"/>
382 <clip pos=
"2" part=
"whole"/>
386 <clip pos=
"3" part=
"whole"/>
393 <rule comment=
"REGLA: haverhi (per quan no va seguit de SN, assignar-li nombre per defecte">
395 <pattern-item n=
"haverhi"/>
402 <clip pos=
"1" part=
"nbr"/>
407 <clip pos=
"1" part=
"nbr"/>
414 <clip pos=
"1" part=
"whole"/>
425 <rule comment=
"REGLA: SN SV">
427 <pattern-item n=
"SN"/>
428 <pattern-item n=
"SV"/>
435 <clip pos=
"1" part=
"gen"/>
440 <clip pos=
"1" part=
"gen"/>
449 <clip pos=
"1" part=
"nbr"/>
454 <clip pos=
"1" part=
"nbr"/>
461 <clip pos=
"1" part=
"lem"/>
462 <clip pos=
"1" part=
"tags"/>
463 <clip pos=
"1" part=
"chcontent"/>
467 <clip pos=
"2" part=
"lem"/>
468 <clip pos=
"2" part=
"tags"/>
469 <clip pos=
"2" part=
"chcontent"/>
477 <rule comment=
"REGLA: SN SV inf (SN han decidit venir -> SN have decided TO come)" >
479 <pattern-item n=
"SN"/>
480 <pattern-item n=
"SV_pers"/>
481 <pattern-item n=
"inf"/>
488 <clip pos=
"1" part=
"gen"/>
493 <clip pos=
"1" part=
"gen"/>
502 <clip pos=
"1" part=
"nbr"/>
507 <clip pos=
"1" part=
"nbr"/>
514 <clip pos=
"1" part=
"whole"/>
518 <clip pos=
"2" part=
"whole"/>
523 <when><!--si és vbmod (o vaux: "can") no posis el "to" pq no cal ("can") o ja el té incorporat ("have to"). -->
528 <clip pos=
"2" part=
"a_verb"/>
532 <clip pos=
"2" part=
"a_verb"/>
540 <get-case-from pos=
"3">
545 <get-case-from pos=
"3">
557 <clip pos=
"3" part=
"whole"/>
563 <rule comment=
"REGLA: SV inf (han decidit venir -> have decided TO come) (caldria generar aquí subjecte? estudiar)" >
565 <pattern-item n=
"SV_pers"/>
566 <pattern-item n=
"inf"/>
571 <clip pos=
"1" part=
"whole"/>
576 <when><!--si és vbmod (o vaux: "can") no posis el "to" pq no cal ("can") o ja el té incorporat ("have to"). -->
581 <clip pos=
"1" part=
"a_verb"/>
585 <clip pos=
"1" part=
"a_verb"/>
593 <get-case-from pos=
"2">
598 <get-case-from pos=
"2">
610 <clip pos=
"2" part=
"whole"/>
619 <rule comment=
"REGLA: SV SA inf (és/considera difícil entendre -> is/considers difficult TO understand)" >
621 <pattern-item n=
"SV"/>
622 <pattern-item n=
"SA"/>
623 <pattern-item n=
"inf"/>
628 <clip pos=
"1" part=
"whole"/>
632 <clip pos=
"2" part=
"whole"/>
636 <get-case-from pos=
"3">
641 <get-case-from pos=
"3">
649 <clip pos=
"3" part=
"whole"/>
656 <rule comment=
"REGLA: SV SA de inf (és/considera difícil d'entendre -> is/considers difficult TO understand)" >
658 <pattern-item n=
"SV"/>
659 <pattern-item n=
"SA"/>
660 <pattern-item n=
"de"/>
661 <pattern-item n=
"inf"/>
666 <clip pos=
"1" part=
"whole"/>
670 <clip pos=
"2" part=
"whole"/>
674 <get-case-from pos=
"3">
679 <get-case-from pos=
"3">
687 <clip pos=
"4" part=
"whole"/>
694 <rule comment=
"REGLA: SN SV SA inf (això és/considera difícil entendre -> is/considers difficult TO understand)" >
696 <pattern-item n=
"SN"/>
697 <pattern-item n=
"SV"/>
698 <pattern-item n=
"SA"/>
699 <pattern-item n=
"inf"/>
706 <clip pos=
"1" part=
"gen"/>
711 <clip pos=
"1" part=
"gen"/>
720 <clip pos=
"1" part=
"nbr"/>
725 <clip pos=
"1" part=
"nbr"/>
732 <clip pos=
"1" part=
"whole"/>
736 <clip pos=
"2" part=
"whole"/>
740 <clip pos=
"3" part=
"whole"/>
744 <get-case-from pos=
"4">
749 <get-case-from pos=
"4">
757 <clip pos=
"4" part=
"whole"/>
764 <rule comment=
"REGLA: SN SV SA de inf (és/considera difícil d'entendre -> is/considers difficult TO understand)" >
766 <pattern-item n=
"SN"/>
767 <pattern-item n=
"SV"/>
768 <pattern-item n=
"SA"/>
769 <pattern-item n=
"de"/>
770 <pattern-item n=
"inf"/>
777 <clip pos=
"1" part=
"gen"/>
782 <clip pos=
"1" part=
"gen"/>
791 <clip pos=
"1" part=
"nbr"/>
796 <clip pos=
"1" part=
"nbr"/>
803 <clip pos=
"1" part=
"whole"/>
807 <clip pos=
"2" part=
"whole"/>
811 <clip pos=
"3" part=
"whole"/>
815 <get-case-from pos=
"4">
820 <get-case-from pos=
"4">
828 <clip pos=
"5" part=
"whole"/>
837 <rule comment="REGLA: SN ADV SV">
839 <pattern-item n="SN"/>
840 <pattern-item n="ADV"/>
841 <pattern-item n="SV"/>
848 <clip pos="1" part="gen"/>
853 <clip pos="1" part="gen"/>
862 <clip pos="1" part="nbr"/>
867 <clip pos="1" part="nbr"/>
876 <clip pos="1" part="lem"/>
877 <clip pos="1" part="tags"/>
878 <clip pos="1" part="chcontent"/>
882 <clip pos="2" part="lem"/>
883 <clip pos="2" part="tags"/>
884 <clip pos="2" part="chcontent"/>
888 <clip pos="3" part="lem"/>
889 <clip pos="3" part="tags"/>
890 <clip pos="3" part="chcontent"/>
896 <!--Regles per a afegir pronom subjecte -->
898 <rule comment=
"REGLA: punt SV (. Significava -> IT meant)">
900 <pattern-item n=
"punt"/>
901 <pattern-item n=
"SV_pers"/>
906 <clip pos=
"1" part=
"whole"/>
915 <clip pos=
"2" part=
"temps"/>
922 <get-case-from pos=
"2">
925 <lit-tag v=
"prn.subj"/>
926 <clip pos=
"2" part=
"pers"/>
928 <clip pos=
"2" part=
"nbr"/>
930 <get-case-from pos=
"2">
933 <lit-tag v=
"prn.subj.3.4.5"/>
942 <case-of pos=
"2" part=
"lem"/>
947 <clip pos=
"2" part=
"lem"/>
956 <clip pos=
"2" part=
"lem"/>
957 <clip pos=
"2" part=
"tags"/>
958 <clip pos=
"2" part=
"chcontent"/>
964 <rule comment=
"REGLA: punt SV inf (. Intentava venir -> IT tried TO come)">
966 <pattern-item n=
"punt"/>
967 <pattern-item n=
"SV_pers"/>
968 <pattern-item n=
"inf"/>
973 <clip pos=
"1" part=
"whole"/>
982 <clip pos=
"2" part=
"temps"/>
989 <get-case-from pos=
"2">
992 <lit-tag v=
"prn.subj"/>
993 <clip pos=
"2" part=
"pers"/>
995 <clip pos=
"2" part=
"nbr"/>
997 <get-case-from pos=
"2">
1000 <lit-tag v=
"prn.subj.3.4.5"/>
1009 <case-of pos=
"2" part=
"lem"/>
1014 <clip pos=
"2" part=
"lem"/>
1023 <clip pos=
"2" part=
"lem"/>
1024 <clip pos=
"2" part=
"tags"/>
1025 <clip pos=
"2" part=
"chcontent"/>
1030 <when><!--si és vbmod (o vaux: "can") no posis el "to" pq no cal ("can") o ja el té incorporat ("have to"). -->
1035 <clip pos=
"2" part=
"a_verb"/>
1036 <lit-tag v=
"vbmod"/>
1039 <clip pos=
"2" part=
"a_verb"/>
1047 <get-case-from pos=
"3">
1052 <get-case-from pos=
"3">
1064 <clip pos=
"3" part=
"whole"/>
1071 <rule comment=
"REGLA: punt SV SA inf (. Era difícil ajudar -> IT was difficult TO help)">
1073 <pattern-item n=
"punt"/>
1074 <pattern-item n=
"SV_pers"/>
1075 <pattern-item n=
"SA"/>
1076 <pattern-item n=
"inf"/>
1081 <clip pos=
"1" part=
"whole"/>
1090 <clip pos=
"2" part=
"temps"/>
1097 <get-case-from pos=
"2">
1100 <lit-tag v=
"prn.subj"/>
1101 <clip pos=
"2" part=
"pers"/>
1103 <clip pos=
"2" part=
"nbr"/>
1105 <get-case-from pos=
"2">
1108 <lit-tag v=
"prn.subj.3.4.5"/>
1117 <case-of pos=
"2" part=
"lem"/>
1122 <clip pos=
"2" part=
"lem"/>
1131 <clip pos=
"2" part=
"lem"/>
1132 <clip pos=
"2" part=
"tags"/>
1133 <clip pos=
"2" part=
"chcontent"/>
1137 <clip pos=
"3" part=
"whole"/>
1141 <get-case-from pos=
"4">
1146 <get-case-from pos=
"4">
1154 <clip pos=
"4" part=
"whole"/>
1163 <rule comment=
"REGLA: punt SV SA de inf (. Era difícil d'ajudar -> IT was difficult TO help)">
1165 <pattern-item n=
"punt"/>
1166 <pattern-item n=
"SV_pers"/>
1167 <pattern-item n=
"SA"/>
1168 <pattern-item n=
"de"/>
1169 <pattern-item n=
"inf"/>
1174 <clip pos=
"1" part=
"whole"/>
1183 <clip pos=
"2" part=
"temps"/>
1190 <get-case-from pos=
"2">
1193 <lit-tag v=
"prn.subj"/>
1194 <clip pos=
"2" part=
"pers"/>
1196 <clip pos=
"2" part=
"nbr"/>
1198 <get-case-from pos=
"2">
1201 <lit-tag v=
"prn.subj.3.4.5"/>
1210 <case-of pos=
"2" part=
"lem"/>
1215 <clip pos=
"2" part=
"lem"/>
1224 <clip pos=
"2" part=
"lem"/>
1225 <clip pos=
"2" part=
"tags"/>
1226 <clip pos=
"2" part=
"chcontent"/>
1230 <clip pos=
"3" part=
"whole"/>
1234 <get-case-from pos=
"4">
1239 <get-case-from pos=
"4">
1247 <clip pos=
"5" part=
"whole"/>
1254 <rule comment=
"REGLA: cnjsub SV ( que vinguis -> that YOU come)">
1256 <pattern-item n=
"cnjsub"/>
1257 <pattern-item n=
"SV_pers"/>
1262 <clip pos=
"1" part=
"whole"/>
1266 <get-case-from pos=
"2">
1269 <lit-tag v=
"prn.subj"/>
1270 <clip pos=
"2" part=
"pers"/>
1272 <clip pos=
"2" part=
"nbr"/>
1274 <get-case-from pos=
"2">
1277 <lit-tag v=
"prn.subj.3.4.5"/>
1282 <clip pos=
"2" part=
"whole"/>
1288 <rule comment=
"REGLA: cnjsub SV ( que vinguis -> that YOU come)">
1290 <pattern-item n=
"cnjsub"/>
1291 <pattern-item n=
"SV_pers"/>
1292 <pattern-item n=
"inf"/>
1297 <clip pos=
"1" part=
"whole"/>
1301 <get-case-from pos=
"2">
1304 <lit-tag v=
"prn.subj"/>
1305 <clip pos=
"2" part=
"pers"/>
1307 <clip pos=
"2" part=
"nbr"/>
1309 <get-case-from pos=
"2">
1312 <lit-tag v=
"prn.subj.3.4.5"/>
1317 <clip pos=
"2" part=
"whole"/>
1322 <when><!--si és vbmod (o vaux: "can") no posis el "to" pq no cal ("can") o ja el té incorporat ("have to"). -->
1327 <clip pos=
"2" part=
"a_verb"/>
1328 <lit-tag v=
"vbmod"/>
1331 <clip pos=
"2" part=
"a_verb"/>
1339 <get-case-from pos=
"3">
1344 <get-case-from pos=
"3">
1356 <clip pos=
"3" part=
"whole"/>
1363 <rule comment=
"REGLA: cnjsub SV ( que vinguis -> that YOU come)">
1365 <pattern-item n=
"cnjsub"/>
1366 <pattern-item n=
"SV_pers"/>
1367 <pattern-item n=
"SA"/>
1368 <pattern-item n=
"inf"/>
1373 <clip pos=
"1" part=
"whole"/>
1377 <get-case-from pos=
"2">
1380 <lit-tag v=
"prn.subj"/>
1381 <clip pos=
"2" part=
"pers"/>
1383 <clip pos=
"2" part=
"nbr"/>
1385 <get-case-from pos=
"2">
1388 <lit-tag v=
"prn.subj.3.4.5"/>
1393 <clip pos=
"2" part=
"whole"/>
1397 <clip pos=
"3" part=
"whole"/>
1401 <get-case-from pos=
"4">
1406 <get-case-from pos=
"4">
1414 <clip pos=
"4" part=
"whole"/>
1420 <rule comment=
"REGLA: cnjsub SV ( que vinguis -> that YOU come)">
1422 <pattern-item n=
"cnjsub"/>
1423 <pattern-item n=
"SV_pers"/>
1424 <pattern-item n=
"SA"/>
1425 <pattern-item n=
"de"/>
1426 <pattern-item n=
"inf"/>
1431 <clip pos=
"1" part=
"whole"/>
1435 <get-case-from pos=
"2">
1438 <lit-tag v=
"prn.subj"/>
1439 <clip pos=
"2" part=
"pers"/>
1441 <clip pos=
"2" part=
"nbr"/>
1443 <get-case-from pos=
"2">
1446 <lit-tag v=
"prn.subj.3.4.5"/>
1451 <clip pos=
"2" part=
"whole"/>
1455 <clip pos=
"3" part=
"whole"/>
1459 <get-case-from pos=
"4">
1464 <get-case-from pos=
"4">
1472 <clip pos=
"5" part=
"whole"/>