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