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