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