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