Split the web app into a client/server system
[apertium.git] / apertium-es-it / apertium-es-it.es-it.t2x
blob1b73d7f5ecda2e90151a66a84e83d5d929736f79
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 <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"/>
162 <def-var n="genere"/>
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 <!--REGLES GENERALS -->
455 <rule comment="REGLA: SN">
456 <pattern>
457 <pattern-item n="SN"/>
458 </pattern>
459 <action>
460 <call-macro n="assigna_gen_nbr">
461 <with-param pos="1"/>
462 </call-macro>
463 <out>
464 <chunk>
465 <clip pos="1" part="lem"/>
466 <clip pos="1" part="tags"/>
467 <clip pos="1" part="chcontent"/>
468 </chunk>
469 </out>
470 </action>
471 </rule>
472 <rule comment="REGLA: SA">
473 <pattern>
474 <pattern-item n="SA"/>
475 </pattern>
476 <action>
477 <call-macro n="assigna_gen_nbr">
478 <with-param pos="1"/>
479 </call-macro>
480 <out>
481 <chunk>
482 <clip pos="1" part="lem"/>
483 <clip pos="1" part="tags"/>
484 <clip pos="1" part="chcontent"/>
485 </chunk>
486 </out>
487 </action>
488 </rule>
489 <rule comment="REGLA: SV">
490 <pattern>
491 <pattern-item n="SV"/>
492 </pattern>
493 <action>
494 <call-macro n="assigna_gen_nbr">
495 <with-param pos="1"/>
496 </call-macro>
497 <out>
498 <chunk>
499 <clip pos="1" part="lem"/>
500 <clip pos="1" part="tags"/>
501 <clip pos="1" part="chcontent"/>
502 </chunk>
503 </out>
504 </action>
505 </rule>
507 <rule comment="REGLA: prep sprep">
508 <pattern>
509 <pattern-item n="pr"/>
510 <pattern-item n="pr"/>
511 <pattern-item n="SN"/>
512 </pattern>
513 <action>
514 <call-macro n="assigna_gen_nbr">
515 <with-param pos="3"/>
516 </call-macro>
517 <choose>
518 <when>
519 <test>
520 <and>
521 <equal>
522 <clip pos="2" part="tprep"/>
523 <lit-tag v="de"/>
524 </equal>
525 <or>
526 <equal>
527 <clip pos="3" part="nbr"/>
528 <lit-tag v="pl"/>
529 </equal>
530 <equal>
531 <clip pos="3" part="tnom"/>
532 <lit-tag v="part"/>
533 </equal>
534 </or>
535 </and>
536 </test>
537 <out>
538 <chunk>
539 <clip pos="1" part="lem"/>
540 <clip pos="1" part="tags"/>
541 <clip pos="1" part="chcontent"/>
542 </chunk>
543 <b pos="1"/>
544 <chunk>
545 <clip pos="3" part="lem"/>
546 <clip pos="3" part="tags"/>
547 <lit-tag v="treu_det"/>
548 <clip pos="3" part="chcontent"/>
549 </chunk>
550 </out>
551 <call-macro n="f_bcond">
552 <with-param pos="2"/>
553 </call-macro>
554 </when>
555 <otherwise>
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="2" part="lem"/>
565 <clip pos="2" part="tags"/>
566 <clip pos="2" part="chcontent"/>
567 </chunk>
568 <b pos="2"/>
569 <chunk>
570 <clip pos="3" part="lem"/>
571 <clip pos="3" part="tags"/>
572 <clip pos="3" part="chcontent"/>
573 </chunk>
574 </out>
575 </otherwise>
576 </choose>
577 </action>
578 </rule>
580 <rule comment="REGLA: SV sprep">
581 <pattern>
582 <pattern-item n="SV"/>
583 <pattern-item n="pr"/>
584 <pattern-item n="SN"/>
585 </pattern>
586 <action>
587 <call-macro n="assigna_gen_nbr">
588 <with-param pos="1"/>
589 </call-macro>
590 <call-macro n="assigna_gen_nbr">
591 <with-param pos="3"/>
592 </call-macro>
593 <call-macro n="cv_prep">
594 <with-param pos="1"/>
595 <with-param pos="2"/>
596 <with-param pos="3"/>
597 </call-macro>
598 <choose>
599 <when>
600 <test>
601 <and>
602 <not>
603 <equal>
604 <clip pos="1" part="tverb"/>
605 <lit-tag v="nopart"/>
606 </equal>
607 </not>
608 <equal>
609 <clip pos="2" part="tprep"/>
610 <lit-tag v="de"/>
611 </equal>
612 <or>
613 <equal>
614 <clip pos="3" part="nbr"/>
615 <lit-tag v="pl"/>
616 </equal>
617 <equal>
618 <clip pos="3" part="tnom"/>
619 <lit-tag v="part"/>
620 </equal>
621 </or>
622 </and>
623 </test>
624 <out>
625 <chunk>
626 <clip pos="1" part="lem"/>
627 <clip pos="1" part="tags"/>
628 <clip pos="1" part="chcontent"/>
629 </chunk>
630 <b pos="1"/>
631 <chunk>
632 <clip pos="3" part="lem"/>
633 <clip pos="3" part="tags"/>
634 <lit-tag v="treu_det"/>
635 <clip pos="3" part="chcontent"/>
636 </chunk>
637 </out>
638 <call-macro n="f_bcond">
639 <with-param pos="2"/>
640 </call-macro>
641 </when>
642 <otherwise>
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="2" part="lem"/>
652 <clip pos="2" part="tags"/>
653 <clip pos="2" part="chcontent"/>
654 </chunk>
655 <b pos="2"/>
656 <chunk>
657 <clip pos="3" part="lem"/>
658 <clip pos="3" part="tags"/>
659 <clip pos="3" part="chcontent"/>
660 </chunk>
661 </out>
662 </otherwise>
663 </choose>
664 </action>
665 </rule>
667 <rule comment="REGLA: SV ADV sprep">
668 <pattern>
669 <pattern-item n="SV"/>
670 <pattern-item n="ADV"/>
671 <pattern-item n="pr"/>
672 <pattern-item n="SN"/>
673 </pattern>
674 <action>
675 <call-macro n="assigna_gen_nbr">
676 <with-param pos="1"/>
677 </call-macro>
678 <call-macro n="assigna_gen_nbr">
679 <with-param pos="4"/>
680 </call-macro>
681 <call-macro n="cv_prep">
682 <with-param pos="1"/>
683 <with-param pos="3"/>
684 <with-param pos="4"/>
685 </call-macro>
686 <choose>
687 <when>
688 <test>
689 <and>
690 <not>
691 <equal>
692 <clip pos="1" part="tverb"/>
693 <lit-tag v="nopart"/>
694 </equal>
695 </not>
696 <equal>
697 <clip pos="3" part="tprep"/>
698 <lit-tag v="de"/>
699 </equal>
700 <or>
701 <equal>
702 <clip pos="4" part="nbr"/>
703 <lit-tag v="pl"/>
704 </equal>
705 <equal>
706 <clip pos="4" part="tnom"/>
707 <lit-tag v="part"/>
708 </equal>
709 </or>
710 </and>
711 </test>
712 <out>
713 <chunk>
714 <clip pos="1" part="lem"/>
715 <clip pos="1" part="tags"/>
716 <clip pos="1" part="chcontent"/>
717 </chunk>
718 <b pos="1"/>
719 <chunk>
720 <clip pos="2" part="lem"/>
721 <clip pos="2" part="tags"/>
722 <clip pos="2" part="chcontent"/>
723 </chunk>
724 <b pos="2"/>
725 <chunk>
726 <clip pos="4" part="lem"/>
727 <clip pos="4" part="tags"/>
728 <lit-tag v="treu_det"/>
729 <clip pos="4" part="chcontent"/>
730 </chunk>
731 </out>
732 <call-macro n="f_bcond">
733 <with-param pos="3"/>
734 </call-macro>
735 </when>
736 <otherwise>
737 <out>
738 <chunk>
739 <clip pos="1" part="lem"/>
740 <clip pos="1" part="tags"/>
741 <clip pos="1" part="chcontent"/>
742 </chunk>
743 <b pos="1"/>
744 <chunk>
745 <clip pos="2" part="lem"/>
746 <clip pos="2" part="tags"/>
747 <clip pos="2" part="chcontent"/>
748 </chunk>
749 <b pos="2"/>
750 <chunk>
751 <clip pos="3" part="lem"/>
752 <clip pos="3" part="tags"/>
753 <clip pos="3" part="chcontent"/>
754 </chunk>
755 <b pos="3"/>
756 <chunk>
757 <clip pos="4" part="lem"/>
758 <clip pos="4" part="tags"/>
759 <clip pos="4" part="chcontent"/>
760 </chunk>
761 </out>
762 </otherwise>
763 </choose>
764 </action>
765 </rule>
767 <rule comment="REGLA: det">
768 <pattern>
769 <pattern-item n="DET"/>
770 </pattern>
771 <action>
772 <call-macro n="assigna_gen_nbr">
773 <with-param pos="1"/>
774 </call-macro>
775 <out>
776 <chunk>
777 <clip pos="1" part="lem"/>
778 <clip pos="1" part="tags"/>
779 <clip pos="1" part="chcontent"/>
780 </chunk>
781 </out>
782 </action>
783 </rule>
785 <rule comment="REGLA: SN SP">
786 <pattern>
787 <pattern-item n="SN"/>
788 <pattern-item n="pr"/>
789 <pattern-item n="SN"/>
790 </pattern>
791 <action>
792 <call-macro n="assigna_gen_nbr">
793 <with-param pos="1"/>
794 </call-macro>
795 <call-macro n="assigna_gen_nbr">
796 <with-param pos="3"/>
797 </call-macro>
798 <call-macro n="cv_prep">
799 <with-param pos="1"/>
800 <with-param pos="2"/>
801 <with-param pos="3"/>
802 </call-macro>
803 <out>
804 <chunk>
805 <clip pos="1" part="lem"/>
806 <clip pos="1" part="tags"/>
807 <clip pos="1" part="chcontent"/>
808 </chunk>
809 <b pos="1"/>
810 <chunk>
811 <clip pos="2" part="lem"/>
812 <clip pos="2" part="tags"/>
813 <clip pos="2" part="chcontent"/>
814 </chunk>
815 <b pos="2"/>
816 <chunk>
817 <clip pos="3" part="lem"/>
818 <clip pos="3" part="tags"/>
819 <clip pos="3" part="chcontent"/>
820 </chunk>
821 </out>
822 </action>
823 </rule>
825 <rule comment="REGLA: SN SV">
826 <pattern>
827 <pattern-item n="SN"/>
828 <pattern-item n="SV"/>
829 </pattern>
830 <action>
831 <call-macro n="assigna_gen_nbr">
832 <with-param pos="1"/>
833 </call-macro>
834 <call-macro n="concord_sn">
835 <with-param pos="1"/>
836 <with-param pos="2"/>
837 </call-macro>
838 <choose>
839 <when>
840 <test>
841 <and>
842 <equal caseless="yes">
843 <clip pos="1" part="lem"/>
844 <lit v="prnperssubj"/>
845 </equal>
846 <equal>
847 <clip pos="2" part="pers"/>
848 <clip pos="1" part="pers"/>
849 </equal>
850 <equal>
851 <clip pos="2" part="nbr"/>
852 <clip pos="1" part="nbr"/>
853 </equal>
854 </and>
855 </test>
856 <out>
857 <chunk><!--el pronom no l'envio, nom� el 2n chunk -->
858 <get-case-from pos="1">
859 <clip pos="2" part="lem"/>
860 </get-case-from>
861 <clip pos="2" part="tags"/>
862 <clip pos="2" part="chcontent"/>
863 </chunk>
864 </out>
865 </when>
866 <otherwise><!--Quan SN no � pronom subjecte, per tant, quan � qualsevol altre SN -->
867 <out>
868 <chunk>
869 <clip pos="1" part="lem"/>
870 <clip pos="1" part="tags"/>
871 <clip pos="1" part="chcontent"/>
872 </chunk>
873 <b pos="1"/>
874 <chunk>
875 <clip pos="2" part="lem"/>
876 <clip pos="2" part="tags"/>
877 <clip pos="2" part="chcontent"/>
878 </chunk>
879 </out>
880 </otherwise>
881 </choose>
882 </action>
883 </rule>
885 <rule comment="REGLA: SN SV sprep">
886 <pattern>
887 <pattern-item n="SN"/>
888 <pattern-item n="SV"/>
889 <pattern-item n="pr"/>
890 <pattern-item n="SN"/>
891 </pattern>
892 <action>
893 <call-macro n="assigna_gen_nbr">
894 <with-param pos="1"/>
895 </call-macro>
896 <call-macro n="assigna_gen_nbr">
897 <with-param pos="4"/>
898 </call-macro>
899 <call-macro n="concord_sn">
900 <with-param pos="1"/>
901 <with-param pos="2"/>
902 </call-macro>
903 <call-macro n="cv_prep">
904 <with-param pos="2"/>
905 <with-param pos="3"/>
906 <with-param pos="4"/>
907 </call-macro>
908 <choose>
909 <when>
910 <test>
911 <and>
912 <equal caseless="yes">
913 <clip pos="1" part="lem"/>
914 <lit v="prnperssubj"/>
915 </equal>
916 <equal>
917 <clip pos="2" part="pers"/>
918 <clip pos="1" part="pers"/>
919 </equal>
920 <equal>
921 <clip pos="2" part="nbr"/>
922 <clip pos="1" part="nbr"/>
923 </equal>
924 </and>
925 </test>
926 <out>
927 <chunk><!--el pronom no l'envio, nom� el 2n chunk -->
928 <get-case-from pos="1">
929 <clip pos="2" part="lem"/>
930 </get-case-from>
931 <clip pos="2" part="tags"/>
932 <clip pos="2" part="chcontent"/>
933 </chunk>
934 <b pos="1"/>
935 </out>
936 <call-macro n="f_bcond">
937 <with-param pos="2"/>
938 </call-macro>
939 </when>
940 <otherwise><!--Quan SN no � pronom subjecte, per tant, quan � qualsevol altre SN -->
941 <out>
942 <chunk>
943 <clip pos="1" part="lem"/>
944 <clip pos="1" part="tags"/>
945 <clip pos="1" part="chcontent"/>
946 </chunk>
947 <b pos="1"/>
948 <chunk>
949 <clip pos="2" part="lem"/>
950 <clip pos="2" part="tags"/>
951 <clip pos="2" part="chcontent"/>
952 </chunk>
953 <b pos="1"/>
954 </out>
955 </otherwise>
956 </choose>
957 <choose>
958 <when>
959 <test>
960 <and>
961 <not>
962 <equal>
963 <clip pos="2" part="tverb"/>
964 <lit-tag v="nopart"/>
965 </equal>
966 </not>
967 <equal>
968 <clip pos="3" part="tprep"/>
969 <lit-tag v="de"/>
970 </equal>
971 <or>
972 <equal>
973 <clip pos="4" part="nbr"/>
974 <lit-tag v="pl"/>
975 </equal>
976 <equal>
977 <clip pos="4" part="tnom"/>
978 <lit-tag v="part"/>
979 </equal>
980 </or>
981 </and>
982 </test>
983 <out>
984 <chunk>
985 <clip pos="4" part="lem"/>
986 <clip pos="4" part="tags"/>
987 <lit-tag v="treu_det"/>
988 <clip pos="4" part="chcontent"/>
989 </chunk>
990 </out>
991 <call-macro n="f_bcond">
992 <with-param pos="3"/>
993 </call-macro>
994 </when>
995 <otherwise>
996 <out>
997 <chunk>
998 <clip pos="3" part="lem"/>
999 <clip pos="3" part="tags"/>
1000 <clip pos="3" part="chcontent"/>
1001 </chunk>
1002 <b pos="3"/>
1003 <chunk>
1004 <clip pos="4" part="lem"/>
1005 <clip pos="4" part="tags"/>
1006 <clip pos="4" part="chcontent"/>
1007 </chunk>
1008 </out>
1009 </otherwise>
1010 </choose>
1011 </action>
1012 </rule>
1014 <rule comment="REGLA: SN adv SV">
1015 <pattern>
1016 <pattern-item n="SN"/>
1017 <pattern-item n="ADV"/>
1018 <pattern-item n="SV"/>
1019 </pattern>
1020 <action>
1021 <call-macro n="assigna_gen_nbr">
1022 <with-param pos="1"/>
1023 </call-macro>
1024 <choose>
1025 <when>
1026 <test>
1027 <and>
1028 <equal caseless="yes">
1029 <clip pos="1" part="lem"/>
1030 <lit v="prnperssubj"/>
1031 </equal>
1032 <equal>
1033 <clip pos="3" part="pers"/>
1034 <clip pos="1" part="pers"/>
1035 </equal>
1036 <equal>
1037 <clip pos="3" part="nbr"/>
1038 <clip pos="1" part="nbr"/>
1039 </equal>
1040 </and>
1041 </test>
1042 <out>
1043 <chunk>
1044 <get-case-from pos="1">
1045 <clip pos="2" part="lem"/>
1046 </get-case-from>
1047 <clip pos="2" part="tags"/>
1048 <clip pos="2" part="chcontent"/>
1049 </chunk>
1050 <b pos="2"/>
1051 <chunk><!--el pronom no l'envio, nom� el 2n chunk -->
1052 <clip pos="3" part="lem"/>
1053 <clip pos="3" part="tags"/>
1054 <clip pos="3" part="chcontent"/>
1055 </chunk>
1056 </out>
1057 </when>
1058 <otherwise><!--Quan SN no � pronom subjecte, per tant, quan � qualsevol altre SN -->
1059 <out>
1060 <chunk>
1061 <clip pos="1" part="lem"/>
1062 <clip pos="1" part="tags"/>
1063 <clip pos="1" part="chcontent"/>
1064 </chunk>
1065 <b pos="1"/>
1066 <chunk>
1067 <clip pos="2" part="lem"/>
1068 <clip pos="2" part="tags"/>
1069 <clip pos="2" part="chcontent"/>
1070 </chunk>
1071 <b pos="2"/>
1072 <chunk>
1073 <clip pos="3" part="lem"/>
1074 <clip pos="3" part="tags"/>
1075 <clip pos="3" part="chcontent"/>
1076 </chunk>
1077 </out>
1078 </otherwise>
1079 </choose>
1080 </action>
1081 </rule>
1083 <rule comment="REGLA: SN adv SV sprep">
1084 <pattern>
1085 <pattern-item n="SN"/>
1086 <pattern-item n="ADV"/>
1087 <pattern-item n="SV"/>
1088 <pattern-item n="pr"/>
1089 <pattern-item n="SN"/>
1090 </pattern>
1091 <action>
1092 <call-macro n="assigna_gen_nbr">
1093 <with-param pos="1"/>
1094 </call-macro>
1095 <call-macro n="assigna_gen_nbr">
1096 <with-param pos="5"/>
1097 </call-macro>
1098 <call-macro n="cv_prep">
1099 <with-param pos="3"/>
1100 <with-param pos="4"/>
1101 <with-param pos="5"/>
1102 </call-macro>
1103 <choose>
1104 <when>
1105 <test>
1106 <and>
1107 <equal caseless="yes">
1108 <clip pos="1" part="lem"/>
1109 <lit v="prnperssubj"/>
1110 </equal>
1111 <equal>
1112 <clip pos="3" part="pers"/>
1113 <clip pos="1" part="pers"/>
1114 </equal>
1115 <equal>
1116 <clip pos="3" part="nbr"/>
1117 <clip pos="1" part="nbr"/>
1118 </equal>
1119 </and>
1120 </test>
1121 <out>
1122 <chunk>
1123 <get-case-from pos="1">
1124 <clip pos="2" part="lem"/>
1125 </get-case-from>
1126 <clip pos="2" part="tags"/>
1127 <clip pos="2" part="chcontent"/>
1128 </chunk>
1129 <b pos="1"/>
1130 <chunk><!--el pronom no l'envio, nom� el 2n chunk -->
1131 <clip pos="3" part="lem"/>
1132 <clip pos="3" part="tags"/>
1133 <clip pos="3" part="chcontent"/>
1134 </chunk>
1135 <b pos="2"/>
1136 </out>
1137 <call-macro n="f_bcond">
1138 <with-param pos="3"/>
1139 </call-macro>
1140 </when>
1141 <otherwise><!--Quan SN no � pronom subjecte, per tant, quan � qualsevol altre SN -->
1142 <out>
1143 <chunk>
1144 <clip pos="1" part="lem"/>
1145 <clip pos="1" part="tags"/>
1146 <clip pos="1" part="chcontent"/>
1147 </chunk>
1148 <b pos="1"/>
1149 <chunk>
1150 <clip pos="2" part="lem"/>
1151 <clip pos="2" part="tags"/>
1152 <clip pos="2" part="chcontent"/>
1153 </chunk>
1154 <b pos="2"/>
1155 <chunk>
1156 <clip pos="3" part="lem"/>
1157 <clip pos="3" part="tags"/>
1158 <clip pos="3" part="chcontent"/>
1159 </chunk>
1160 <b pos="3"/>
1161 </out>
1162 </otherwise>
1163 </choose>
1164 <choose>
1165 <when>
1166 <test>
1167 <and>
1168 <not>
1169 <equal>
1170 <clip pos="3" part="tverb"/>
1171 <lit-tag v="nopart"/>
1172 </equal>
1173 </not>
1174 <equal>
1175 <clip pos="4" part="tprep"/>
1176 <lit-tag v="de"/>
1177 </equal>
1178 <or>
1179 <equal>
1180 <clip pos="5" part="nbr"/>
1181 <lit-tag v="pl"/>
1182 </equal>
1183 <equal>
1184 <clip pos="5" part="tnom"/>
1185 <lit-tag v="part"/>
1186 </equal>
1187 </or>
1188 </and>
1189 </test>
1190 <out>
1191 <chunk>
1192 <clip pos="5" part="lem"/>
1193 <clip pos="5" part="tags"/>
1194 <lit-tag v="treu_det"/>
1195 <clip pos="5" part="chcontent"/>
1196 </chunk>
1197 </out>
1198 <call-macro n="f_bcond">
1199 <with-param pos="3"/>
1200 </call-macro>
1201 </when>
1202 <otherwise>
1203 <out>
1204 <chunk>
1205 <clip pos="4" part="lem"/>
1206 <clip pos="4" part="tags"/>
1207 <clip pos="4" part="chcontent"/>
1208 </chunk>
1209 <b pos="4"/>
1210 <chunk>
1211 <clip pos="5" part="lem"/>
1212 <clip pos="5" part="tags"/>
1213 <clip pos="5" part="chcontent"/>
1214 </chunk>
1215 </out>
1216 </otherwise>
1217 </choose>
1218 </action>
1219 </rule>
1221 <rule comment="REGLA: SN adv SV sprep">
1222 <pattern>
1223 <pattern-item n="SN"/>
1224 <pattern-item n="SV"/>
1225 <pattern-item n="ADV"/>
1226 <pattern-item n="pr"/>
1227 <pattern-item n="SN"/>
1228 </pattern>
1229 <action>
1230 <call-macro n="assigna_gen_nbr">
1231 <with-param pos="1"/>
1232 </call-macro>
1233 <call-macro n="assigna_gen_nbr">
1234 <with-param pos="5"/>
1235 </call-macro>
1236 <call-macro n="cv_prep">
1237 <with-param pos="2"/>
1238 <with-param pos="4"/>
1239 <with-param pos="5"/>
1240 </call-macro>
1241 <choose>
1242 <when>
1243 <test>
1244 <and>
1245 <equal caseless="yes">
1246 <clip pos="1" part="lem"/>
1247 <lit v="prnperssubj"/>
1248 </equal>
1249 <equal>
1250 <clip pos="2" part="pers"/>
1251 <clip pos="1" part="pers"/>
1252 </equal>
1253 <equal>
1254 <clip pos="2" part="nbr"/>
1255 <clip pos="1" part="nbr"/>
1256 </equal>
1257 </and>
1258 </test>
1259 <out>
1260 <chunk>
1261 <get-case-from pos="1">
1262 <clip pos="2" part="lem"/>
1263 </get-case-from>
1264 <clip pos="2" part="tags"/>
1265 <clip pos="2" part="chcontent"/>
1266 </chunk>
1267 <b pos="1"/>
1268 <chunk><!--el pronom no l'envio, nom� el 2n chunk -->
1269 <clip pos="3" part="lem"/>
1270 <clip pos="3" part="tags"/>
1271 <clip pos="3" part="chcontent"/>
1272 </chunk>
1273 <b pos="2"/>
1274 </out>
1275 <call-macro n="f_bcond">
1276 <with-param pos="3"/>
1277 </call-macro>
1278 </when>
1279 <otherwise><!--Quan SN no � pronom subjecte, per tant, quan � qualsevol altre SN -->
1280 <out>
1281 <chunk>
1282 <clip pos="1" part="lem"/>
1283 <clip pos="1" part="tags"/>
1284 <clip pos="1" part="chcontent"/>
1285 </chunk>
1286 <b pos="1"/>
1287 <chunk>
1288 <clip pos="2" part="lem"/>
1289 <clip pos="2" part="tags"/>
1290 <clip pos="2" part="chcontent"/>
1291 </chunk>
1292 <b pos="2"/>
1293 <chunk>
1294 <clip pos="3" part="lem"/>
1295 <clip pos="3" part="tags"/>
1296 <clip pos="3" part="chcontent"/>
1297 </chunk>
1298 <b pos="3"/>
1299 </out>
1300 </otherwise>
1301 </choose>
1302 <choose>
1303 <when>
1304 <test>
1305 <and>
1306 <not>
1307 <equal>
1308 <clip pos="2" part="tverb"/>
1309 <lit-tag v="nopart"/>
1310 </equal>
1311 </not>
1312 <equal>
1313 <clip pos="4" part="tprep"/>
1314 <lit-tag v="de"/>
1315 </equal>
1316 <or>
1317 <equal>
1318 <clip pos="5" part="nbr"/>
1319 <lit-tag v="pl"/>
1320 </equal>
1321 <equal>
1322 <clip pos="5" part="tnom"/>
1323 <lit-tag v="part"/>
1324 </equal>
1325 </or>
1326 </and>
1327 </test>
1328 <out>
1329 <chunk>
1330 <clip pos="5" part="lem"/>
1331 <clip pos="5" part="tags"/>
1332 <lit-tag v="treu_det"/>
1333 <clip pos="5" part="chcontent"/>
1334 </chunk>
1335 </out>
1336 <call-macro n="f_bcond">
1337 <with-param pos="3"/>
1338 </call-macro>
1339 </when>
1340 <otherwise>
1341 <out>
1342 <chunk>
1343 <clip pos="4" part="lem"/>
1344 <clip pos="4" part="tags"/>
1345 <clip pos="4" part="chcontent"/>
1346 </chunk>
1347 <b pos="4"/>
1348 <chunk>
1349 <clip pos="5" part="lem"/>
1350 <clip pos="5" part="tags"/>
1351 <clip pos="5" part="chcontent"/>
1352 </chunk>
1353 </out>
1354 </otherwise>
1355 </choose>
1356 </action>
1357 </rule>
1359 <rule comment="REGLA: SN SV SN pr SN">
1360 <pattern>
1361 <pattern-item n="SN"/>
1362 <pattern-item n="SV"/>
1363 <pattern-item n="SN"/>
1364 <pattern-item n="pr"/>
1365 <pattern-item n="SN"/>
1366 </pattern>
1367 <action>
1368 <call-macro n="assigna_gen_nbr">
1369 <with-param pos="1"/>
1370 </call-macro>
1371 <call-macro n="assigna_gen_nbr">
1372 <with-param pos="3"/>
1373 </call-macro>
1374 <call-macro n="assigna_gen_nbr">
1375 <with-param pos="5"/>
1376 </call-macro>
1377 <call-macro n="cv_prep">
1378 <with-param pos="2"/>
1379 <with-param pos="4"/>
1380 <with-param pos="5"/>
1381 </call-macro>
1382 <call-macro n="cv_prep">
1383 <with-param pos="3"/>
1384 <with-param pos="4"/>
1385 <with-param pos="5"/>
1386 </call-macro>
1387 <choose>
1388 <when>
1389 <test>
1390 <and>
1391 <equal caseless="yes">
1392 <clip pos="1" part="lem"/>
1393 <lit v="prnperssubj"/>
1394 </equal>
1395 <equal>
1396 <clip pos="2" part="pers"/>
1397 <clip pos="1" part="pers"/>
1398 </equal>
1399 <equal>
1400 <clip pos="2" part="nbr"/>
1401 <clip pos="1" part="nbr"/>
1402 </equal>
1403 </and>
1404 </test>
1405 <out>
1406 <chunk><!--el pronom no l'envio, nom� el 2n chunk -->
1407 <get-case-from pos="1">
1408 <clip pos="2" part="lem"/>
1409 </get-case-from>
1410 <clip pos="2" part="tags"/>
1411 <clip pos="2" part="chcontent"/>
1412 </chunk>
1413 </out>
1414 </when>
1415 <otherwise><!--Quan SN no � pronom subjecte, per tant, quan � qualsevol altre SN -->
1416 <out>
1417 <chunk>
1418 <clip pos="1" part="lem"/>
1419 <clip pos="1" part="tags"/>
1420 <clip pos="1" part="chcontent"/>
1421 </chunk>
1422 <b pos="1"/>
1423 <chunk>
1424 <clip pos="2" part="lem"/>
1425 <clip pos="2" part="tags"/>
1426 <clip pos="2" part="chcontent"/>
1427 </chunk>
1428 </out>
1429 </otherwise>
1430 </choose>
1431 <out>
1432 <b pos="2"/>
1433 <chunk>
1434 <clip pos="3" part="lem"/>
1435 <clip pos="3" part="tags"/>
1436 <clip pos="3" part="chcontent"/>
1437 </chunk>
1438 <b pos="3"/>
1439 <chunk>
1440 <clip pos="4" part="lem"/>
1441 <clip pos="4" part="tags"/>
1442 <clip pos="4" part="chcontent"/>
1443 </chunk>
1444 <b pos="4"/>
1445 <chunk>
1446 <clip pos="5" part="lem"/>
1447 <clip pos="5" part="tags"/>
1448 <clip pos="5" part="chcontent"/>
1449 </chunk>
1450 </out>
1451 </action>
1452 </rule>
1454 <rule comment="REGLA: SN ne SV que pr SN">
1455 <pattern>
1456 <pattern-item n="SN"/>
1457 <pattern-item n="ne"/>
1458 <pattern-item n="SV"/>
1459 <pattern-item n="cnjsub"/>
1460 <pattern-item n="pr"/>
1461 <pattern-item n="SN"/>
1462 </pattern>
1463 <action>
1464 <call-macro n="assigna_gen_nbr">
1465 <with-param pos="1"/>
1466 </call-macro>
1467 <call-macro n="assigna_gen_nbr">
1468 <with-param pos="6"/>
1469 </call-macro>
1470 <call-macro n="cv_prep">
1471 <with-param pos="2"/>
1472 <with-param pos="5"/>
1473 <with-param pos="6"/>
1474 </call-macro>
1475 <let>
1476 <clip pos="2" part="lem"/>
1477 <lit v="solo"/>
1478 </let>
1479 <choose>
1480 <when>
1481 <test>
1482 <and>
1483 <equal caseless="yes">
1484 <clip pos="1" part="lem"/>
1485 <lit v="prnperssubj"/>
1486 </equal>
1487 <equal>
1488 <clip pos="3" part="pers"/>
1489 <clip pos="1" part="pers"/>
1490 </equal>
1491 <equal>
1492 <clip pos="3" part="nbr"/>
1493 <clip pos="1" part="nbr"/>
1494 </equal>
1495 </and>
1496 </test>
1497 <out>
1498 <chunk>
1499 <get-case-from pos="1">
1500 <clip pos="2" part="lem"/>
1501 </get-case-from>
1502 <clip pos="2" part="tags"/>
1503 <clip pos="2" part="chcontent"/>
1504 </chunk>
1505 <b pos="1"/>
1506 <chunk><!--el pronom no l'envio -->
1507 <clip pos="3" part="lem"/>
1508 <clip pos="3" part="tags"/>
1509 <clip pos="3" part="chcontent"/>
1510 </chunk>
1511 </out>
1512 <call-macro n="f_bcond">
1513 <with-param pos="2"/>
1514 </call-macro>
1515 </when>
1516 <otherwise><!--Quan SN no � pronom subjecte, per tant, quan � qualsevol altre SN -->
1517 <out>
1518 <chunk>
1519 <clip pos="1" part="lem"/>
1520 <clip pos="1" part="tags"/>
1521 <clip pos="1" part="chcontent"/>
1522 </chunk>
1523 <b pos="1"/>
1524 <chunk>
1525 <clip pos="2" part="lem"/>
1526 <clip pos="2" part="tags"/>
1527 <clip pos="2" part="chcontent"/>
1528 </chunk>
1529 <b pos="2"/>
1530 <chunk>
1531 <clip pos="3" part="lem"/>
1532 <clip pos="3" part="tags"/>
1533 <clip pos="3" part="chcontent"/>
1534 </chunk>
1535 </out>
1536 </otherwise>
1537 </choose>
1538 <choose>
1539 <when>
1540 <test>
1541 <or>
1542 <equal caseless="yes">
1543 <clip pos="6" part="lem"/>
1544 <lit v="inf"/>
1545 </equal>
1546 <equal caseless="yes">
1547 <clip pos="6" part="lem"/>
1548 <lit v="inf_enc"/>
1549 </equal>
1550 <equal caseless="yes">
1551 <clip pos="6" part="lem"/>
1552 <lit v="inf_enc_enc"/>
1553 </equal>
1554 </or>
1555 </test>
1556 <out>
1557 <b pos="3"/>
1558 <chunk>
1559 <clip pos="4" part="lem"/>
1560 <clip pos="4" part="tags"/>
1561 <clip pos="4" part="chcontent"/>
1562 </chunk>
1563 </out>
1564 </when>
1565 <otherwise>
1566 <call-macro n="f_bcond">
1567 <with-param pos="3"/>
1568 </call-macro>
1569 </otherwise>
1570 </choose>
1571 <out>
1572 <b pos="4"/>
1573 <chunk>
1574 <clip pos="5" part="lem"/>
1575 <clip pos="5" part="tags"/>
1576 <clip pos="5" part="chcontent"/>
1577 </chunk>
1578 <b pos="5"/>
1579 <chunk>
1580 <clip pos="6" part="lem"/>
1581 <clip pos="6" part="tags"/>
1582 <clip pos="6" part="chcontent"/>
1583 </chunk>
1584 </out>
1585 </action>
1586 </rule>
1588 <rule comment="REGLA: SN ne SV que SN">
1589 <pattern>
1590 <pattern-item n="SN"/>
1591 <pattern-item n="ne"/>
1592 <pattern-item n="SV"/>
1593 <pattern-item n="cnjsub"/>
1594 <pattern-item n="SN"/>
1595 </pattern>
1596 <action>
1597 <let>
1598 <clip pos="2" part="lem"/>
1599 <lit v="solo"/>
1600 </let>
1601 <call-macro n="assigna_gen_nbr">
1602 <with-param pos="1"/>
1603 </call-macro>
1604 <call-macro n="assigna_gen_nbr">
1605 <with-param pos="5"/>
1606 </call-macro>
1607 <choose>
1608 <when>
1609 <test>
1610 <and>
1611 <equal caseless="yes">
1612 <clip pos="1" part="lem"/>
1613 <lit v="prnperssubj"/>
1614 </equal>
1615 <equal>
1616 <clip pos="3" part="pers"/>
1617 <clip pos="1" part="pers"/>
1618 </equal>
1619 <equal>
1620 <clip pos="3" part="nbr"/>
1621 <clip pos="1" part="nbr"/>
1622 </equal>
1623 </and>
1624 </test>
1625 <out>
1626 <chunk>
1627 <get-case-from pos="1">
1628 <clip pos="2" part="lem"/>
1629 </get-case-from>
1630 <clip pos="2" part="tags"/>
1631 <clip pos="2" part="chcontent"/>
1632 </chunk>
1633 <b pos="1"/>
1634 <chunk>
1635 <get-case-from pos="1">
1636 <clip pos="3" part="lem"/>
1637 </get-case-from>
1638 <clip pos="3" part="tags"/>
1639 <clip pos="3" part="chcontent"/>
1640 </chunk>
1641 </out>
1642 <call-macro n="f_bcond">
1643 <with-param pos="2"/>
1644 </call-macro>
1645 </when>
1646 <otherwise>
1647 <out>
1648 <chunk>
1649 <clip pos="1" part="lem"/>
1650 <clip pos="1" part="tags"/>
1651 <clip pos="1" part="chcontent"/>
1652 </chunk>
1653 <b pos="1"/>
1654 <chunk>
1655 <clip pos="2" part="lem"/>
1656 <clip pos="2" part="tags"/>
1657 <clip pos="2" part="chcontent"/>
1658 </chunk>
1659 <b pos="2"/>
1660 <chunk>
1661 <clip pos="3" part="lem"/>
1662 <clip pos="3" part="tags"/>
1663 <clip pos="3" part="chcontent"/>
1664 </chunk>
1665 </out>
1666 </otherwise>
1667 </choose>
1668 <choose>
1669 <when>
1670 <test>
1671 <or>
1672 <equal caseless="yes">
1673 <clip pos="5" part="lem"/>
1674 <lit v="inf"/>
1675 </equal>
1676 <equal caseless="yes">
1677 <clip pos="5" part="lem"/>
1678 <lit v="inf_enc"/>
1679 </equal>
1680 <equal caseless="yes">
1681 <clip pos="5" part="lem"/>
1682 <lit v="inf_enc_enc"/>
1683 </equal>
1684 </or>
1685 </test>
1686 <out>
1687 <b pos="3"/>
1688 <chunk>
1689 <clip pos="4" part="lem"/>
1690 <clip pos="4" part="tags"/>
1691 <clip pos="4" part="chcontent"/>
1692 </chunk>
1693 </out>
1694 </when>
1695 <otherwise>
1696 <call-macro n="f_bcond">
1697 <with-param pos="3"/>
1698 </call-macro>
1699 </otherwise>
1700 </choose>
1701 <out>
1702 <b pos="4"/>
1703 <chunk>
1704 <clip pos="5" part="lem"/>
1705 <clip pos="5" part="tags"/>
1706 <clip pos="5" part="chcontent"/>
1707 </chunk>
1708 </out>
1709 </action>
1710 </rule>
1712 <rule comment="REGLA: SN ne SV que SN pr SN">
1713 <pattern>
1714 <pattern-item n="SN"/>
1715 <pattern-item n="ne"/>
1716 <pattern-item n="SV"/>
1717 <pattern-item n="cnjsub"/>
1718 <pattern-item n="SN"/>
1719 <pattern-item n="pr"/>
1720 <pattern-item n="SN"/>
1721 </pattern>
1722 <action>
1723 <let>
1724 <clip pos="2" part="lem"/>
1725 <lit v="solo"/>
1726 </let>
1727 <call-macro n="assigna_gen_nbr">
1728 <with-param pos="1"/>
1729 </call-macro>
1730 <call-macro n="assigna_gen_nbr">
1731 <with-param pos="5"/>
1732 </call-macro>
1733 <call-macro n="assigna_gen_nbr">
1734 <with-param pos="7"/>
1735 </call-macro>
1736 <call-macro n="cv_prep">
1737 <with-param pos="3"/>
1738 <with-param pos="6"/>
1739 <with-param pos="7"/>
1740 </call-macro>
1741 <call-macro n="cv_prep">
1742 <with-param pos="5"/>
1743 <with-param pos="6"/>
1744 <with-param pos="7"/>
1745 </call-macro>
1746 <choose>
1747 <when>
1748 <test>
1749 <and>
1750 <equal caseless="yes">
1751 <clip pos="1" part="lem"/>
1752 <lit v="prnperssubj"/>
1753 </equal>
1754 <equal>
1755 <clip pos="3" part="pers"/>
1756 <clip pos="1" part="pers"/>
1757 </equal>
1758 <equal>
1759 <clip pos="3" part="nbr"/>
1760 <clip pos="1" part="nbr"/>
1761 </equal>
1762 </and>
1763 </test>
1764 <out>
1765 <chunk>
1766 <get-case-from pos="1">
1767 <clip pos="2" part="lem"/>
1768 </get-case-from>
1769 <clip pos="2" part="tags"/>
1770 <clip pos="2" part="chcontent"/>
1771 </chunk>
1772 <b pos="1"/>
1773 <chunk>
1774 <get-case-from pos="1">
1775 <clip pos="3" part="lem"/>
1776 </get-case-from>
1777 <clip pos="3" part="tags"/>
1778 <clip pos="3" part="chcontent"/>
1779 </chunk>
1780 </out>
1781 <call-macro n="f_bcond">
1782 <with-param pos="3"/>
1783 </call-macro>
1784 </when>
1785 <otherwise>
1786 <out>
1787 <chunk>
1788 <clip pos="1" part="lem"/>
1789 <clip pos="1" part="tags"/>
1790 <clip pos="1" part="chcontent"/>
1791 </chunk>
1792 <b pos="1"/>
1793 <chunk>
1794 <clip pos="2" part="lem"/>
1795 <clip pos="2" part="tags"/>
1796 <clip pos="2" part="chcontent"/>
1797 </chunk>
1798 <b pos="2"/>
1799 <chunk>
1800 <clip pos="3" part="lem"/>
1801 <clip pos="3" part="tags"/>
1802 <clip pos="3" part="chcontent"/>
1803 </chunk>
1804 </out>
1805 </otherwise>
1806 </choose>
1807 <choose>
1808 <when>
1809 <test>
1810 <or>
1811 <equal caseless="yes">
1812 <clip pos="5" part="lem"/>
1813 <lit v="inf"/>
1814 </equal>
1815 <equal caseless="yes">
1816 <clip pos="5" part="lem"/>
1817 <lit v="inf_enc"/>
1818 </equal>
1819 <equal caseless="yes">
1820 <clip pos="5" part="lem"/>
1821 <lit v="inf_enc_enc"/>
1822 </equal>
1823 </or>
1824 </test>
1825 <out>
1826 <b pos="3"/>
1827 <chunk>
1828 <clip pos="4" part="lem"/>
1829 <clip pos="4" part="tags"/>
1830 <clip pos="4" part="chcontent"/>
1831 </chunk>
1832 </out>
1833 </when>
1834 <otherwise>
1835 <call-macro n="f_bcond">
1836 <with-param pos="3"/>
1837 </call-macro>
1838 </otherwise>
1839 </choose>
1840 <out>
1841 <b pos="4"/>
1842 <chunk>
1843 <clip pos="5" part="lem"/>
1844 <clip pos="5" part="tags"/>
1845 <clip pos="5" part="chcontent"/>
1846 </chunk>
1847 <b pos="5"/>
1848 <chunk>
1849 <clip pos="6" part="lem"/>
1850 <clip pos="6" part="tags"/>
1851 <clip pos="6" part="chcontent"/>
1852 </chunk>
1853 <b pos="6"/>
1854 <chunk>
1855 <clip pos="7" part="lem"/>
1856 <clip pos="7" part="tags"/>
1857 <clip pos="7" part="chcontent"/>
1858 </chunk>
1859 </out>
1860 </action>
1861 </rule>
1863 <rule comment="REGLA: SN SV pr SN">
1864 <pattern>
1865 <pattern-item n="SN"/>
1866 <pattern-item n="SV"/>
1867 <pattern-item n="ADV"/>
1868 <pattern-item n="SN"/>
1869 </pattern>
1870 <action>
1871 <call-macro n="assigna_gen_nbr">
1872 <with-param pos="1"/>
1873 </call-macro>
1874 <call-macro n="assigna_gen_nbr">
1875 <with-param pos="4"/>
1876 </call-macro>
1877 <choose>
1878 <when>
1879 <test>
1880 <and>
1881 <equal caseless="yes">
1882 <clip pos="1" part="lem"/>
1883 <lit v="prnperssubj"/>
1884 </equal>
1885 <equal>
1886 <clip pos="2" part="pers"/>
1887 <clip pos="1" part="pers"/>
1888 </equal>
1889 <equal>
1890 <clip pos="2" part="nbr"/>
1891 <clip pos="1" part="nbr"/>
1892 </equal>
1893 </and>
1894 </test>
1895 <out>
1896 <chunk><!--el pronom no l'envio, nom� el 2n chunk -->
1897 <get-case-from pos="1">
1898 <clip pos="2" part="lem"/>
1899 </get-case-from>
1900 <clip pos="2" part="tags"/>
1901 <clip pos="2" part="chcontent"/>
1902 </chunk>
1903 </out>
1904 </when>
1905 <otherwise><!--Quan SN no � pronom subjecte, per tant, quan � qualsevol altre SN -->
1906 <out>
1907 <chunk>
1908 <clip pos="1" part="lem"/>
1909 <clip pos="1" part="tags"/>
1910 <clip pos="1" part="chcontent"/>
1911 </chunk>
1912 <b pos="1"/>
1913 <chunk>
1914 <clip pos="2" part="lem"/>
1915 <clip pos="2" part="tags"/>
1916 <clip pos="2" part="chcontent"/>
1917 </chunk>
1918 </out>
1919 </otherwise>
1920 </choose>
1921 <choose>
1922 <when>
1923 <test>
1924 <or>
1925 <equal>
1926 <clip pos="4" part="lem"/>
1927 <lit v="inf"/>
1928 </equal>
1929 <equal>
1930 <clip pos="4" part="lem"/>
1931 <lit v="inf_enc"/>
1932 </equal>
1933 </or>
1934 </test>
1935 <out>
1936 <b pos="2"/>
1937 <chunk>
1938 <clip pos="4" part="lem"/>
1939 <clip pos="4" part="tags"/>
1940 <clip pos="4" part="chcontent"/>
1941 </chunk>
1942 <b pos="3"/>
1943 <chunk>
1944 <clip pos="3" part="lem"/>
1945 <clip pos="3" part="tags"/>
1946 <clip pos="3" part="chcontent"/>
1947 </chunk>
1948 </out>
1949 </when>
1950 <otherwise>
1951 <out>
1952 <b pos="2"/>
1953 <chunk>
1954 <clip pos="3" part="lem"/>
1955 <clip pos="3" part="tags"/>
1956 <clip pos="3" part="chcontent"/>
1957 </chunk>
1958 <b pos="3"/>
1959 <chunk>
1960 <clip pos="4" part="lem"/>
1961 <clip pos="4" part="tags"/>
1962 <clip pos="4" part="chcontent"/>
1963 </chunk>
1964 </out>
1965 </otherwise>
1966 </choose>
1967 </action>
1968 </rule>
1970 <rule comment="REGLA: SN vbcop SA">
1971 <pattern>
1972 <pattern-item n="SN"/>
1973 <pattern-item n="vbcop"/>
1974 <pattern-item n="SA"/>
1975 </pattern>
1976 <action>
1977 <call-macro n="concord_sa">
1978 <with-param pos="1"/>
1979 <with-param pos="3"/>
1980 </call-macro>
1981 <call-macro n="assigna_gen_nbr">
1982 <with-param pos="1"/>
1983 </call-macro>
1984 <choose>
1985 <when>
1986 <test>
1987 <and>
1988 <equal caseless="yes">
1989 <clip pos="1" part="lem"/>
1990 <lit v="prnperssubj"/>
1991 </equal>
1992 <equal>
1993 <clip pos="2" part="pers"/>
1994 <clip pos="1" part="pers"/>
1995 </equal>
1996 <equal>
1997 <clip pos="2" part="nbr"/>
1998 <clip pos="1" part="nbr"/>
1999 </equal>
2000 </and>
2001 </test>
2002 <out>
2003 <chunk>
2004 <get-case-from pos="1">
2005 <clip pos="2" part="lem"/>
2006 </get-case-from>
2007 <clip pos="2" part="tags"/>
2008 <clip pos="2" part="chcontent"/>
2009 </chunk>
2010 </out>
2011 </when>
2012 <otherwise>
2013 <out>
2014 <chunk>
2015 <clip pos="1" part="lem"/>
2016 <clip pos="1" part="tags"/>
2017 <clip pos="1" part="chcontent"/>
2018 </chunk>
2019 <b pos="1"/>
2020 <chunk>
2021 <clip pos="2" part="lem"/>
2022 <clip pos="2" part="tags"/>
2023 <clip pos="2" part="chcontent"/>
2024 </chunk>
2025 </out>
2026 </otherwise>
2027 </choose>
2028 <out>
2029 <b pos="2"/>
2030 <chunk>
2031 <clip pos="3" part="whole"/>
2032 </chunk>
2033 </out>
2034 </action>
2035 </rule>
2037 <rule comment="REGLA: SN vbcop SN">
2038 <pattern>
2039 <pattern-item n="SN"/>
2040 <pattern-item n="vbcop"/>
2041 <pattern-item n="SN"/>
2042 </pattern>
2043 <action>
2044 <call-macro n="concord_sn">
2045 <with-param pos="1"/>
2046 <with-param pos="3"/>
2047 </call-macro>
2048 <call-macro n="assigna_gen_nbr">
2049 <with-param pos="1"/>
2050 </call-macro>
2051 <choose>
2052 <when>
2053 <test>
2054 <and>
2055 <equal caseless="yes">
2056 <clip pos="1" part="lem"/>
2057 <lit v="prnperssubj"/>
2058 </equal>
2059 <equal>
2060 <clip pos="2" part="pers"/>
2061 <clip pos="1" part="pers"/>
2062 </equal>
2063 <equal>
2064 <clip pos="2" part="nbr"/>
2065 <clip pos="1" part="nbr"/>
2066 </equal>
2067 </and>
2068 </test>
2069 <out>
2070 <chunk>
2071 <get-case-from pos="1">
2072 <clip pos="2" part="lem"/>
2073 </get-case-from>
2074 <clip pos="2" part="tags"/>
2075 <clip pos="2" part="chcontent"/>
2076 </chunk>
2077 </out>
2078 </when>
2079 <otherwise>
2080 <out>
2081 <chunk>
2082 <clip pos="1" part="lem"/>
2083 <clip pos="1" part="tags"/>
2084 <clip pos="1" part="chcontent"/>
2085 </chunk>
2086 <b pos="1"/>
2087 <chunk>
2088 <clip pos="2" part="lem"/>
2089 <clip pos="2" part="tags"/>
2090 <clip pos="2" part="chcontent"/>
2091 </chunk>
2092 </out>
2093 </otherwise>
2094 </choose>
2095 <out>
2096 <b pos="2"/>
2097 <chunk>
2098 <clip pos="3" part="whole"/>
2099 </chunk>
2100 </out>
2101 </action>
2102 </rule>
2104 <rule comment="REGLA: SN SP vbcop SA">
2105 <pattern>
2106 <pattern-item n="SN"/>
2107 <pattern-item n="pr"/>
2108 <pattern-item n="SN"/>
2109 <pattern-item n="vbcop"/>
2110 <pattern-item n="SA"/>
2111 </pattern>
2112 <action>
2113 <call-macro n="assigna_gen_nbr">
2114 <with-param pos="1"/>
2115 </call-macro>
2116 <call-macro n="assigna_gen_nbr">
2117 <with-param pos="3"/>
2118 </call-macro>
2119 <call-macro n="concord_sa">
2120 <with-param pos="1"/>
2121 <with-param pos="5"/>
2122 </call-macro>
2123 <call-macro n="cv_prep">
2124 <with-param pos="1"/>
2125 <with-param pos="2"/>
2126 <with-param pos="3"/>
2127 </call-macro>
2128 <out>
2129 <chunk>
2130 <clip pos="1" part="lem"/>
2131 <clip pos="1" part="tags"/>
2132 <clip pos="1" part="chcontent"/>
2133 </chunk>
2134 <b pos="1"/>
2135 <chunk>
2136 <clip pos="2" part="lem"/>
2137 <clip pos="2" part="tags"/>
2138 <clip pos="2" part="chcontent"/>
2139 </chunk>
2140 <b pos="2"/>
2141 <chunk>
2142 <clip pos="3" part="lem"/>
2143 <clip pos="3" part="tags"/>
2144 <clip pos="3" part="chcontent"/>
2145 </chunk>
2146 <b pos="3"/>
2147 <chunk>
2148 <clip pos="4" part="lem"/>
2149 <clip pos="4" part="tags"/>
2150 <clip pos="4" part="chcontent"/>
2151 </chunk>
2152 <b pos="4"/>
2153 <chunk>
2154 <clip pos="5" part="lem"/>
2155 <clip pos="5" part="tags"/>
2156 <clip pos="5" part="chcontent"/>
2157 </chunk>
2159 </out>
2160 </action>
2161 </rule>
2164 <rule comment="REGLA: SN SP vbcop SN">
2165 <pattern>
2166 <pattern-item n="SN"/>
2167 <pattern-item n="pr"/>
2168 <pattern-item n="SN"/>
2169 <pattern-item n="vbcop"/>
2170 <pattern-item n="SN"/>
2171 </pattern>
2172 <action>
2173 <call-macro n="assigna_gen_nbr">
2174 <with-param pos="1"/>
2175 </call-macro>
2176 <call-macro n="assigna_gen_nbr">
2177 <with-param pos="3"/>
2178 </call-macro>
2179 <call-macro n="concord_sn">
2180 <with-param pos="1"/>
2181 <with-param pos="5"/>
2182 </call-macro>
2183 <call-macro n="cv_prep">
2184 <with-param pos="1"/>
2185 <with-param pos="2"/>
2186 <with-param pos="3"/>
2187 </call-macro>
2188 <out>
2189 <chunk>
2190 <clip pos="1" part="lem"/>
2191 <clip pos="1" part="tags"/>
2192 <clip pos="1" part="chcontent"/>
2193 </chunk>
2194 <b pos="1"/>
2195 <chunk>
2196 <clip pos="2" part="lem"/>
2197 <clip pos="2" part="tags"/>
2198 <clip pos="2" part="chcontent"/>
2199 </chunk>
2200 <b pos="2"/>
2201 <chunk>
2202 <clip pos="3" part="lem"/>
2203 <clip pos="3" part="tags"/>
2204 <clip pos="3" part="chcontent"/>
2205 </chunk>
2206 <b pos="3"/>
2207 <chunk>
2208 <clip pos="4" part="lem"/>
2209 <clip pos="4" part="tags"/>
2210 <clip pos="4" part="chcontent"/>
2211 </chunk>
2212 <b pos="4"/>
2213 <chunk>
2214 <clip pos="5" part="lem"/>
2215 <clip pos="5" part="tags"/>
2216 <clip pos="5" part="chcontent"/>
2217 </chunk>
2218 </out>
2219 </action>
2220 </rule>
2226 <rule> <!-- REGLA: reset variables-->
2227 <pattern>
2228 <pattern-item n="punt"/>
2229 </pattern>
2230 <action>
2231 <let>
2232 <var n="nombre"/>
2233 <lit-tag v="sg"/>
2234 </let>
2235 <out>
2236 <chunk>
2237 <clip pos="1" part="whole"/>
2238 </chunk>
2239 </out>
2240 </action>
2241 </rule>
2245 </section-rules>
2246 </interchunk>