Verbs
[apertium.git] / apertium-oc-ca / apertium-oc-ca.ca-oc.t2x
blob86382fea2b3dbcbadb2581f1962ee980403d3672
1 <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- nxml -*- -->
2 <interchunk>
3 <section-def-cats>
5 <def-cat n="SN">
6 <cat-item tags="SN.*"/>
7 </def-cat>
8 <def-cat n="prnperssubj">
9 <cat-item lemma="prnperssubj" tags="SN.*"/>
10 </def-cat>
12 <def-cat n="negacio"><!-- BCN-->
13 <cat-item tags="SN.DET.*.*.negacio"/>
14 </def-cat>
16 <def-cat n="pr"><!-- BCN-->
17 <cat-item tags="PREP"/>
18 </def-cat>
21 <def-cat n="SN_nopron">
22 <cat-item tags="SN.DET.*"/>
23 <cat-item tags="SN.UNDET.*"/>
24 <cat-item tags="SN.NUM.*"/>
25 </def-cat>
27 <def-cat n="SV"><!--Verb conjugat, i tb infinitiu per quan el tagger s'equivoca. -->
28 <!-- <cat-item lemma="verbcj" tags="SV.*"/>
29 <cat-item tags="Vcop.*"/>
30 <cat-item lemma="mod" tags="SV.*"/><!-#-MG: I have to <sent> : no deixar-ho penjat (haig de 'fer-ho'). En canvi : 'I have to <desconeguda>: s�que � 'haig de'. -#->
31 <cat-item lemma="auxmod_inf" tags="SV.*"/>
32 <cat-item lemma="auxmod_mod_inf" tags="SV.*"/>
33 <cat-item lemma="do_inf" tags="SV.*"/>
34 <cat-item lemma="mod_inf" tags="SV.*"/>
35 <cat-item lemma="mod_perif" tags="SV.*"/>
36 <cat-item lemma="mod_inf_perif" tags="SV.*"/>
37 <cat-item lemma="aux_mod" tags="SV.*"/><!-#-Aquests van davant desconegudes o sent (I will have to.) -#->
38 <cat-item lemma="have_pp" tags="SV.*"/>
39 <cat-item lemma="be_ger" tags="SV.*"/>
40 <cat-item lemma="be_ger_enc" tags="SV.*"/>
41 <cat-item tags="SV.vblex.inf.*"/>
42 <cat-item tags="SV.vbmod.inf.*"/>
43 <cat-item lemma="verbcj_perif" tags="SV.*"/>
44 <cat-item lemma="pro_verbcj" tags="SV.*"/>
45 <cat-item lemma="pro_verbcj_perif" tags="SV.*"/>
46 <cat-item lemma="pro_auxmod_inf" tags="SV.*"/>
47 <cat-item lemma="pro_mod_inf" tags="SV.*"/>
48 <cat-item lemma="pro_mod_inf_perif" tags="SV.*"/>
49 <cat-item lemma="pro_auxmod_mod_inf" tags="SV.*"/>
50 <cat-item lemma="pro_have_pp" tags="SV.*"/>
51 <cat-item lemma="pro_be_ger" tags="SV.*"/>
52 <cat-item lemma="pro_do_inf" tags="SV.*"/>-->
53 <cat-item tags="SV.*"/>
54 </def-cat>
56 <def-cat n="esser_pp">
57 <cat-item lemma="aux_pp" tags="SV.vbser.*"/>
58 <cat-item lemma="aux_adv_pp" tags="SV.vbser.*"/>
59 <cat-item lemma="pro_aux_pp" tags="SV.vbser.*"/>
60 <cat-item lemma="pro_pro_aux_pp" tags="SV.vbser.*"/>
61 <cat-item lemma="pro_aux_adv_pp" tags="SV.vbser.*"/>
62 <cat-item lemma="pro_pro_aux_adv_pp" tags="SV.vbser.*"/>
63 </def-cat>
65 <def-cat n="QUEREL">
66 <cat-item tags="querel.*"/>
67 </def-cat>
69 <def-cat n="vbcop">
70 <cat-item tags="SV.vbser.*"/>
71 </def-cat>
73 <def-cat n="adv">
74 <cat-item tags="adv"/>
75 <cat-item tags="adv.*"/>
76 <cat-item tags="preadv"/>
78 </def-cat>
80 <def-cat n="PRNS">
81 <cat-item tags="PRN.subj.*"/>
82 </def-cat>
84 <def-cat n="SA">
85 <cat-item tags="SA.*"/>
86 </def-cat>
88 <def-cat n="pp">
89 <cat-item lemma="pp" tags="SA.*"/>
90 <cat-item lemma="adj" tags="SA.*"/><!-- BCN per que agafi b�resolutions adopted -->
91 </def-cat>
93 <def-cat n="DET">
94 <cat-item tags="DET.*"/>
95 </def-cat>
97 <def-cat n="rel">
98 <cat-item tags="REL.*"/>
99 </def-cat>
101 <def-cat n="NUM">
102 <cat-item tags="NUM.*"/>
103 </def-cat>
105 <def-cat n="punt">
106 <cat-item tags="sent"/>
107 </def-cat>
109 <def-cat n="cnjcoo"> <!-- BCN-->
110 <cat-item tags="cnjcoo"/>
111 </def-cat>
114 </section-def-cats>
116 <section-def-attrs>
118 <def-attr n="pers">
119 <attr-item tags="p1"/>
120 <attr-item tags="p2"/>
121 <attr-item tags="p3"/>
122 <attr-item tags="PD"/>
123 </def-attr>
125 <def-attr n="gen_pp">
126 <attr-item tags="f"/>
127 <attr-item tags="m"/>
128 </def-attr>
129 <def-attr n="nbr_pp">
130 <attr-item tags="sg"/>
131 <attr-item tags="pl"/>
132 </def-attr>
134 <def-attr n="gen">
135 <attr-item tags="m"/>
136 <attr-item tags="f"/>
137 <attr-item tags="mf"/>
138 <attr-item tags="GD"/>
139 <attr-item tags="nt"/>
140 </def-attr>
142 <def-attr n="nbr">
143 <attr-item tags="sg"/>
144 <attr-item tags="pl"/>
145 <attr-item tags="sp"/>
146 <attr-item tags="ND"/>
147 </def-attr>
149 <def-attr n="tnom">
150 <attr-item tags="loc"/>
151 <attr-item tags="data"/>
152 </def-attr>
154 <def-attr n="tipusrel">
155 <attr-item tags="quan"/>
156 </def-attr>
158 <def-attr n="lemprn">
159 <attr-item tags="voste"/>
160 <attr-item tags="tothom"/>
161 </def-attr>
163 <def-attr n="temps">
164 <attr-item tags="inf"/>
165 <attr-item tags="pri"/>
166 <attr-item tags="prs"/>
167 <attr-item tags="ifi"/>
168 <attr-item tags="cni"/>
169 <attr-item tags="fti"/>
170 <attr-item tags="pp"/>
171 <attr-item tags="ger"/>
172 <attr-item tags="imp"/>
174 </def-attr>
176 <def-attr n="a_verb">
177 <attr-item tags="vblex"/>
178 <attr-item tags="vblex.pron"/>
179 <attr-item tags="vbhaver"/>
180 <attr-item tags="vbser"/>
181 <attr-item tags="vbmod"/>
182 <attr-item tags="HAVER"/>
183 </def-attr>
185 <def-attr n="tverb">
186 <attr-item tags="vbamb_a"/>
187 <attr-item tags="vba_en"/>
188 <attr-item tags="vba_sus"/>
190 </def-attr>
192 <def-attr n="a_SN">
193 <attr-item tags="DET"/>
194 <attr-item tags="UNDET"/>
195 <attr-item tags="NUM"/>
196 <attr-item tags="PDET"/><!--'Per determinar', per a SN UNDET que han de passar a determinats, transformaci�que far�el postchunk detectant els PDET. -->
197 </def-attr>
199 </section-def-attrs>
202 <section-def-vars>
203 <def-var n="tipusverb"/>
204 <def-var n="pronom"/>
205 <def-var n="nombre_subj"/>
206 <def-var n="tipus_rel"/>
207 <def-var n="pers_subj"/>
208 <def-var n="uno"/>
209 <def-var n="nombre"/>
210 <def-var n="genere"/>
211 <def-var n="concord"/>
212 </section-def-vars>
215 <section-def-lists>
216 <def-list n="prde">
217 <list-item v="de"/>
218 <list-item v="a rel de"/>
219 <list-item v="a través de"/>
220 <list-item v="d'ençà de"/>
221 <list-item v="a causa de"/>
222 <list-item v="dins de"/>
223 <list-item v="en comptes de"/>
224 <list-item v="per tal de"/>
225 <list-item v="un munt de"/>
226 <list-item v="al costat de"/>
227 <list-item v="vora de"/>
228 <list-item v="a la vora de"/>
229 <list-item v="per mitjà de"/>
230 <!-- <list-item v="cap de"/>
231 <list-item v="a trauèrs de"/>
232 <list-item v="un pialèr de"/>
233 <list-item v="per causa de"/>
234 <list-item v="per medi de"/>
235 <list-item v="a arraïtz de"/>
236 <list-item v="a compdar de"/>
237 <list-item v="a despiet de"/>
238 <list-item v="entà per'mor de"/>
239 <list-item v="des de"/>
240 <list-item v="malgrat de"/>
241 <list-item v="alloc de"/>
242 <list-item v="dempús de"/>
243 <list-item v="despús de"/>
244 <list-item v="ath cant de"/>-->
245 </def-list>
246 </section-def-lists>
249 <section-def-macros>
253 <def-macro n="cv_prep" npar="2">
254 <choose>
255 <when>
256 <test>
257 <and>
258 <equal>
259 <clip pos="1" part="lem"/>
260 <lit v="a"/>
261 </equal>
262 <equal>
263 <clip pos="2" part="tnom"/>
264 <lit-tag v="loc"/>
265 </equal>
266 </and>
267 </test>
268 <let>
269 <clip pos="1" part="lem"/>
270 <lit v="en"/>
271 </let>
272 </when>
273 </choose>
274 <choose alt="oc@aran">
275 <when>
276 <test>
277 <and>
278 <equal>
279 <clip pos="1" part="lem"/>
280 <lit v="per"/>
281 </equal>
282 <equal>
283 <clip pos="2" part="tnom"/>
284 <lit-tag v="data"/>
285 </equal>
286 </and>
287 </test>
288 <let>
289 <clip pos="1" part="lem"/>
290 <lit v="ta"/>
291 </let>
292 </when>
293 </choose>
294 </def-macro>
296 <def-macro n="partitiu" npar="1">
297 <choose alt="oc">
298 <when>
299 <test>
300 <or>
301 <and>
302 <or>
303 <equal>
304 <clip pos="1" part="lem"/>
305 <lit v="nom"/>
306 </equal>
307 <equal>
308 <clip pos="1" part="lem"/>
309 <lit v="part"/>
310 </equal>
311 <equal>
312 <clip pos="1" part="lem"/>
313 <lit v="adj_nom"/>
314 </equal>
315 <equal>
316 <clip pos="1" part="lem"/>
317 <lit v="adj_adj_nom"/>
318 </equal>
319 <equal>
320 <clip pos="1" part="lem"/>
321 <lit v="nom_adj"/>
322 </equal>
323 </or>
324 <equal>
325 <clip pos="1" part="nbr"/>
326 <lit-tag v="pl"/>
327 </equal>
328 </and>
329 <and>
330 <or>
331 <equal>
332 <clip pos="1" part="lem"/>
333 <lit v="part"/>
334 </equal>
335 <equal>
336 <clip pos="1" part="lem"/>
337 <lit v="partadj_nom"/>
338 </equal>
339 <equal>
340 <clip pos="1" part="lem"/>
341 <lit v="partadj_adj_nom"/>
342 </equal>
343 <equal>
344 <clip pos="1" part="lem"/>
345 <lit v="partnom_adj"/>
346 </equal>
347 </or>
348 <equal>
349 <clip pos="1" part="nbr"/>
350 <lit-tag v="sg"/>
351 </equal>
352 </and>
353 </or>
354 </test>
355 <out>
356 <chunk>
357 <get-case-from pos="1">
358 <lit v="partitiu"/>
359 </get-case-from>
360 <lit-tag v="part"/>
361 <lit v="{^de"/>
362 <lit-tag v="pr"/>
363 <lit v="$}"/>
364 </chunk>
365 <b/>
366 </out>
367 </when>
368 </choose>
369 <choose alt="oc@aran">
370 <when>
371 <test>
372 <or>
373 <equal>
374 <clip pos="1" part="lem"/>
375 <lit v="part_aran"/>
376 </equal>
377 <equal>
378 <clip pos="1" part="lem"/>
379 <lit v="partadj_nom_aran"/>
380 </equal>
381 <equal>
382 <clip pos="1" part="lem"/>
383 <lit v="partadj_adj_nom_aran"/>
384 </equal>
385 </or>
386 </test>
387 <out>
388 <chunk>
389 <get-case-from pos="1">
390 <lit v="partitiu"/>
391 </get-case-from>
392 <lit-tag v="part"/>
393 <lit v="{^de"/>
394 <lit-tag v="pr"/>
395 <lit v="$}"/>
396 </chunk>
397 <b/>
398 </out>
399 </when>
400 </choose>
403 </def-macro>
405 <def-macro n="dona_info" npar="1">
406 <let>
407 <var n="tipus_rel"/>
408 <lit v=""/>
409 </let>
410 <choose>
411 <when>
412 <test>
413 <equal>
414 <clip pos="1" part="tipusrel"/>
415 <lit-tag v="quan"/>
416 </equal>
417 </test>
418 <let>
419 <var n="tipus_rel"/>
420 <lit v="quan"/>
421 </let>
422 </when>
423 </choose>
424 </def-macro>
426 <def-macro n="lema_prn" npar="1">
427 <choose>
428 <when>
429 <test>
430 <equal>
431 <clip pos="1" part="lemprn"/>
432 <lit-tag v="voste"/>
433 </equal>
434 </test>
435 <let>
436 <var n="pronom"/>
437 <lit v="voste"/>
438 </let>
439 </when>
440 </choose>
441 <choose>
442 <when>
443 <test>
444 <equal>
445 <clip pos="1" part="lemprn"/>
446 <lit-tag v="tothom"/>
447 </equal>
448 </test>
449 <let>
450 <var n="pronom"/>
451 <lit v="tothom"/>
452 </let>
453 </when>
454 </choose>
455 </def-macro>
457 <def-macro n="modifica_sv" npar="1">
458 <choose><!-- si hi ha un quan-->
459 <when>
460 <test>
461 <and>
462 <equal>
463 <var n="tipus_rel"/>
464 <lit v="quan"/>
465 </equal>
466 <equal>
467 <clip pos="1" part="temps"/>
468 <lit-tag v="prs"/>
469 </equal>
470 </and>
471 </test>
472 <let>
473 <clip pos="1" part="temps"/>
474 <lit-tag v="fti"/>
475 </let>
476 </when>
477 </choose>
478 <let>
479 <var n="tipus_rel"/>
480 <lit v=""/>
481 </let>
482 <choose><!-- si hi ha un vostè-->
483 <when>
484 <test>
485 <and>
486 <equal>
487 <var n="pronom"/>
488 <lit v="voste"/>
489 </equal>
490 <equal>
491 <clip pos="1" part="pers"/>
492 <lit-tag v="p3"/>
493 </equal>
494 <!-- <equal>
495 <clip pos="1" part="nbr"/>
496 <lit-tag v="sg"/>
497 </equal>-->
498 </and>
499 </test>
500 <let>
501 <clip pos="1" part="pers"/>
502 <lit-tag v="p2"/>
503 </let>
504 <let>
505 <clip pos="1" part="nbr"/>
506 <lit-tag v="pl"/>
507 </let>
508 </when>
509 </choose>
510 <choose><!-- si hi ha un tothom-->
511 <when>
512 <test>
513 <and>
514 <equal>
515 <var n="pronom"/>
516 <lit v="tothom"/>
517 </equal>
518 <equal>
519 <clip pos="1" part="pers"/>
520 <lit-tag v="p3"/>
521 </equal>
522 <equal>
523 <clip pos="1" part="nbr"/>
524 <lit-tag v="sg"/>
525 </equal>
526 </and>
527 </test>
528 <let>
529 <clip pos="1" part="nbr"/>
530 <lit-tag v="pl"/>
531 </let>
532 </when>
533 </choose>
534 </def-macro>
536 <def-macro n="envia_pas" npar="1">
537 <choose>
538 <when>
539 <test>
540 <equal>
541 <clip pos="1" part="lem"/>
542 <lit v="no"/>
543 </equal>
544 </test>
545 <out>
546 <b/>
547 <chunk>
548 <lit v="adv_neg"/>
549 <lit-tag v="adv"/>
550 <lit v="{^"/>
551 <get-case-from pos="1">
552 <lit v="pas"/>
553 </get-case-from>
554 <lit-tag v="adv"/>
555 <lit v="$}"/>
556 </chunk>
557 </out>
558 </when>
559 </choose>
560 </def-macro>
562 <def-macro n="comprova_concord_2" npar="3">
563 <choose>
564 <when>
565 <test>
566 <equal>
567 <clip pos="3" part="nbr"/>
568 <lit-tag v="pl"/>
569 </equal>
570 </test>
571 <choose>
572 <when>
573 <test>
574 <equal>
575 <clip pos="3" part="pers"/>
576 <lit-tag v="p1"/>
577 </equal>
578 </test>
579 <choose>
580 <when>
581 <test>
582 <or>
583 <equal>
584 <clip pos="1" part="pers"/>
585 <lit-tag v="p1"/>
586 </equal>
587 <equal>
588 <clip pos="2" part="pers"/>
589 <lit-tag v="p1"/>
590 </equal>
591 </or>
592 </test>
593 <let><var n="concord"/><lit-tag v="yes"/></let>
594 </when>
595 <otherwise>
596 <let><var n="concord"/><lit-tag v="no"/></let>
597 </otherwise>
598 </choose>
599 </when> <!--no és 1a pers-->
600 <otherwise>
601 <choose>
602 <when>
603 <test>
604 <equal>
605 <clip pos="3" part="pers"/>
606 <lit-tag v="p2"/>
607 </equal>
608 </test>
609 <choose>
610 <when>
611 <test>
612 <or>
613 <equal>
614 <clip pos="1" part="pers"/>
615 <lit-tag v="p3"/>
616 </equal>
617 <equal>
618 <clip pos="2" part="pers"/>
619 <lit-tag v="p2"/>
620 </equal>
621 </or>
622 </test>
623 <let><var n="concord"/><lit-tag v="yes"/></let>
624 </when>
625 <otherwise>
626 <let><var n="concord"/><lit-tag v="no"/></let>
627 </otherwise>
628 </choose>
629 </when> <!--no és 2a pers-->
630 <otherwise><!--és 3a pers-->
631 <choose>
632 <when>
633 <test>
634 <and>
635 <not>
636 <equal>
637 <clip pos="1" part="pers"/>
638 <lit-tag v="p1"/>
639 </equal>
640 </not>
641 <not>
642 <equal>
643 <clip pos="2" part="pers"/>
644 <lit-tag v="p1"/>
645 </equal>
646 </not>
647 <not>
648 <equal>
649 <clip pos="1" part="pers"/>
650 <lit-tag v="p2"/>
651 </equal>
652 </not>
653 <not>
654 <equal>
655 <clip pos="2" part="pers"/>
656 <lit-tag v="p2"/>
657 </equal>
658 </not>
659 </and>
660 </test>
661 <let><var n="concord"/><lit-tag v="yes"/></let>
662 </when>
663 <otherwise>
664 <let><var n="concord"/><lit-tag v="no"/></let>
665 </otherwise>
666 </choose>
667 </otherwise>
668 </choose>
669 </otherwise>
670 </choose>
671 </when><!--no és pl-->
672 <otherwise>
673 <let><var n="concord"/><lit-tag v="no"/></let>
674 </otherwise>
675 </choose>
676 </def-macro>
678 <def-macro n="assigna_gen_nbr" npar="1">
679 <choose><!--To determine value of variables of gender and
680 number and propagate to other rules. Variables are
681 not used again in this rule -->
682 <when>
683 <test>
684 <equal>
685 <clip pos="1" part="nbr"/>
686 <lit-tag v="pl"/>
687 </equal>
688 </test>
689 <let><var n="nombre"/><lit-tag v="pl"/></let>
690 </when>
691 <when>
692 <test>
693 <or>
694 <equal>
695 <clip pos="1" part="nbr"/>
696 <lit-tag v="sg"/>
697 </equal>
698 <equal>
699 <var n="nombre"/>
700 <lit v=""/>
701 </equal>
702 </or>
703 </test>
704 <let><var n="nombre"/><lit-tag v="sg"/></let>
705 </when>
706 </choose>
707 <choose>
708 <when>
709 <test>
710 <equal>
711 <clip pos="1" part="gen"/>
712 <lit-tag v="f"/>
713 </equal>
714 </test>
715 <let><var n="genere"/><lit-tag v="f"/></let>
716 </when>
717 <when>
718 <test>
719 <or>
720 <equal>
721 <clip pos="1" part="gen"/>
722 <lit-tag v="m"/>
723 </equal>
724 <equal>
725 <var n="genere"/>
726 <lit v=""/>
727 </equal>
728 </or>
729 </test>
730 <let><var n="genere"/><lit-tag v="m"/></let>
731 </when>
732 </choose>
733 <choose>
734 <when>
735 <test>
736 <equal>
737 <clip pos="1" part="nbr"/>
738 <lit-tag v="ND"/>
739 </equal>
740 </test>
741 <let><clip pos="1" part="nbr"/><var n="nombre"/></let>
742 </when>
743 </choose>
744 <choose>
745 <when>
746 <test>
747 <equal>
748 <clip pos="1" part="gen"/>
749 <lit-tag v="GD"/>
750 </equal>
751 </test>
752 <let><clip pos="1" part="gen"/><var n="genere"/></let>
753 </when>
754 </choose>
755 </def-macro>
758 <def-macro n="concord_sa" npar="2"><!--assigna el gen i el nbr del sn en els sa en les frases amb verb copulatiu (p.ex "la perspectiva de tu tía es interesante" -> "interesante" concordarà amb "aperçu")-->
759 <choose>
760 <when>
761 <test>
762 <equal>
763 <clip pos="1" part="gen"/>
764 <lit-tag v="f"/>
765 </equal>
766 </test>
767 <let>
768 <clip pos="2" part="gen"/>
769 <lit-tag v="f"/>
770 </let>
771 </when>
772 <otherwise>
773 <let>
774 <clip pos="2" part="gen"/>
775 <lit-tag v="m"/>
776 </let>
777 </otherwise>
778 </choose>
780 <choose>
781 <when>
782 <test>
783 <equal>
784 <clip pos="1" part="nbr"/>
785 <lit-tag v="pl"/>
786 </equal>
787 </test>
788 <let>
789 <clip pos="2" part="nbr"/>
790 <lit-tag v="pl"/>
791 </let>
792 </when>
793 <otherwise>
794 <let>
795 <clip pos="2" part="nbr"/>
796 <lit-tag v="sg"/>
797 </let>
798 </otherwise>
799 </choose>
800 </def-macro>
802 <def-macro n="concord_pp" npar="2">
803 <choose>
804 <when>
805 <test>
806 <equal>
807 <clip pos="1" part="gen"/>
808 <lit-tag v="f"/>
809 </equal>
810 </test>
811 <let>
812 <clip pos="2" part="gen_pp"/>
813 <lit-tag v="f"/>
814 </let>
815 </when>
816 <otherwise>
817 <let>
818 <clip pos="2" part="gen_pp"/>
819 <lit-tag v="m"/>
820 </let>
821 </otherwise>
822 </choose>
824 <choose>
825 <when>
826 <test>
827 <equal>
828 <clip pos="1" part="nbr"/>
829 <lit-tag v="pl"/>
830 </equal>
831 </test>
832 <let>
833 <clip pos="2" part="nbr_pp"/>
834 <lit-tag v="pl"/>
835 </let>
836 </when>
837 <otherwise>
838 <let>
839 <clip pos="2" part="nbr_pp"/>
840 <lit-tag v="sg"/>
841 </let>
842 </otherwise>
843 </choose>
844 </def-macro>
846 <def-macro n="concord_sn" npar="2"> <!--asgina gen i nbr en els sn GD o ND quan van seguits de vcop. (p.ex. "esta chica es mi ayudante)-->
847 <choose>
848 <when>
849 <test>
850 <equal>
851 <clip pos="2" part="gen"/>
852 <lit-tag v="GD"/>
853 </equal>
854 </test>
855 <choose>
856 <when>
857 <test>
858 <equal>
859 <clip pos="1" part="gen"/>
860 <lit-tag v="f"/>
861 </equal>
862 </test>
863 <let>
864 <clip pos="2" part="gen"/>
865 <lit-tag v="f"/>
866 </let>
867 </when>
868 <otherwise>
869 <let>
870 <clip pos="2" part="gen"/>
871 <lit-tag v="m"/>
872 </let>
873 </otherwise>
874 </choose>
875 </when>
876 </choose>
877 <choose>
878 <when>
879 <test>
880 <equal>
881 <clip pos="2" part="nbr"/>
882 <lit-tag v="ND"/>
883 </equal>
884 </test>
885 <choose>
886 <when>
887 <test>
888 <equal>
889 <clip pos="1" part="nbr"/>
890 <lit-tag v="pl"/>
891 </equal>
892 </test>
893 <let>
894 <clip pos="2" part="nbr"/>
895 <lit-tag v="pl"/>
896 </let>
897 </when>
898 <otherwise>
899 <let>
900 <clip pos="2" part="nbr"/>
901 <lit-tag v="sg"/>
902 </let>
903 </otherwise>
904 </choose>
905 </when>
906 </choose>
907 </def-macro>
909 <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. -->
910 <choose>
911 <when>
912 <test>
913 <not>
914 <equal>
915 <b pos="1"/>
916 <lit v=" "/>
917 </equal>
918 </not>
919 </test>
920 <out>
921 <b pos="1"/>
922 </out>
923 </when>
924 </choose>
925 </def-macro>
927 </section-def-macros>
929 <section-rules>
930 <!--REGLES GENERALS -->
932 <rule comment="REGLA: SN">
933 <pattern>
934 <pattern-item n="SN"/>
935 </pattern>
936 <action>
937 <call-macro n="assigna_gen_nbr">
938 <with-param pos="1"/>
939 </call-macro>
940 <call-macro n="lema_prn">
941 <with-param pos="1"/>
942 </call-macro>
943 <call-macro n="partitiu">
944 <with-param pos="1"/>
945 </call-macro>
946 <out>
947 <chunk>
948 <clip pos="1" part="lem"/>
949 <clip pos="1" part="tags"/>
950 <clip pos="1" part="chcontent"/>
951 </chunk>
952 </out>
953 </action>
954 </rule>
956 <rule comment="REGLA: prnpersubj SN (nosaltres les dones-> nosautras las femnas)">
957 <pattern>
958 <pattern-item n="prnperssubj"/>
959 <pattern-item n="SN"/>
960 </pattern>
961 <action>
962 <call-macro n="assigna_gen_nbr">
963 <with-param pos="2"/>
964 </call-macro>
965 <call-macro n="lema_prn">
966 <with-param pos="1"/>
967 </call-macro>
968 <!-- <call-macro n="partitiu">
969 <with-param pos="2"/>
970 </call-macro>-->
971 <choose>
972 <when>
973 <test>
974 <equal>
975 <clip pos="1" part="gen"/>
976 <lit-tag v="GD"/>
977 </equal>
978 </test>
979 <let>
980 <clip pos="1" part="gen"/>
981 <clip pos="2" part="gen"/>
982 </let>
983 </when>
984 </choose>
985 <out>
986 <chunk>
987 <clip pos="1" part="lem"/>
988 <clip pos="1" part="tags"/>
989 <clip pos="1" part="chcontent"/>
990 </chunk>
991 <b pos="1"/>
992 <chunk>
993 <clip pos="2" part="lem"/>
994 <clip pos="2" part="tags"/>
995 <clip pos="2" part="chcontent"/>
996 </chunk>
997 </out>
998 </action>
999 </rule>
1001 <rule comment="REGLA: rel">
1002 <pattern>
1003 <pattern-item n="rel"/>
1004 </pattern>
1005 <action>
1006 <call-macro n="dona_info">
1007 <with-param pos="1"/>
1008 </call-macro>
1009 <out>
1010 <chunk>
1011 <clip pos="1" part="lem"/>
1012 <clip pos="1" part="tags"/>
1013 <clip pos="1" part="chcontent"/>
1014 </chunk>
1015 </out>
1016 </action>
1017 </rule>
1019 <rule comment="REGLA: SV">
1020 <pattern>
1021 <pattern-item n="SV"/>
1022 </pattern>
1023 <action>
1024 <call-macro n="modifica_sv">
1025 <with-param pos="1"/>
1026 </call-macro>
1027 <out>
1028 <chunk>
1029 <clip pos="1" part="lem"/>
1030 <clip pos="1" part="tags"/>
1031 <clip pos="1" part="chcontent"/>
1032 </chunk>
1033 </out>
1034 </action>
1035 </rule>
1037 <rule comment="REGLA: SV adv SN">
1038 <pattern>
1039 <pattern-item n="SV"/>
1040 <pattern-item n="adv"/>
1041 <pattern-item n="SN"/>
1042 </pattern>
1043 <action>
1044 <call-macro n="modifica_sv">
1045 <with-param pos="1"/>
1046 </call-macro>
1047 <call-macro n="assigna_gen_nbr">
1048 <with-param pos="3"/>
1049 </call-macro>
1050 <call-macro n="lema_prn">
1051 <with-param pos="3"/>
1052 </call-macro>
1053 <choose>
1054 <when>
1055 <test>
1056 <equal>
1057 <clip pos="2" part="lem"/>
1058 <lit v="adv"/>
1059 </equal>
1060 </test>
1061 <let>
1062 <clip pos="2" part="lem"/>
1063 <lit v="controla_adv"/>
1064 </let>
1065 </when>
1066 </choose>
1068 <out>
1069 <chunk>
1070 <clip pos="1" part="lem"/>
1071 <clip pos="1" part="tags"/>
1072 <clip pos="1" part="chcontent"/>
1073 </chunk>
1074 <b pos="1"/>
1076 <chunk>
1077 <clip pos="2" part="lem"/>
1078 <clip pos="2" part="tags"/>
1079 <clip pos="2" part="chcontent"/>
1080 </chunk>
1081 <b pos="2"/>
1082 </out>
1083 <call-macro n="partitiu">
1084 <with-param pos="3"/>
1085 </call-macro>
1086 <out>
1087 <chunk>
1088 <clip pos="3" part="lem"/>
1089 <clip pos="3" part="tags"/>
1090 <clip pos="3" part="chcontent"/>
1091 </chunk>
1092 </out>
1093 </action>
1094 </rule>
1096 <rule comment="REGLA: prep SN">
1097 <pattern>
1098 <pattern-item n="pr"/>
1099 <pattern-item n="SN"/>
1100 </pattern>
1101 <action>
1102 <call-macro n="assigna_gen_nbr">
1103 <with-param pos="2"/>
1104 </call-macro>
1105 <call-macro n="cv_prep" alt="oc@aran">
1106 <with-param pos="1"/>
1107 <with-param pos="2"/>
1108 </call-macro>
1109 <out>
1110 <chunk>
1111 <clip pos="1" part="lem"/>
1112 <clip pos="1" part="tags"/>
1113 <clip pos="1" part="chcontent"/>
1114 </chunk>
1115 <b pos="1"/>
1116 </out>
1117 <choose>
1118 <when>
1119 <test>
1120 <not>
1121 <in caseless="yes">
1122 <clip pos="1" part="lem"/>
1123 <list n="prde"/>
1124 </in>
1125 </not>
1126 </test>
1127 <call-macro n="partitiu">
1128 <with-param pos="2"/>
1129 </call-macro>
1130 </when>
1131 </choose>
1132 <out>
1133 <chunk>
1134 <clip pos="2" part="lem"/>
1135 <clip pos="2" part="tags"/>
1136 <clip pos="2" part="chcontent"/>
1137 </chunk>
1138 </out>
1139 </action>
1140 </rule>
1142 <rule comment="REGLA: prep SN cnjcoo SN">
1143 <pattern>
1144 <pattern-item n="pr"/>
1145 <pattern-item n="SN"/>
1146 <pattern-item n="cnjcoo"/>
1147 <pattern-item n="SN"/>
1148 </pattern>
1149 <action>
1150 <call-macro n="assigna_gen_nbr">
1151 <with-param pos="2"/>
1152 </call-macro>
1153 <call-macro n="assigna_gen_nbr">
1154 <with-param pos="4"/>
1155 </call-macro>
1156 <call-macro n="cv_prep" alt="oc@aran">
1157 <with-param pos="1"/>
1158 <with-param pos="2"/>
1159 </call-macro>
1160 <out>
1161 <chunk>
1162 <clip pos="1" part="lem"/>
1163 <clip pos="1" part="tags"/>
1164 <clip pos="1" part="chcontent"/>
1165 </chunk>
1166 <b pos="1"/>
1167 </out>
1168 <choose>
1169 <when>
1170 <test>
1171 <not>
1172 <in caseless="yes">
1173 <clip pos="1" part="lem"/>
1174 <list n="prde"/>
1175 </in>
1176 </not>
1177 </test>
1178 <call-macro n="partitiu">
1179 <with-param pos="2"/>
1180 </call-macro>
1181 </when>
1182 </choose>
1183 <out>
1184 <chunk>
1185 <clip pos="2" part="lem"/>
1186 <clip pos="2" part="tags"/>
1187 <clip pos="2" part="chcontent"/>
1188 </chunk>
1189 <b pos="2"/>
1190 <chunk>
1191 <clip pos="3" part="lem"/>
1192 <clip pos="3" part="tags"/>
1193 <clip pos="3" part="chcontent"/>
1194 </chunk>
1195 <b pos="3"/>
1196 </out>
1197 <call-macro n="partitiu">
1198 <with-param pos="4"/>
1199 </call-macro>
1200 <out>
1201 <chunk>
1202 <clip pos="4" part="lem"/>
1203 <clip pos="4" part="tags"/>
1204 <clip pos="4" part="chcontent"/>
1205 </chunk>
1206 </out>
1207 </action>
1208 </rule>
1210 <rule comment="REGLA: SN cnjcoo SN">
1211 <pattern>
1212 <pattern-item n="SN"/>
1213 <pattern-item n="cnjcoo"/>
1214 <pattern-item n="SN"/>
1215 </pattern>
1216 <action>
1217 <call-macro n="assigna_gen_nbr">
1218 <with-param pos="1"/>
1219 </call-macro>
1220 <call-macro n="assigna_gen_nbr">
1221 <with-param pos="3"/>
1222 </call-macro>
1223 <call-macro n="partitiu">
1224 <with-param pos="1"/>
1225 </call-macro>
1226 <out>
1227 <chunk>
1228 <clip pos="1" part="lem"/>
1229 <clip pos="1" part="tags"/>
1230 <clip pos="1" part="chcontent"/>
1231 </chunk>
1232 <b pos="1"/>
1233 <chunk>
1234 <clip pos="2" part="lem"/>
1235 <clip pos="2" part="tags"/>
1236 <clip pos="2" part="chcontent"/>
1237 </chunk>
1238 <b pos="2"/>
1239 </out>
1240 <call-macro n="partitiu">
1241 <with-param pos="1"/>
1242 </call-macro>
1243 <out>
1244 <chunk>
1245 <clip pos="3" part="lem"/>
1246 <clip pos="3" part="tags"/>
1247 <clip pos="3" part="chcontent"/>
1248 </chunk>
1249 </out>
1250 </action>
1251 </rule>
1253 <rule comment="REGLA: cnjcoo">
1254 <pattern>
1255 <pattern-item n="cnjcoo"/>
1256 </pattern>
1257 <action>
1258 <out>
1259 <chunk>
1260 <clip pos="1" part="lem"/>
1261 <clip pos="1" part="tags"/>
1262 <clip pos="1" part="chcontent"/>
1263 </chunk>
1264 </out>
1265 </action>
1266 </rule>
1269 <rule comment="REGLA: SA">
1270 <pattern>
1271 <pattern-item n="SA"/>
1272 </pattern>
1273 <action>
1274 <call-macro n="assigna_gen_nbr">
1275 <with-param pos="1"/>
1276 </call-macro>
1277 <out>
1278 <chunk>
1279 <clip pos="1" part="lem"/>
1280 <clip pos="1" part="tags"/>
1281 <clip pos="1" part="chcontent"/>
1282 </chunk>
1283 </out>
1284 </action>
1285 </rule>
1287 <rule comment="REGLA: det">
1288 <pattern>
1289 <pattern-item n="DET"/>
1290 </pattern>
1291 <action>
1292 <call-macro n="assigna_gen_nbr">
1293 <with-param pos="1"/>
1294 </call-macro>
1295 <out>
1296 <chunk>
1297 <clip pos="1" part="lem"/>
1298 <clip pos="1" part="tags"/>
1299 <clip pos="1" part="chcontent"/>
1300 </chunk>
1301 </out>
1302 </action>
1303 </rule>
1305 <!-- concord de ppi -->
1306 <rule comment="REGLA: SN esser_pp">
1307 <pattern>
1308 <pattern-item n="SN"/>
1309 <pattern-item n="esser_pp"/>
1310 </pattern>
1311 <action>
1312 <call-macro n="concord_pp">
1313 <with-param pos="1"/>
1314 <with-param pos="2"/>
1315 </call-macro>
1316 <call-macro n="assigna_gen_nbr">
1317 <with-param pos="1"/>
1318 </call-macro>
1319 <out>
1320 <chunk>
1321 <clip pos="1" part="lem"/>
1322 <clip pos="1" part="tags"/>
1323 <clip pos="1" part="chcontent"/>
1324 </chunk>
1325 <b pos="1"/>
1326 <chunk>
1327 <clip pos="2" part="lem"/>
1328 <clip pos="2" part="tags"/>
1329 <clip pos="2" part="chcontent"/>
1330 </chunk>
1331 </out>
1332 </action>
1333 </rule>
1335 <rule comment="REGLA: SN sp esser_pp">
1336 <pattern>
1337 <pattern-item n="SN"/>
1338 <pattern-item n="pr"/>
1339 <pattern-item n="SN"/>
1340 <pattern-item n="esser_pp"/>
1341 </pattern>
1342 <action>
1343 <call-macro n="concord_pp">
1344 <with-param pos="1"/>
1345 <with-param pos="4"/>
1346 </call-macro>
1347 <call-macro n="assigna_gen_nbr">
1348 <with-param pos="1"/>
1349 </call-macro>
1350 <call-macro n="assigna_gen_nbr">
1351 <with-param pos="3"/>
1352 </call-macro>
1353 <call-macro n="cv_prep" alt="oc@aran">
1354 <with-param pos="2"/>
1355 <with-param pos="3"/>
1356 </call-macro>
1357 <out>
1358 <chunk>
1359 <clip pos="1" part="lem"/>
1360 <clip pos="1" part="tags"/>
1361 <clip pos="1" part="chcontent"/>
1362 </chunk>
1363 <b pos="1"/>
1364 <chunk>
1365 <clip pos="2" part="lem"/>
1366 <clip pos="2" part="tags"/>
1367 <clip pos="2" part="chcontent"/>
1368 </chunk>
1369 <b pos="2"/>
1370 <chunk>
1371 <clip pos="3" part="lem"/>
1372 <clip pos="3" part="tags"/>
1373 <clip pos="3" part="chcontent"/>
1374 </chunk>
1375 <b pos="3"/>
1376 <chunk>
1377 <clip pos="4" part="lem"/>
1378 <clip pos="4" part="tags"/>
1379 <clip pos="4" part="chcontent"/>
1380 </chunk>
1381 </out>
1382 </action>
1383 </rule>
1385 <!-- regles de verb cop -->
1386 <rule comment="REGLA: SN vbcop SA">
1387 <pattern>
1388 <pattern-item n="SN"/>
1389 <pattern-item n="vbcop"/>
1390 <pattern-item n="SA"/>
1391 </pattern>
1392 <action>
1393 <call-macro n="concord_sa">
1394 <with-param pos="1"/>
1395 <with-param pos="3"/>
1396 </call-macro>
1397 <call-macro n="assigna_gen_nbr">
1398 <with-param pos="1"/>
1399 </call-macro>
1400 <call-macro n="partitiu">
1401 <with-param pos="1"/>
1402 </call-macro>
1403 <call-macro n="concord_pp">
1404 <with-param pos="1"/>
1405 <with-param pos="2"/>
1406 </call-macro>
1407 <out>
1408 <chunk>
1409 <clip pos="1" part="lem"/>
1410 <clip pos="1" part="tags"/>
1411 <clip pos="1" part="chcontent"/>
1412 </chunk>
1413 <b pos="1"/>
1414 <chunk>
1415 <clip pos="2" part="lem"/>
1416 <clip pos="2" part="tags"/>
1417 <clip pos="2" part="chcontent"/>
1418 </chunk>
1419 <b pos="2"/>
1420 <chunk>
1421 <clip pos="3" part="whole"/>
1422 </chunk>
1423 </out>
1424 </action>
1425 </rule>
1427 <rule comment="REGLA: SA vbcop SN">
1428 <pattern>
1429 <pattern-item n="SA"/>
1430 <pattern-item n="vbcop"/>
1431 <pattern-item n="SN"/>
1432 </pattern>
1433 <action>
1434 <call-macro n="concord_sa">
1435 <with-param pos="3"/>
1436 <with-param pos="1"/>
1437 </call-macro>
1438 <call-macro n="assigna_gen_nbr">
1439 <with-param pos="3"/>
1440 </call-macro>
1441 <call-macro n="concord_pp">
1442 <with-param pos="3"/>
1443 <with-param pos="2"/>
1444 </call-macro>
1445 <out>
1446 <chunk>
1447 <clip pos="1" part="lem"/>
1448 <clip pos="1" part="tags"/>
1449 <clip pos="1" part="chcontent"/>
1450 </chunk>
1451 <b pos="1"/>
1452 <chunk>
1453 <clip pos="2" part="lem"/>
1454 <clip pos="2" part="tags"/>
1455 <clip pos="2" part="chcontent"/>
1456 </chunk>
1457 <b pos="2"/>
1458 </out>
1459 <call-macro n="partitiu">
1460 <with-param pos="3"/>
1461 </call-macro>
1462 <out>
1463 <chunk>
1464 <clip pos="3" part="whole"/>
1465 </chunk>
1466 </out>
1467 </action>
1468 </rule>
1470 <rule comment="REGLA: SN vbcop ADV SA">
1471 <pattern>
1472 <pattern-item n="SN"/>
1473 <pattern-item n="vbcop"/>
1474 <pattern-item n="adv"/>
1475 <pattern-item n="SA"/>
1476 </pattern>
1477 <action>
1478 <call-macro n="concord_sa">
1479 <with-param pos="1"/>
1480 <with-param pos="4"/>
1481 </call-macro>
1482 <call-macro n="assigna_gen_nbr">
1483 <with-param pos="1"/>
1484 </call-macro>
1485 <call-macro n="partitiu">
1486 <with-param pos="1"/>
1487 </call-macro>
1488 <call-macro n="concord_pp">
1489 <with-param pos="1"/>
1490 <with-param pos="2"/>
1491 </call-macro>
1492 <out>
1493 <chunk>
1494 <clip pos="1" part="lem"/>
1495 <clip pos="1" part="tags"/>
1496 <clip pos="1" part="chcontent"/>
1497 </chunk>
1498 <b pos="1"/>
1499 <chunk>
1500 <clip pos="2" part="lem"/>
1501 <clip pos="2" part="tags"/>
1502 <clip pos="2" part="chcontent"/>
1503 </chunk>
1504 <b pos="2"/>
1505 <chunk>
1506 <clip pos="3" part="lem"/>
1507 <clip pos="3" part="tags"/>
1508 <clip pos="3" part="chcontent"/>
1509 </chunk>
1510 <b pos="3"/>
1511 <chunk>
1512 <clip pos="4" part="whole"/>
1513 </chunk>
1514 </out>
1515 </action>
1516 </rule>
1518 <rule comment="REGLA: SA vbcop ADV SN">
1519 <pattern>
1520 <pattern-item n="SA"/>
1521 <pattern-item n="vbcop"/>
1522 <pattern-item n="adv"/>
1523 <pattern-item n="SN"/>
1524 </pattern>
1525 <action>
1526 <call-macro n="concord_sa">
1527 <with-param pos="4"/>
1528 <with-param pos="1"/>
1529 </call-macro>
1530 <call-macro n="assigna_gen_nbr">
1531 <with-param pos="4"/>
1532 </call-macro>
1533 <call-macro n="concord_pp">
1534 <with-param pos="4"/>
1535 <with-param pos="2"/>
1536 </call-macro>
1537 <out>
1538 <chunk>
1539 <clip pos="1" part="lem"/>
1540 <clip pos="1" part="tags"/>
1541 <clip pos="1" part="chcontent"/>
1542 </chunk>
1543 <b pos="1"/>
1544 <chunk>
1545 <clip pos="2" part="lem"/>
1546 <clip pos="2" part="tags"/>
1547 <clip pos="2" part="chcontent"/>
1548 </chunk>
1549 <b pos="2"/>
1550 <chunk>
1551 <clip pos="3" part="lem"/>
1552 <clip pos="3" part="tags"/>
1553 <clip pos="3" part="chcontent"/>
1554 </chunk>
1555 <b pos="3"/>
1556 </out>
1557 <call-macro n="partitiu">
1558 <with-param pos="4"/>
1559 </call-macro>
1560 <out>
1561 <chunk>
1562 <clip pos="4" part="lem"/>
1563 <clip pos="4" part="tags"/>
1564 <clip pos="4" part="chcontent"/>
1565 </chunk>
1566 </out>
1567 </action>
1568 </rule>
1571 <rule comment="REGLA: SN vbcop SN">
1572 <pattern>
1573 <pattern-item n="SN"/>
1574 <pattern-item n="vbcop"/>
1575 <pattern-item n="SN"/>
1576 </pattern>
1577 <action>
1578 <call-macro n="concord_sn">
1579 <with-param pos="1"/>
1580 <with-param pos="3"/>
1581 </call-macro>
1582 <call-macro n="assigna_gen_nbr">
1583 <with-param pos="1"/>
1584 </call-macro>
1585 <call-macro n="partitiu">
1586 <with-param pos="1"/>
1587 </call-macro>
1588 <call-macro n="concord_pp">
1589 <with-param pos="1"/>
1590 <with-param pos="2"/>
1591 </call-macro>
1592 <out>
1593 <chunk>
1594 <clip pos="1" part="lem"/>
1595 <clip pos="1" part="tags"/>
1596 <clip pos="1" part="chcontent"/>
1597 </chunk>
1598 <b pos="1"/>
1599 <chunk>
1600 <clip pos="2" part="lem"/>
1601 <clip pos="2" part="tags"/>
1602 <clip pos="2" part="chcontent"/>
1603 </chunk>
1604 <b pos="2"/>
1605 </out>
1606 <call-macro n="partitiu">
1607 <with-param pos="3"/>
1608 </call-macro>
1609 <out>
1610 <chunk>
1611 <clip pos="3" part="whole"/>
1612 </chunk>
1613 </out>
1614 </action>
1615 </rule>
1617 <rule comment="REGLA: SN vbcop adv SN">
1618 <pattern>
1619 <pattern-item n="SN"/>
1620 <pattern-item n="vbcop"/>
1621 <pattern-item n="adv"/>
1622 <pattern-item n="SN"/>
1623 </pattern>
1624 <action>
1625 <call-macro n="concord_sn">
1626 <with-param pos="1"/>
1627 <with-param pos="4"/>
1628 </call-macro>
1629 <call-macro n="assigna_gen_nbr">
1630 <with-param pos="1"/>
1631 </call-macro>
1632 <call-macro n="partitiu">
1633 <with-param pos="1"/>
1634 </call-macro>
1635 <call-macro n="concord_pp">
1636 <with-param pos="1"/>
1637 <with-param pos="2"/>
1638 </call-macro>
1639 <out>
1640 <chunk>
1641 <clip pos="1" part="lem"/>
1642 <clip pos="1" part="tags"/>
1643 <clip pos="1" part="chcontent"/>
1644 </chunk>
1645 <b pos="1"/>
1646 <chunk>
1647 <clip pos="2" part="lem"/>
1648 <clip pos="2" part="tags"/>
1649 <clip pos="2" part="chcontent"/>
1650 </chunk>
1651 <b pos="2"/>
1652 <chunk>
1653 <clip pos="3" part="lem"/>
1654 <clip pos="3" part="tags"/>
1655 <clip pos="3" part="chcontent"/>
1656 </chunk>
1657 <b pos="3"/>
1658 </out>
1659 <call-macro n="partitiu">
1660 <with-param pos="4"/>
1661 </call-macro>
1662 <out>
1663 <chunk>
1664 <clip pos="4" part="lem"/>
1665 <clip pos="4" part="tags"/>
1666 <clip pos="4" part="chcontent"/>
1667 </chunk>
1668 </out>
1669 </action>
1670 </rule>
1673 <rule comment="REGLA: SN sprep vbcop SA">
1674 <pattern>
1675 <pattern-item n="SN"/>
1676 <pattern-item n="pr"/>
1677 <pattern-item n="SN"/>
1678 <pattern-item n="vbcop"/>
1679 <pattern-item n="SA"/>
1680 </pattern>
1681 <action>
1682 <call-macro n="assigna_gen_nbr">
1683 <with-param pos="1"/>
1684 </call-macro>
1685 <call-macro n="assigna_gen_nbr">
1686 <with-param pos="3"/>
1687 </call-macro>
1688 <call-macro n="concord_sa">
1689 <with-param pos="1"/>
1690 <with-param pos="5"/>
1691 </call-macro>
1692 <call-macro n="partitiu">
1693 <with-param pos="1"/>
1694 </call-macro>
1695 <call-macro n="concord_pp">
1696 <with-param pos="1"/>
1697 <with-param pos="4"/>
1698 </call-macro>
1699 <call-macro n="cv_prep" alt="oc@aran">
1700 <with-param pos="2"/>
1701 <with-param pos="3"/>
1702 </call-macro>
1703 <out>
1704 <chunk>
1705 <clip pos="1" part="lem"/>
1706 <clip pos="1" part="tags"/>
1707 <clip pos="1" part="chcontent"/>
1708 </chunk>
1709 <b pos="1"/>
1710 <chunk>
1711 <clip pos="2" part="lem"/>
1712 <clip pos="2" part="tags"/>
1713 <clip pos="2" part="chcontent"/>
1714 </chunk>
1715 <b pos="2"/>
1716 </out>
1717 <choose>
1718 <when>
1719 <test>
1720 <not>
1721 <in caseless="yes">
1722 <clip pos="2" part="lem"/>
1723 <list n="prde"/>
1724 </in>
1725 </not>
1726 </test>
1727 <call-macro n="partitiu">
1728 <with-param pos="3"/>
1729 </call-macro>
1730 </when>
1731 </choose>
1732 <out>
1733 <chunk>
1734 <clip pos="3" part="lem"/>
1735 <clip pos="3" part="tags"/>
1736 <clip pos="3" part="chcontent"/>
1737 </chunk>
1738 <b pos="3"/>
1739 <chunk>
1740 <clip pos="4" part="lem"/>
1741 <clip pos="4" part="tags"/>
1742 <clip pos="4" part="chcontent"/>
1743 </chunk>
1744 <b pos="4"/>
1745 <chunk>
1746 <clip pos="5" part="lem"/>
1747 <clip pos="5" part="tags"/>
1748 <clip pos="5" part="chcontent"/>
1749 </chunk>
1750 </out>
1751 </action>
1752 </rule>
1754 <rule comment="REGLA: SN sprep vbcop adv SA">
1755 <pattern>
1756 <pattern-item n="SN"/>
1757 <pattern-item n="pr"/>
1758 <pattern-item n="SN"/>
1759 <pattern-item n="vbcop"/>
1760 <pattern-item n="adv"/>
1761 <pattern-item n="SA"/>
1762 </pattern>
1763 <action>
1764 <call-macro n="assigna_gen_nbr">
1765 <with-param pos="1"/>
1766 </call-macro>
1767 <call-macro n="assigna_gen_nbr">
1768 <with-param pos="3"/>
1769 </call-macro>
1770 <call-macro n="concord_sa">
1771 <with-param pos="1"/>
1772 <with-param pos="6"/>
1773 </call-macro>
1774 <call-macro n="partitiu">
1775 <with-param pos="1"/>
1776 </call-macro>
1777 <call-macro n="concord_pp">
1778 <with-param pos="1"/>
1779 <with-param pos="4"/>
1780 </call-macro>
1781 <call-macro n="cv_prep" alt="oc@aran">
1782 <with-param pos="2"/>
1783 <with-param pos="3"/>
1784 </call-macro>
1785 <out>
1786 <chunk>
1787 <clip pos="1" part="lem"/>
1788 <clip pos="1" part="tags"/>
1789 <clip pos="1" part="chcontent"/>
1790 </chunk>
1791 <b pos="1"/>
1792 <chunk>
1793 <clip pos="2" part="lem"/>
1794 <clip pos="2" part="tags"/>
1795 <clip pos="2" part="chcontent"/>
1796 </chunk>
1797 <b pos="2"/>
1798 </out>
1799 <choose>
1800 <when>
1801 <test>
1802 <not>
1803 <in caseless="yes">
1804 <clip pos="2" part="lem"/>
1805 <list n="prde"/>
1806 </in>
1807 </not>
1808 </test>
1809 <call-macro n="partitiu">
1810 <with-param pos="3"/>
1811 </call-macro>
1812 </when>
1813 </choose>
1814 <out>
1815 <chunk>
1816 <clip pos="3" part="lem"/>
1817 <clip pos="3" part="tags"/>
1818 <clip pos="3" part="chcontent"/>
1819 </chunk>
1820 <b pos="3"/>
1821 <chunk>
1822 <clip pos="4" part="lem"/>
1823 <clip pos="4" part="tags"/>
1824 <clip pos="4" part="chcontent"/>
1825 </chunk>
1826 <b pos="4"/>
1827 <chunk>
1828 <clip pos="5" part="lem"/>
1829 <clip pos="5" part="tags"/>
1830 <clip pos="5" part="chcontent"/>
1831 </chunk>
1832 <b pos="5"/>
1833 <chunk>
1834 <clip pos="6" part="lem"/>
1835 <clip pos="6" part="tags"/>
1836 <clip pos="6" part="chcontent"/>
1837 </chunk>
1838 </out>
1839 </action>
1840 </rule>
1842 <rule comment="REGLA: SN sprep vbcop SN">
1843 <pattern>
1844 <pattern-item n="SN"/>
1845 <pattern-item n="pr"/>
1846 <pattern-item n="SN"/>
1847 <pattern-item n="vbcop"/>
1848 <pattern-item n="SN"/>
1849 </pattern>
1850 <action>
1851 <call-macro n="assigna_gen_nbr">
1852 <with-param pos="1"/>
1853 </call-macro>
1854 <call-macro n="assigna_gen_nbr">
1855 <with-param pos="3"/>
1856 </call-macro>
1857 <call-macro n="concord_sn">
1858 <with-param pos="1"/>
1859 <with-param pos="5"/>
1860 </call-macro>
1861 <call-macro n="partitiu">
1862 <with-param pos="1"/>
1863 </call-macro>
1864 <call-macro n="concord_pp">
1865 <with-param pos="1"/>
1866 <with-param pos="4"/>
1867 </call-macro>
1868 <call-macro n="cv_prep" alt="oc@aran">
1869 <with-param pos="2"/>
1870 <with-param pos="3"/>
1871 </call-macro>
1872 <out>
1873 <chunk>
1874 <clip pos="1" part="lem"/>
1875 <clip pos="1" part="tags"/>
1876 <clip pos="1" part="chcontent"/>
1877 </chunk>
1878 <b pos="1"/>
1879 <chunk>
1880 <clip pos="2" part="lem"/>
1881 <clip pos="2" part="tags"/>
1882 <clip pos="2" part="chcontent"/>
1883 </chunk>
1884 <b pos="2"/>
1885 </out>
1886 <choose>
1887 <when>
1888 <test>
1889 <not>
1890 <in caseless="yes">
1891 <clip pos="2" part="lem"/>
1892 <list n="prde"/>
1893 </in>
1894 </not>
1895 </test>
1896 <call-macro n="partitiu">
1897 <with-param pos="3"/>
1898 </call-macro>
1899 </when>
1900 </choose>
1901 <out>
1902 <chunk>
1903 <clip pos="3" part="lem"/>
1904 <clip pos="3" part="tags"/>
1905 <clip pos="3" part="chcontent"/>
1906 </chunk>
1907 <b pos="3"/>
1908 <chunk>
1909 <clip pos="4" part="lem"/>
1910 <clip pos="4" part="tags"/>
1911 <clip pos="4" part="chcontent"/>
1912 </chunk>
1913 <b pos="4"/>
1914 </out>
1915 <call-macro n="partitiu" alt="oc-ca">
1916 <with-param pos="5"/>
1917 </call-macro>
1918 <out>
1919 <chunk>
1920 <clip pos="5" part="lem"/>
1921 <clip pos="5" part="tags"/>
1922 <clip pos="5" part="chcontent"/>
1923 </chunk>
1924 </out>
1925 </action>
1926 </rule>
1929 <rule comment="REGLA: SN sprep vbcop adv SN">
1930 <pattern>
1931 <pattern-item n="SN"/>
1932 <pattern-item n="pr"/>
1933 <pattern-item n="SN"/>
1934 <pattern-item n="vbcop"/>
1935 <pattern-item n="adv"/>
1936 <pattern-item n="SN"/>
1937 </pattern>
1938 <action>
1939 <call-macro n="assigna_gen_nbr">
1940 <with-param pos="1"/>
1941 </call-macro>
1942 <call-macro n="assigna_gen_nbr">
1943 <with-param pos="3"/>
1944 </call-macro>
1945 <call-macro n="concord_sn">
1946 <with-param pos="1"/>
1947 <with-param pos="6"/>
1948 </call-macro>
1949 <call-macro n="partitiu">
1950 <with-param pos="1"/>
1951 </call-macro>
1952 <call-macro n="concord_pp">
1953 <with-param pos="1"/>
1954 <with-param pos="4"/>
1955 </call-macro>
1956 <call-macro n="cv_prep" alt="oc@aran">
1957 <with-param pos="2"/>
1958 <with-param pos="3"/>
1959 </call-macro>
1960 <out>
1961 <chunk>
1962 <clip pos="1" part="lem"/>
1963 <clip pos="1" part="tags"/>
1964 <clip pos="1" part="chcontent"/>
1965 </chunk>
1966 <b pos="1"/>
1967 <chunk>
1968 <clip pos="2" part="lem"/>
1969 <clip pos="2" part="tags"/>
1970 <clip pos="2" part="chcontent"/>
1971 </chunk>
1972 <b pos="2"/>
1973 </out>
1974 <choose>
1975 <when>
1976 <test>
1977 <not>
1978 <in caseless="yes">
1979 <clip pos="2" part="lem"/>
1980 <list n="prde"/>
1981 </in>
1982 </not>
1983 </test>
1984 <call-macro n="partitiu">
1985 <with-param pos="3"/>
1986 </call-macro>
1987 </when>
1988 </choose>
1989 <out>
1990 <chunk>
1991 <clip pos="3" part="lem"/>
1992 <clip pos="3" part="tags"/>
1993 <clip pos="3" part="chcontent"/>
1994 </chunk>
1995 <b pos="3"/>
1996 <chunk>
1997 <clip pos="4" part="lem"/>
1998 <clip pos="4" part="tags"/>
1999 <clip pos="4" part="chcontent"/>
2000 </chunk>
2001 <b pos="4"/>
2002 <chunk>
2003 <clip pos="5" part="lem"/>
2004 <clip pos="5" part="tags"/>
2005 <clip pos="5" part="chcontent"/>
2006 </chunk>
2007 <b pos="5"/>
2008 </out>
2009 <call-macro n="partitiu">
2010 <with-param pos="6"/>
2011 </call-macro>
2012 <out>
2013 <chunk>
2014 <clip pos="6" part="lem"/>
2015 <clip pos="6" part="tags"/>
2016 <clip pos="6" part="chcontent"/>
2017 </chunk>
2018 </out>
2019 </action>
2020 </rule>
2022 <rule> <!-- REGLA: reset variables-->
2023 <pattern>
2024 <pattern-item n="punt"/>
2025 </pattern>
2026 <action>
2027 <let>
2028 <var n="nombre"/>
2029 <lit-tag v="sg"/>
2030 </let>
2031 <let>
2032 <var n="nombre_subj"/>
2033 <lit v="no_assignat"/>
2034 </let>
2035 <let>
2036 <var n="pers_subj"/>
2037 <lit-tag v="p3"/>
2038 </let>
2039 <let>
2040 <var n="pronom"/>
2041 <lit v=""/>
2042 </let>
2043 <out>
2044 <chunk>
2045 <clip pos="1" part="whole"/>
2046 </chunk>
2047 </out>
2048 </action>
2049 </rule>
2053 </section-rules>
2054 </interchunk>