Minor hack
[apertium.git] / apertium-fr-es / apertium-fr-es.es-fr.t2x
blob3f75f1eae0ee7374d0c690cfce30fe8f6b7a69f1
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 </def-cat>
18 <def-cat n="SN_nopron">
19 <cat-item tags="SN.DET.*"/>
20 <cat-item tags="SN.UNDET.*"/>
21 <cat-item tags="SN.NUM.*"/>
22 </def-cat>
24 <def-cat n="SV"><!--Verb conjugat, i tb infinitiu per quan el tagger s'equivoca. -->
25 <!-- <cat-item lemma="verbcj" tags="SV.*"/>
26 <cat-item tags="Vcop.*"/>
27 <cat-item lemma="mod" tags="SV.*"/><!-#-MG: I have to <sent> : no deixar-ho penjat (haig de 'fer-ho'). En canvi : 'I have to <desconeguda>: s�que � 'haig de'. -#->
28 <cat-item lemma="auxmod_inf" tags="SV.*"/>
29 <cat-item lemma="auxmod_mod_inf" tags="SV.*"/>
30 <cat-item lemma="do_inf" tags="SV.*"/>
31 <cat-item lemma="mod_inf" tags="SV.*"/>
32 <cat-item lemma="mod_perif" tags="SV.*"/>
33 <cat-item lemma="mod_inf_perif" tags="SV.*"/>
34 <cat-item lemma="aux_mod" tags="SV.*"/><!-#-Aquests van davant desconegudes o sent (I will have to.) -#->
35 <cat-item lemma="have_pp" tags="SV.*"/>
36 <cat-item lemma="be_ger" tags="SV.*"/>
37 <cat-item lemma="be_ger_enc" tags="SV.*"/>
38 <cat-item tags="SV.vblex.inf.*"/>
39 <cat-item tags="SV.vbmod.inf.*"/>
40 <cat-item lemma="verbcj_perif" tags="SV.*"/>
41 <cat-item lemma="pro_verbcj" tags="SV.*"/>
42 <cat-item lemma="pro_verbcj_perif" tags="SV.*"/>
43 <cat-item lemma="pro_auxmod_inf" tags="SV.*"/>
44 <cat-item lemma="pro_mod_inf" tags="SV.*"/>
45 <cat-item lemma="pro_mod_inf_perif" tags="SV.*"/>
46 <cat-item lemma="pro_auxmod_mod_inf" tags="SV.*"/>
47 <cat-item lemma="pro_have_pp" tags="SV.*"/>
48 <cat-item lemma="pro_be_ger" tags="SV.*"/>
49 <cat-item lemma="pro_do_inf" tags="SV.*"/>-->
50 <cat-item tags="SV.*"/>
51 </def-cat>
53 <def-cat n="QUEREL">
54 <cat-item tags="querel.*"/>
55 </def-cat>
57 <def-cat n="vbcop">
58 <cat-item tags="SV.vbser.*"/>
59 </def-cat>
61 <def-cat n="adv">
62 <cat-item tags="adv"/>
63 <cat-item tags="adv.*"/>
64 <cat-item tags="preadv"/>
66 </def-cat>
68 <def-cat n="PRNS">
69 <cat-item tags="PRN.subj.*"/>
70 </def-cat>
72 <def-cat n="SA">
73 <cat-item tags="SA.*"/>
74 </def-cat>
76 <def-cat n="pp">
77 <cat-item lemma="pp" tags="SA.*"/>
78 <cat-item lemma="adj" tags="SA.*"/><!-- BCN per que agafi b�resolutions adopted -->
79 </def-cat>
81 <def-cat n="DET">
82 <cat-item tags="DET.*"/>
83 </def-cat>
85 <def-cat n="RELNN">
86 <cat-item tags="REL.nn.*"/>
87 </def-cat>
89 <def-cat n="RELAN">
90 <cat-item tags="REL.an.*"/>
91 </def-cat>
93 <def-cat n="NUM">
94 <cat-item tags="NUM.*"/>
95 </def-cat>
97 <def-cat n="punt">
98 <cat-item tags="sent"/>
99 </def-cat>
101 <def-cat n="cnjcoo"> <!-- BCN-->
102 <cat-item tags="cnjcoo"/>
103 </def-cat>
106 </section-def-cats>
108 <section-def-attrs>
110 <def-attr n="pers">
111 <attr-item tags="p1"/>
112 <attr-item tags="p2"/>
113 <attr-item tags="p3"/>
114 <attr-item tags="PD"/>
115 </def-attr>
117 <def-attr n="gen">
118 <attr-item tags="m"/>
119 <attr-item tags="f"/>
120 <attr-item tags="mf"/>
121 <attr-item tags="GD"/>
122 <attr-item tags="nt"/>
123 </def-attr>
125 <def-attr n="nbr">
126 <attr-item tags="sg"/>
127 <attr-item tags="pl"/>
128 <attr-item tags="sp"/>
129 <attr-item tags="ND"/>
130 </def-attr>
132 <def-attr n="temps">
133 <attr-item tags="inf"/>
134 <attr-item tags="pri"/>
135 <attr-item tags="prs"/>
136 <attr-item tags="ifi"/>
137 <attr-item tags="pii"/>
138 <attr-item tags="pis"/>
139 <attr-item tags="cni"/>
140 <attr-item tags="fti"/>
141 <attr-item tags="pp"/>
142 <attr-item tags="ger"/>
143 <attr-item tags="imp"/>
145 </def-attr>
147 <def-attr n="a_verb">
148 <attr-item tags="vblex"/>
149 <attr-item tags="vblex.pron"/>
150 <attr-item tags="vbhaver"/>
151 <attr-item tags="vbser"/>
152 <attr-item tags="vbmod"/>
153 <attr-item tags="HAVER"/>
154 </def-attr>
156 <def-attr n="a_SN">
157 <attr-item tags="DET"/>
158 <attr-item tags="UNDET"/>
159 <attr-item tags="NUM"/>
160 <attr-item tags="PDET"/><!--'Per determinar', per a SN UNDET que han de passar a determinats, transformaci�que far�el postchunk detectant els PDET. -->
161 </def-attr>
163 </section-def-attrs>
166 <section-def-vars>
167 <def-var n="nombre_subj"/>
168 <def-var n="pers_subj"/>
169 <def-var n="uno"/>
170 <def-var n="nombre"/>
171 <def-var n="genere"/>
172 <def-var n="concord"/>
173 </section-def-vars>
176 <section-def-lists>
177 <def-list n="prde">
179 <list-item v="afin de"/>
180 <list-item v="à l'egard de"/>
181 <list-item v="à l'encontre de"/>
182 <list-item v="à l'exception de"/>
183 <list-item v="à l'instar de"/>
184 <list-item v="à l'occasion de"/>
185 <list-item v="au bout de"/>
186 <list-item v="au cours de"/>
187 <list-item v="au delà de"/>
188 <list-item v="au-delà de"/>
189 <list-item v="au dire de"/>
190 <list-item v="au milieu de"/>
191 <list-item v="au prétexte de"/>
192 <list-item v="au profit de"/>
193 <list-item v="au sujet de"/>
194 <list-item v="dans bien de"/>
195 <list-item v="dans le cadre de"/>
196 <list-item v="de"/>
197 <list-item v="en échange de"/>
198 <list-item v="en raison de"/>
199 <list-item v="lors de"/>
200 <list-item v="par l'intermédiaire de"/>
201 <list-item v="pour ce qui est de"/>
202 <list-item v="sur la rêquete de"/>
204 </def-list>
208 <def-list n="advcantidad">
210 <list-item v="plus"/>
211 <list-item v="moins"/>
212 <list-item v="beaucoup"/>
213 </def-list>
214 </section-def-lists>
217 <section-def-macros>
219 <def-macro n="envia_pas" npar="1">
220 <choose>
221 <when>
222 <test>
223 <equal>
224 <clip pos="1" part="lem"/>
225 <lit v="no"/>
226 </equal>
227 </test>
228 <out>
229 <b/>
230 <chunk>
231 <lit v="adv_neg"/>
232 <lit-tag v="adv"/>
233 <lit v="{^"/>
234 <get-case-from pos="1">
235 <lit v="pas"/>
236 </get-case-from>
237 <lit-tag v="adv"/>
238 <lit v="$}"/>
239 </chunk>
240 </out>
241 </when>
242 </choose>
243 </def-macro>
245 <def-macro n="comprova_concord_2" npar="3">
246 <choose>
247 <when>
248 <test>
249 <equal>
250 <clip pos="3" part="nbr"/>
251 <lit-tag v="pl"/>
252 </equal>
253 </test>
254 <choose>
255 <when>
256 <test>
257 <equal>
258 <clip pos="3" part="pers"/>
259 <lit-tag v="p1"/>
260 </equal>
261 </test>
262 <choose>
263 <when>
264 <test>
265 <or>
266 <equal>
267 <clip pos="1" part="pers"/>
268 <lit-tag v="p1"/>
269 </equal>
270 <equal>
271 <clip pos="2" part="pers"/>
272 <lit-tag v="p1"/>
273 </equal>
274 </or>
275 </test>
276 <let><var n="concord"/><lit-tag v="yes"/></let>
277 </when>
278 <otherwise>
279 <let><var n="concord"/><lit-tag v="no"/></let>
280 </otherwise>
281 </choose>
282 </when> <!--no és 1a pers-->
283 <otherwise>
284 <choose>
285 <when>
286 <test>
287 <equal>
288 <clip pos="3" part="pers"/>
289 <lit-tag v="p2"/>
290 </equal>
291 </test>
292 <choose>
293 <when>
294 <test>
295 <or>
296 <equal>
297 <clip pos="1" part="pers"/>
298 <lit-tag v="p3"/>
299 </equal>
300 <equal>
301 <clip pos="2" part="pers"/>
302 <lit-tag v="p2"/>
303 </equal>
304 </or>
305 </test>
306 <let><var n="concord"/><lit-tag v="yes"/></let>
307 </when>
308 <otherwise>
309 <let><var n="concord"/><lit-tag v="no"/></let>
310 </otherwise>
311 </choose>
312 </when> <!--no és 2a pers-->
313 <otherwise><!--és 3a pers-->
314 <choose>
315 <when>
316 <test>
317 <and>
318 <not>
319 <equal>
320 <clip pos="1" part="pers"/>
321 <lit-tag v="p1"/>
322 </equal>
323 </not>
324 <not>
325 <equal>
326 <clip pos="2" part="pers"/>
327 <lit-tag v="p1"/>
328 </equal>
329 </not>
330 <not>
331 <equal>
332 <clip pos="1" part="pers"/>
333 <lit-tag v="p2"/>
334 </equal>
335 </not>
336 <not>
337 <equal>
338 <clip pos="2" part="pers"/>
339 <lit-tag v="p2"/>
340 </equal>
341 </not>
342 </and>
343 </test>
344 <let><var n="concord"/><lit-tag v="yes"/></let>
345 </when>
346 <otherwise>
347 <let><var n="concord"/><lit-tag v="no"/></let>
348 </otherwise>
349 </choose>
350 </otherwise>
351 </choose>
352 </otherwise>
353 </choose>
354 </when><!--no és pl-->
355 <otherwise>
356 <let><var n="concord"/><lit-tag v="no"/></let>
357 </otherwise>
358 </choose>
359 </def-macro>
361 <def-macro n="assigna_gen_nbr" npar="1">
362 <choose><!--To determine value of variables of gender and
363 number and propagate to other rules. Variables are
364 not used again in this rule -->
365 <when>
366 <test>
367 <equal>
368 <clip pos="1" part="nbr"/>
369 <lit-tag v="pl"/>
370 </equal>
371 </test>
372 <let><var n="nombre"/><lit-tag v="pl"/></let>
373 </when>
374 <!--afegit per Gema--> <when>
375 <test>
376 <equal>
377 <clip pos="1" part="nbr"/>
378 <lit-tag v="sp"/>
379 </equal>
380 </test>
381 <let><clip pos="1" part="nbr"/><lit-tag v="pl"/></let>
382 </when>
384 <when>
385 <test>
386 <equal>
387 <clip pos="1" part="nbr"/>
388 <lit-tag v=""/>
389 </equal>
390 </test>
391 <let><clip pos="1" part="nbr"/><lit-tag v="pl"/></let>
392 </when>
394 <when>
395 <test>
396 <or>
397 <equal>
398 <clip pos="1" part="nbr"/>
399 <lit-tag v="sg"/>
400 </equal>
401 <equal>
402 <var n="nombre"/>
403 <lit v=""/>
404 </equal>
405 </or>
406 </test>
407 <let><var n="nombre"/><lit-tag v="sg"/></let>
408 </when>
409 </choose>
410 <choose>
411 <when>
412 <test>
413 <equal>
414 <clip pos="1" part="gen"/>
415 <lit-tag v="f"/>
416 </equal>
417 </test>
418 <let><var n="genere"/><lit-tag v="f"/></let>
419 </when>
420 <when>
421 <test>
422 <or>
423 <equal>
424 <clip pos="1" part="gen"/>
425 <lit-tag v="m"/>
426 </equal>
427 <equal>
428 <var n="genere"/>
429 <lit v=""/>
430 </equal>
431 </or>
432 </test>
433 <let><var n="genere"/><lit-tag v="m"/></let>
434 </when>
435 </choose>
436 <choose>
437 <when>
438 <test>
439 <equal>
440 <clip pos="1" part="nbr"/>
441 <lit-tag v="ND"/>
442 </equal>
443 </test>
444 <let><clip pos="1" part="nbr"/><var n="nombre"/></let>
445 </when>
446 </choose>
447 <choose>
448 <when>
449 <test>
450 <equal>
451 <clip pos="1" part="gen"/>
452 <lit-tag v="GD"/>
453 </equal>
454 </test>
455 <let><clip pos="1" part="gen"/><var n="genere"/></let>
456 </when>
457 </choose>
458 </def-macro>
460 <def-macro n="assigna_nombre_subj" npar="1">
461 <choose><!--mirem el nbr-->
462 <when>
463 <test>
464 <or>
465 <equal>
466 <var n="nombre_subj"/>
467 <lit v="no_assignat"/>
468 </equal>
469 <equal>
470 <var n="nombre_subj"/>
471 <lit v=""/>
472 </equal>
473 </or>
474 </test>
475 <let><var n="nombre_subj"/><clip pos="1" part="nbr"/></let>
476 </when>
477 <otherwise>
478 <choose>
479 <when>
480 <test>
481 <or>
482 <equal>
483 <var n="nombre_subj"/>
484 <lit-tag v="vist_sg"/>
485 </equal>
486 <equal>
487 <var n="nombre_subj"/>
488 <lit-tag v="sg"/>
489 </equal>
490 </or>
491 </test>
492 <let><var n="nombre_subj"/><lit-tag v="pl"/></let>
493 </when>
494 </choose>
495 </otherwise>
496 </choose>
497 <choose><!--i aquí la pers-->
498 <when>
499 <test>
500 <or>
501 <equal>
502 <var n="pers_subj"/>
503 <lit-tag v="p3"/>
504 </equal>
505 <equal>
506 <var n="pers_subj"/>
507 <lit v=""/>
508 </equal>
509 </or>
510 </test>
511 <choose>
512 <when>
513 <test>
514 <equal>
515 <clip pos="1" part="pers"/>
516 <lit-tag v="p1"/>
517 </equal>
518 </test>
519 <let><var n="pers_subj"/><lit-tag v="p1"/></let>
520 </when>
521 <otherwise>
522 <choose>
523 <when>
524 <test>
525 <equal>
526 <clip pos="1" part="pers"/>
527 <lit-tag v="p2"/>
528 </equal>
529 </test>
530 <let><var n="pers_subj"/><lit-tag v="p2"/></let>
531 </when>
532 <otherwise><let><var n="pers_subj"/><lit-tag v="p3"/></let></otherwise>
533 </choose>
534 </otherwise>
535 </choose>
536 </when>
537 <otherwise>
538 <choose>
539 <when>
540 <test>
541 <equal>
542 <var n="pers_subj"/>
543 <lit-tag v="p2"/>
544 </equal>
545 </test>
546 <choose>
547 <when>
548 <test>
549 <equal>
550 <clip pos="1" part="pers"/>
551 <lit-tag v="p1"/>
552 </equal>
553 </test>
554 <let><var n="pers_subj"/><lit-tag v="p1"/></let>
555 </when>
556 <!-- és p2 -->
557 </choose>
558 </when>
559 </choose>
560 </otherwise>
561 </choose>
563 </def-macro>
565 <def-macro n="concord_sa" npar="2"><!--assigna el gen i el nbr del sn en els sa en les frases amb verb copulatiu (p.ex "la perspectiva de tu tía es interesante" -> "interesante" concordarà amb "aperçu")-->
566 <choose>
567 <when>
568 <test>
569 <equal>
570 <clip pos="1" part="gen"/>
571 <lit-tag v="f"/>
572 </equal>
573 </test>
574 <let>
575 <clip pos="2" part="gen"/>
576 <lit-tag v="f"/>
577 </let>
578 </when>
579 <otherwise>
580 <let>
581 <clip pos="2" part="gen"/>
582 <lit-tag v="m"/>
583 </let>
584 </otherwise>
585 </choose>
587 <choose>
588 <when>
589 <test>
590 <equal>
591 <clip pos="1" part="nbr"/>
592 <lit-tag v="pl"/>
593 </equal>
594 </test>
595 <let>
596 <clip pos="2" part="nbr"/>
597 <lit-tag v="pl"/>
598 </let>
599 </when>
600 <otherwise>
601 <let>
602 <clip pos="2" part="nbr"/>
603 <lit-tag v="sg"/>
604 </let>
605 </otherwise>
606 </choose>
608 </def-macro>
610 <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)-->
611 <choose>
612 <when>
613 <test>
614 <equal>
615 <clip pos="2" part="gen"/>
616 <lit-tag v="GD"/>
617 </equal>
618 </test>
619 <choose>
620 <when>
621 <test>
622 <equal>
623 <clip pos="1" part="gen"/>
624 <lit-tag v="f"/>
625 </equal>
626 </test>
627 <let>
628 <clip pos="2" part="gen"/>
629 <lit-tag v="f"/>
630 </let>
631 </when>
632 <otherwise>
633 <let>
634 <clip pos="2" part="gen"/>
635 <lit-tag v="m"/>
636 </let>
637 </otherwise>
638 </choose>
639 </when>
640 </choose>
641 <choose>
642 <when>
643 <test>
644 <equal>
645 <clip pos="2" part="nbr"/>
646 <lit-tag v="ND"/>
647 </equal>
648 </test>
649 <choose>
650 <when>
651 <test>
652 <equal>
653 <clip pos="1" part="nbr"/>
654 <lit-tag v="pl"/>
655 </equal>
656 </test>
657 <let>
658 <clip pos="2" part="nbr"/>
659 <lit-tag v="pl"/>
660 </let>
661 </when>
662 <otherwise>
663 <let>
664 <clip pos="2" part="nbr"/>
665 <lit-tag v="sg"/>
666 </let>
667 </otherwise>
668 </choose>
669 </when>
670 </choose>
671 </def-macro>
673 <def-macro n="posa_subj2" npar="1"><!--aquesta és la funció de posar el subjecte vella. com que no hi ha hagut temps d'experimentar bé amb la nova, algunes regles encara la fan servir-->
674 <choose>
675 <when>
676 <test>
677 <not>
678 <equal>
679 <clip pos="1" part="temps"/>
680 <lit-tag v="imp"/>
681 </equal>
682 </not>
683 </test>
684 <choose>
685 <when>
686 <test>
687 <equal>
688 <clip pos="1" part="pers"/>
689 <lit-tag v="p1"/>
690 </equal>
691 </test>
692 <choose>
693 <when>
694 <test>
695 <equal>
696 <clip pos="1" part="nbr"/>
697 <lit-tag v="sg"/>
698 </equal>
699 </test>
700 <out>
701 <chunk>
702 <get-case-from pos="1">
703 <lit v="prnperssubj"/>
704 </get-case-from>
705 <lit-tag v="SN"/>
706 <lit v="{^"/>
707 <lit v="je"/>
708 <lit-tag v="prn.tn.p1.mf.sg"/>
709 <lit v="$}"/>
710 </chunk>
711 <b/>
712 </out>
713 </when>
714 <otherwise>
715 <out>
716 <chunk>
717 <get-case-from pos="1">
718 <lit v="prnperssubj"/>
719 </get-case-from>
720 <lit-tag v="SN"/>
721 <lit v="{^"/>
722 <lit v="nous"/>
723 <lit-tag v="prn.tn.p1.mf.pl"/>
724 <lit v="$}"/>
725 </chunk>
726 <b/>
727 </out>
728 </otherwise>
729 </choose>
730 </when>
731 <otherwise>
732 <choose>
733 <when>
734 <test>
735 <equal>
736 <clip pos="1" part="pers"/>
737 <lit-tag v="p2"/>
738 </equal>
739 </test>
740 <choose>
741 <when>
742 <test>
743 <equal>
744 <clip pos="1" part="nbr"/>
745 <lit-tag v="sg"/>
746 </equal>
747 </test>
748 <out>
749 <chunk>
750 <get-case-from pos="1">
751 <lit v="prnperssubj"/>
752 </get-case-from>
753 <lit-tag v="SN"/>
754 <lit v="{^"/>
755 <lit v="tu"/>
756 <lit-tag v="prn.tn.p2.mf.sg"/>
757 <lit v="$}"/>
758 </chunk>
759 <b/>
760 </out>
761 </when>
762 <otherwise>
763 <out>
764 <chunk>
765 <get-case-from pos="1">
766 <lit v="prnperssubj"/>
767 </get-case-from>
768 <lit-tag v="SN"/>
769 <lit v="{^"/>
770 <lit v="vous"/>
771 <lit-tag v="prn.tn.p2.mf.pl"/>
772 <lit v="$}"/>
773 </chunk>
774 <b/>
775 </out>
776 </otherwise>
777 </choose>
778 </when>
779 <otherwise>
780 <out>
782 <chunk>
783 <get-case-from pos="1">
784 <lit v="prnperssubj"/>
785 </get-case-from>
787 <lit-tag v="SN"/>
788 <lit v="{^"/>
789 <lit v="il"/>
790 <lit-tag v="prn.tn.p3.m"/>
791 <clip pos="1" part="nbr"/>
792 <lit v="$}"/>
793 </chunk>
794 <b/>
795 </out>
796 </otherwise>
797 </choose>
798 </otherwise>
799 </choose>
800 <choose>
801 <when>
802 <test>
803 <equal>
804 <case-of pos="1" part="lem"/>
805 <lit v="Aa"/>
806 </equal>
807 </test>
808 <modify-case>
809 <clip pos="1" part="lem"/>
810 <lit v="aa"/>
811 </modify-case>
812 </when>
813 </choose>
814 </when>
815 </choose>
816 </def-macro>
818 <def-macro n="posa_subj" npar="1">
819 <choose>
820 <when>
821 <test>
822 <and>
823 <not>
824 <equal>
825 <clip pos="1" part="temps"/>
826 <lit-tag v="imp"/>
827 </equal>
828 </not>
829 <not>
830 <equal>
831 <clip pos="1" part="temps"/>
832 <lit-tag v="inf"/>
833 </equal>
834 </not>
836 </and>
837 </test>
839 <choose><!--aposta arriscada: vol dir que hem vist un sn sg i una cnjcoo; i després cap altre sn=> suposem que es manté sg?-->
840 <when>
841 <test>
842 <equal>
843 <var n="nombre_subj"/>
844 <lit-tag v="vist_sg"/>
845 </equal>
846 </test>
847 <let><var n="nombre_subj"/><lit-tag v="vist_sg"/></let>
848 </when>
849 </choose>
851 <choose>
852 <when>
853 <test><!--el verb està en primera persona-->
854 <equal>
855 <clip pos="1" part="pers"/>
856 <lit-tag v="p1"/>
857 </equal>
858 </test>
859 <choose>
860 <when>
861 <test><!--mirem si concorda amb el possible subj-->
862 <or>
863 <not>
864 <equal>
865 <var n="pers_subj"/>
866 <lit-tag v="p1"/>
867 </equal>
868 </not>
869 <not>
870 <equal>
871 <clip pos="1" part="nbr"/>
872 <var n="nombre_subj"/>
873 </equal>
874 </not>
875 </or>
876 </test>
877 <choose><!--si no, n'hi posem un-->
878 <when>
879 <test>
880 <equal>
881 <clip pos="1" part="nbr"/>
882 <lit-tag v="sg"/>
883 </equal>
884 </test>
885 <out>
887 <chunk>
888 <get-case-from pos="1">
889 <lit v="prnperssubj"/>
890 </get-case-from>
891 <lit-tag v="SN"/>
892 <lit v="{^"/>
893 <lit v="je"/>
894 <lit-tag v="prn.tn.p1.mf.sg"/>
895 <lit v="$}"/>
896 </chunk>
897 <b/>
898 </out>
899 </when>
900 <otherwise>
901 <out>
903 <!-- mayúsculas: ejemplo a seguir-->
904 <chunk>
905 <get-case-from pos="1">
906 <lit v="prnperssubj"/>
907 </get-case-from>
908 <lit-tag v="SN"/>
909 <lit v="{^"/>
910 <lit v="nous"/>
911 <lit-tag v="prn.tn.p1.mf.pl"/>
912 <lit v="$}"/>
913 </chunk>
914 <b/>
915 </out>
916 </otherwise>
917 </choose>
918 </when>
919 </choose>
920 </when>
921 <otherwise>
922 <choose>
923 <when><!-- si el verb està en p2 -->
924 <test>
925 <equal>
926 <clip pos="1" part="pers"/>
927 <lit-tag v="p2"/>
928 </equal>
929 </test>
930 <choose>
931 <when>
932 <test><!--mirem si concorda amb el possible subj-->
933 <or>
934 <not>
935 <equal>
936 <var n="pers_subj"/>
937 <lit-tag v="p2"/>
938 </equal>
939 </not>
940 <not>
941 <equal>
942 <clip pos="1" part="nbr"/>
943 <var n="nombre_subj"/>
944 </equal>
945 </not>
946 </or>
947 </test>
948 <choose><!--si no, n'hi posem un-->
949 <when>
950 <test>
951 <equal>
952 <clip pos="1" part="nbr"/>
953 <lit-tag v="sg"/>
954 </equal>
955 </test>
956 <out>
957 <chunk>
958 <get-case-from pos="1">
959 <lit v="prnperssubj"/>
960 </get-case-from>
961 <lit-tag v="SN"/>
962 <lit v="{^"/>
963 <lit v="tu"/>
964 <lit-tag v="prn.tn.p2.mf.sg"/>
965 <lit v="$}"/>
966 </chunk>
967 <b/>
968 </out>
969 </when>
970 <otherwise>
971 <out>
972 <chunk>
973 <get-case-from pos="1">
974 <lit v="prnperssubj"/>
975 </get-case-from>
976 <lit-tag v="SN"/>
977 <lit v="{^"/>
978 <lit v="vous"/>
979 <lit-tag v="prn.tn.p2.mf.pl"/>
980 <lit v="$}"/>
981 </chunk>
982 <b/>
983 </out>
984 </otherwise>
985 </choose>
986 </when>
987 </choose>
989 </when>
990 <otherwise><!--el verb no és ni p1 ni p2=> és p3 ;-)-->
991 <choose>
992 <when>
993 <test><!--mirem si concorda amb el possible subj-->
994 <or>
995 <not>
996 <equal>
997 <var n="pers_subj"/>
998 <lit-tag v="p3"/>
999 </equal>
1000 </not>
1001 <not>
1002 <equal>
1003 <clip pos="1" part="nbr"/>
1004 <var n="nombre_subj"/>
1005 </equal>
1006 </not>
1007 </or>
1008 </test>
1009 <out>
1010 <chunk>
1011 <get-case-from pos="1">
1012 <lit v="prnperssubj"/>
1013 </get-case-from>
1014 <lit-tag v="SN"/>
1015 <lit v="{^"/>
1016 <lit v="il"/>
1017 <lit-tag v="prn.tn.p3.m"/>
1018 <clip pos="1" part="nbr"/>
1019 <lit v="$}"/>
1020 </chunk>
1021 <b/>
1022 </out>
1023 </when>
1024 </choose>
1025 </otherwise>
1026 </choose>
1027 </otherwise>
1028 </choose>
1029 <choose>
1030 <when>
1031 <test>
1032 <equal>
1033 <case-of pos="1" part="lem"/>
1034 <lit v="Aa"/>
1035 </equal>
1036 </test>
1037 <modify-case>
1038 <clip pos="1" part="lem"/>
1039 <lit v="aa"/>
1040 </modify-case>
1041 </when>
1042 </choose>
1044 </when>
1045 </choose>
1046 <let>
1047 <var n="nombre_subj"/>
1048 <lit v="no_assignat"/>
1049 </let>
1050 <let>
1051 <var n="pers_subj"/>
1052 <lit-tag v="p3"/>
1053 </let>
1054 </def-macro>
1057 <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. -->
1058 <choose>
1059 <when>
1060 <test>
1061 <not>
1062 <equal>
1063 <b pos="1"/>
1064 <lit v=" "/>
1065 </equal>
1066 </not>
1067 </test>
1068 <out>
1069 <b pos="1"/>
1070 </out>
1071 </when>
1072 </choose>
1073 </def-macro>
1075 </section-def-macros>
1077 <section-rules>
1079 <!--REGLES GENERALS -->
1081 <rule comment="REGLA: SN">
1082 <pattern>
1083 <pattern-item n="SN"/>
1084 </pattern>
1085 <action>
1086 <call-macro n="assigna_gen_nbr">
1087 <with-param pos="1"/>
1088 </call-macro>
1089 <!-- <out> <chunk><var n="pers_subj"/></chunk> </out> -->
1090 <call-macro n="assigna_nombre_subj">
1091 <with-param pos="1"/>
1092 </call-macro>
1093 <out>
1094 <chunk>
1095 <clip pos="1" part="lem"/>
1096 <clip pos="1" part="tags"/>
1097 <clip pos="1" part="chcontent"/>
1098 <!-- <var n="pers_subj"/>
1099 <var n="nombre_subj"/>-->
1100 </chunk>
1101 </out>
1102 </action>
1103 </rule>
1105 <rule comment="REGLA: prep SN">
1106 <pattern>
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="2"/>
1113 </call-macro>
1114 <call-macro n="assigna_nombre_subj">
1115 <with-param pos="2"/>
1116 </call-macro>
1117 <choose>
1118 <when>
1119 <test>
1120 <and>
1121 <equal caseless="yes">
1122 <clip pos="1" part="lem"/>
1123 <lit v="en"/>
1124 </equal>
1125 <equal caseless="yes">
1126 <clip pos="2" part="lem"/>
1127 <lit v="det_nom"/>
1128 </equal>
1129 </and>
1130 </test>
1131 <out>
1132 <chunk>
1133 <get-case-from pos="1">
1134 <lit v="à"/>
1135 </get-case-from>
1136 <clip pos="1" part="tags"/>
1137 <lit v="{^à"/>
1138 <lit-tag v="pr"/>
1139 <lit v="$}"/>
1140 </chunk>
1141 <b pos="1"/>
1142 </out>
1143 </when>
1144 <otherwise>
1145 <out>
1146 <chunk>
1147 <clip pos="1" part="lem"/>
1148 <clip pos="1" part="tags"/>
1149 <clip pos="1" part="chcontent"/>
1150 </chunk>
1151 <b pos="1"/>
1152 </out>
1153 </otherwise>
1154 </choose>
1155 <choose>
1156 <when>
1157 <test>
1158 <and>
1159 <or>
1160 <equal>
1161 <clip pos="2" part="lem"/>
1162 <lit v="nom"/>
1163 </equal>
1165 <equal>
1166 <clip pos="2" part="lem"/>
1167 <lit v="part"/>
1168 </equal>
1169 <equal>
1170 <clip pos="2" part="lem"/>
1171 <lit v="adj_nom"/>
1172 </equal>
1173 <equal>
1174 <clip pos="2" part="lem"/>
1175 <lit v="nom_adj"/>
1176 </equal>
1179 </or>
1180 <equal>
1181 <clip pos="2" part="nbr"/>
1182 <lit-tag v="pl"/>
1183 </equal>
1184 <not>
1185 <in caseless="yes">
1186 <clip pos="1" part="lem"/>
1187 <list n="prde"/>
1188 </in>
1189 </not>
1190 </and>
1191 </test>
1192 <out>
1193 <chunk>
1194 <get-case-from pos="2">
1195 <lit v="partitiu"/>
1196 </get-case-from>
1197 <lit-tag v="part"/>
1199 <lit v="{^de"/>
1200 <lit-tag v="pr"/>
1201 <lit v="$"/>
1202 <b/>
1203 <lit v="^le"/>
1204 <lit-tag v="det.def.mf.pl"/>
1205 <lit v="$}"/>
1206 </chunk>
1207 <b/>
1208 </out>
1209 </when>
1210 </choose>
1211 <choose>
1212 <when>
1213 <test>
1214 <and>
1215 <or>
1216 <equal>
1217 <clip pos="2" part="lem"/>
1218 <lit v="part"/>
1219 </equal>
1220 <equal>
1221 <clip pos="2" part="lem"/>
1222 <lit v="partadj_nom"/>
1223 </equal>
1224 <equal>
1225 <clip pos="2" part="lem"/>
1226 <lit v="partnom_adj"/>
1227 </equal>
1228 </or>
1229 <equal>
1230 <clip pos="2" part="nbr"/>
1231 <lit-tag v="sg"/>
1232 </equal>
1233 <not>
1234 <in caseless="yes">
1235 <clip pos="1" part="lem"/>
1236 <list n="prde"/>
1237 </in>
1238 </not>
1239 </and>
1240 </test>
1241 <out>
1242 <chunk>
1243 <get-case-from pos="2">
1244 <lit v="partitiu"/>
1245 </get-case-from>
1246 <lit-tag v="part"/>
1248 <lit v="{^de"/>
1249 <lit-tag v="pr"/>
1250 <lit v="$"/>
1251 <b/>
1252 <lit v="^le"/>
1253 <lit-tag v="det.def"/>
1254 <clip pos="2" part="gen"/>
1255 <lit-tag v="sg"/>
1256 <lit v="$}"/>
1257 </chunk>
1258 <b/>
1259 </out>
1260 </when>
1261 </choose>
1263 <out>
1264 <chunk>
1265 <clip pos="2" part="lem"/>
1266 <clip pos="2" part="tags"/>
1267 <clip pos="2" part="chcontent"/>
1268 </chunk>
1269 </out>
1270 </action>
1271 </rule>
1273 <rule comment="REGLA: prep SN cnjcoo SN">
1274 <pattern>
1275 <pattern-item n="pr"/>
1276 <pattern-item n="SN"/>
1277 <pattern-item n="cnjcoo"/>
1278 <pattern-item n="SN"/>
1279 </pattern>
1280 <action>
1281 <call-macro n="assigna_gen_nbr">
1282 <with-param pos="2"/>
1283 </call-macro>
1284 <call-macro n="assigna_gen_nbr">
1285 <with-param pos="4"/>
1286 </call-macro>
1287 <call-macro n="assigna_nombre_subj">
1288 <with-param pos="4"/>
1289 </call-macro>
1290 <out>
1291 <chunk>
1292 <clip pos="1" part="lem"/>
1293 <clip pos="1" part="tags"/>
1294 <clip pos="1" part="chcontent"/>
1295 </chunk>
1296 <b pos="1"/>
1297 </out>
1299 <choose>
1300 <when>
1301 <test>
1302 <and>
1303 <or>
1304 <equal>
1305 <clip pos="2" part="lem"/>
1306 <lit v="nom"/>
1307 </equal>
1309 <equal>
1310 <clip pos="2" part="lem"/>
1311 <lit v="part"/>
1312 </equal>
1313 <equal>
1314 <clip pos="2" part="lem"/>
1315 <lit v="adj_nom"/>
1316 </equal>
1317 <equal>
1318 <clip pos="2" part="lem"/>
1319 <lit v="nom_adj"/>
1320 </equal>
1323 </or>
1324 <equal>
1325 <clip pos="2" part="nbr"/>
1326 <lit-tag v="pl"/>
1327 </equal>
1329 <not>
1330 <in caseless="yes">
1331 <clip pos="1" part="lem"/>
1332 <list n="prde"/>
1333 </in>
1334 </not>
1335 </and>
1336 </test>
1337 <out>
1338 <chunk>
1340 <get-case-from pos="2">
1341 <lit v="partitiu"/>
1342 </get-case-from>
1343 <lit-tag v="part"/>
1345 <lit v="{^de"/>
1346 <lit-tag v="pr"/>
1347 <lit v="$"/>
1348 <b/>
1349 <lit v="^le"/>
1350 <lit-tag v="det.def.mf.pl"/>
1351 <lit v="$}"/>
1353 </chunk>
1354 <b/>
1355 </out>
1356 </when>
1357 </choose>
1358 <choose>
1359 <when>
1360 <test>
1361 <and>
1362 <or>
1363 <equal>
1364 <clip pos="2" part="lem"/>
1365 <lit v="part"/>
1366 </equal>
1367 <equal>
1368 <clip pos="2" part="lem"/>
1369 <lit v="partadj_nom"/>
1370 </equal>
1371 <equal>
1372 <clip pos="2" part="lem"/>
1373 <lit v="partnom_adj"/>
1374 </equal>
1375 </or>
1376 <equal>
1377 <clip pos="2" part="nbr"/>
1378 <lit-tag v="sg"/>
1379 </equal>
1381 <not>
1382 <in caseless="yes">
1383 <clip pos="1" part="lem"/>
1384 <list n="prde"/>
1385 </in>
1386 </not>
1387 </and>
1388 </test>
1389 <out>
1390 <chunk>
1391 <get-case-from pos="2">
1392 <lit v="partitiu"/>
1393 </get-case-from>
1394 <lit-tag v="part"/>
1396 <lit v="{^de"/>
1397 <lit-tag v="pr"/>
1398 <lit v="$"/>
1399 <b/>
1400 <lit v="^le"/>
1401 <lit-tag v="det.def"/>
1402 <clip pos="2" part="gen"/>
1403 <lit-tag v="sg"/>
1404 <lit v="$}"/>
1406 </chunk>
1407 <b/>
1408 </out>
1409 </when>
1410 </choose>
1412 <out>
1413 <chunk>
1414 <clip pos="2" part="lem"/>
1415 <clip pos="2" part="tags"/>
1416 <clip pos="2" part="chcontent"/>
1417 </chunk>
1418 <b pos="2"/>
1419 <chunk>
1420 <clip pos="3" part="lem"/>
1421 <clip pos="3" part="tags"/>
1422 <clip pos="3" part="chcontent"/>
1423 </chunk>
1424 <b pos="3"/>
1425 </out>
1426 <choose>
1427 <when>
1428 <test>
1429 <and>
1430 <or>
1431 <equal>
1432 <clip pos="4" part="lem"/>
1433 <lit v="nom"/>
1434 </equal>
1435 <equal>
1436 <clip pos="4" part="lem"/>
1437 <lit v="adj_nom"/>
1438 </equal>
1439 <equal>
1440 <clip pos="4" part="lem"/>
1441 <lit v="nom_adj"/>
1442 </equal>
1444 <equal>
1445 <clip pos="4" part="lem"/>
1446 <lit v="part"/>
1447 </equal>
1448 </or>
1449 <equal>
1450 <clip pos="4" part="nbr"/>
1451 <lit-tag v="pl"/>
1452 </equal>
1454 <not>
1455 <in caseless="yes">
1456 <clip pos="1" part="lem"/>
1457 <list n="prde"/>
1458 </in>
1459 </not>
1460 </and>
1461 </test>
1462 <out>
1463 <chunk>
1464 <lit v="partitiu"/>
1465 <lit-tag v="part"/>
1466 <lit v="{^"/>
1467 <get-case-from pos="4">
1468 <lit v="de"/>
1469 </get-case-from>
1470 <lit-tag v="pr"/>
1471 <lit v="$ ^"/>
1472 <get-case-from pos="4">
1473 <lit v="le"/>
1474 </get-case-from>
1475 <lit-tag v="det.def.mf.pl"/>
1476 <lit v="$}"/>
1477 </chunk>
1478 <b/>
1479 </out>
1480 </when>
1481 </choose>
1482 <choose>
1483 <when>
1484 <test>
1485 <and>
1486 <or>
1487 <equal>
1488 <clip pos="4" part="lem"/>
1489 <lit v="part"/>
1490 </equal>
1491 <equal>
1492 <clip pos="4" part="lem"/>
1493 <lit v="partadj_nom"/>
1494 </equal>
1495 <equal>
1496 <clip pos="4" part="lem"/>
1497 <lit v="partnom_adj"/>
1498 </equal>
1499 </or>
1500 <equal>
1501 <clip pos="4" part="nbr"/>
1502 <lit-tag v="sg"/>
1503 </equal>
1505 <not>
1506 <in caseless="yes">
1507 <clip pos="1" part="lem"/>
1508 <list n="prde"/>
1509 </in>
1510 </not>
1511 </and>
1512 </test>
1513 <out>
1514 <chunk>
1516 <lit v="partitiu"/>
1517 <lit-tag v="part"/>
1518 <lit v="{^"/>
1519 <get-case-from pos="4">
1520 <lit v="de"/>
1521 </get-case-from>
1522 <lit-tag v="pr"/>
1523 <lit v="$ ^"/>
1524 <get-case-from pos="4">
1525 <lit v="le"/>
1526 </get-case-from>
1527 <lit-tag v="det.def"/>
1528 <clip pos="4" part="gen"/>
1529 <lit-tag v="sg"/>
1530 <lit v="$}"/>
1531 </chunk>
1532 <b/>
1533 </out>
1534 </when>
1535 </choose>
1536 <out>
1537 <chunk>
1538 <clip pos="4" part="lem"/>
1539 <clip pos="4" part="tags"/>
1540 <clip pos="4" part="chcontent"/>
1541 </chunk>
1542 </out>
1543 </action>
1544 </rule>
1546 <rule comment="REGLA: cnjcoo">
1547 <pattern>
1548 <pattern-item n="cnjcoo"/>
1549 </pattern>
1550 <action>
1551 <choose>
1552 <when>
1553 <test>
1554 <not>
1555 <equal>
1556 <var n="nombre_subj"/>
1557 <lit v="no_assignat"/>
1558 </equal>
1559 </not>
1560 </test>
1561 <choose>
1562 <when>
1563 <test>
1564 <equal>
1565 <var n="nombre_subj"/>
1566 <lit-tag v="sg"/>
1567 </equal>
1568 </test>
1569 <let><var n="nombre_subj"/><lit-tag v="vist_sg"/></let>
1570 </when>
1571 </choose>
1572 </when>
1573 </choose>
1574 <out>
1575 <chunk>
1576 <clip pos="1" part="lem"/>
1577 <clip pos="1" part="tags"/>
1578 <clip pos="1" part="chcontent"/>
1579 <!-- <var n="nombre_subj"/> -->
1580 <!-- <lit v="holahola"/> -->
1581 </chunk>
1582 </out>
1584 </action>
1585 </rule>
1588 <rule comment="REGLA: SA">
1589 <pattern>
1590 <pattern-item n="SA"/>
1591 </pattern>
1592 <action>
1593 <call-macro n="assigna_gen_nbr">
1594 <with-param pos="1"/>
1595 </call-macro>
1596 <call-macro n="assigna_nombre_subj">
1597 <with-param pos="1"/>
1598 </call-macro>
1599 <out>
1600 <chunk>
1601 <clip pos="1" part="lem"/>
1602 <clip pos="1" part="tags"/>
1603 <clip pos="1" part="chcontent"/>
1604 </chunk>
1605 </out>
1606 </action>
1607 </rule>
1609 <rule comment="REGLA: det">
1610 <pattern>
1611 <pattern-item n="DET"/>
1612 </pattern>
1613 <action>
1614 <call-macro n="assigna_gen_nbr">
1615 <with-param pos="1"/>
1616 </call-macro>
1617 <out>
1618 <chunk>
1619 <clip pos="1" part="lem"/>
1620 <clip pos="1" part="tags"/>
1621 <clip pos="1" part="chcontent"/>
1622 </chunk>
1623 </out>
1624 </action>
1625 </rule>
1626 <!--
1627 <rule comment="REGLA: SN SV">
1628 <pattern>
1629 <pattern-item n="SN"/>
1630 <pattern-item n="SV"/>
1631 </pattern>
1632 <action>
1633 <call-macro n="assigna_gen_nbr">
1634 <with-param pos="1"/>
1635 </call-macro>
1636 <choose>
1637 <when>
1638 <test>
1639 <or>
1640 <and>
1641 <equal caseless="yes">
1642 <clip pos="1" part="lem"/>
1643 <lit v="prnperssubj"/>
1644 </equal>
1645 <equal>
1646 <clip pos="2" part="pers"/>
1647 <clip pos="1" part="pers"/>
1648 </equal>
1649 <equal>
1650 <clip pos="2" part="nbr"/>
1651 <clip pos="1" part="nbr"/>
1652 </equal>
1653 </and>
1654 <and>
1655 <not>
1656 <equal caseless="yes">
1657 <clip pos="1" part="lem"/>
1658 <lit v="prnperssubj"/>
1659 </equal>
1660 </not>
1661 <equal>
1662 <clip pos="2" part="pers"/>
1663 <lit-tag v="p3"/>
1664 </equal>
1665 <equal>
1666 <clip pos="2" part="nbr"/>
1667 <clip pos="1" part="nbr"/>
1668 </equal>
1669 </and>
1670 </or>
1671 </test>
1672 <out>
1673 <chunk>
1674 <clip pos="1" part="lem"/>
1675 <clip pos="1" part="tags"/>
1676 <clip pos="1" part="chcontent"/>
1677 </chunk>
1678 <b pos="1"/>
1679 <chunk>
1680 <clip pos="2" part="lem"/>
1681 <clip pos="2" part="tags"/>
1682 <clip pos="2" part="chcontent"/>
1683 </chunk>
1684 </out>
1685 </when>
1686 <otherwise>
1687 <out>
1688 <chunk>
1689 <clip pos="1" part="lem"/>
1690 <clip pos="1" part="tags"/>
1691 <clip pos="1" part="chcontent"/>
1692 </chunk>
1693 <b pos="1"/>
1694 </out>
1695 <call-macro n="posa_subj">
1696 <with-param pos="2"/>
1697 </call-macro>
1698 <out>
1699 <chunk>
1700 <clip pos="2" part="lem"/>
1701 <clip pos="2" part="tags"/>
1702 <clip pos="2" part="chcontent"/>
1703 </chunk>
1704 </out>
1705 </otherwise>
1706 </choose>
1707 </action>
1708 </rule>
1710 <rule comment="REGLA: SA SV">
1711 <pattern>
1712 <pattern-item n="SA"/>
1713 <pattern-item n="SV"/>
1714 </pattern>
1715 <action>
1716 <call-macro n="assigna_gen_nbr">
1717 <with-param pos="1"/>
1718 </call-macro>
1719 <choose>
1720 <when>
1721 <test>
1722 <or>
1723 <and>
1724 <equal caseless="yes">
1725 <clip pos="1" part="lem"/>
1726 <lit v="prnperssubj"/>
1727 </equal>
1728 <equal>
1729 <clip pos="2" part="pers"/>
1730 <clip pos="1" part="pers"/>
1731 </equal>
1732 <equal>
1733 <clip pos="2" part="nbr"/>
1734 <clip pos="1" part="nbr"/>
1735 </equal>
1736 </and>
1737 <and>
1738 <not>
1739 <equal caseless="yes">
1740 <clip pos="1" part="lem"/>
1741 <lit v="prnperssubj"/>
1742 </equal>
1743 </not>
1744 <equal>
1745 <clip pos="2" part="pers"/>
1746 <lit-tag v="p3"/>
1747 </equal>
1748 <equal>
1749 <clip pos="2" part="nbr"/>
1750 <clip pos="1" part="nbr"/>
1751 </equal>
1752 </and>
1753 </or>
1754 </test>
1755 <out>
1756 <chunk>
1757 <clip pos="1" part="lem"/>
1758 <clip pos="1" part="tags"/>
1759 <clip pos="1" part="chcontent"/>
1760 </chunk>
1761 <b pos="1"/>
1762 <chunk>
1763 <clip pos="2" part="lem"/>
1764 <clip pos="2" part="tags"/>
1765 <clip pos="2" part="chcontent"/>
1766 </chunk>
1767 </out>
1768 </when>
1769 <otherwise>
1770 <out>
1771 <chunk>
1772 <clip pos="1" part="lem"/>
1773 <clip pos="1" part="tags"/>
1774 <clip pos="1" part="chcontent"/>
1775 </chunk>
1776 <b pos="1"/>
1777 </out>
1778 <call-macro n="posa_subj">
1779 <with-param pos="2"/>
1780 </call-macro>
1781 <out>
1782 <chunk>
1783 <clip pos="2" part="lem"/>
1784 <clip pos="2" part="tags"/>
1785 <clip pos="2" part="chcontent"/>
1786 </chunk>
1787 </out>
1788 </otherwise>
1789 </choose>
1790 </action>
1791 </rule>
1793 <rule comment="REGLA: SN sprep SV">
1794 <pattern>
1795 <pattern-item n="SN"/>
1796 <pattern-item n="pr"/>
1797 <pattern-item n="SN"/>
1798 <pattern-item n="SV"/>
1799 </pattern>
1800 <action>
1801 <call-macro n="assigna_gen_nbr">
1802 <with-param pos="1"/>
1803 </call-macro>
1804 <call-macro n="assigna_gen_nbr">
1805 <with-param pos="3"/>
1806 </call-macro>
1807 <choose>
1808 <when>
1809 <test>
1810 <or>
1811 <and>
1812 <equal caseless="yes">
1813 <clip pos="1" part="lem"/>
1814 <lit v="prnperssubj"/>
1815 </equal>
1816 <equal>
1817 <clip pos="4" part="pers"/>
1818 <clip pos="1" part="pers"/>
1819 </equal>
1820 <equal>
1821 <clip pos="4" part="nbr"/>
1822 <clip pos="1" part="nbr"/>
1823 </equal>
1824 </and>
1825 <and>
1826 <not>
1827 <equal caseless="yes">
1828 <clip pos="1" part="lem"/>
1829 <lit v="prnperssubj"/>
1830 </equal>
1831 </not>
1832 <equal>
1833 <clip pos="4" part="pers"/>
1834 <lit-tag v="p3"/>
1835 </equal>
1836 <equal>
1837 <clip pos="4" part="nbr"/>
1838 <clip pos="1" part="nbr"/>
1839 </equal>
1840 </and>
1841 </or>
1842 </test>
1843 <out>
1844 <chunk>
1845 <clip pos="1" part="lem"/>
1846 <clip pos="1" part="tags"/>
1847 <clip pos="1" part="chcontent"/>
1848 </chunk>
1849 <b pos="1"/>
1850 <chunk>
1851 <clip pos="2" part="lem"/>
1852 <clip pos="2" part="tags"/>
1853 <clip pos="2" part="chcontent"/>
1854 </chunk>
1855 <b pos="2"/>
1856 <chunk>
1857 <clip pos="3" part="lem"/>
1858 <clip pos="3" part="tags"/>
1859 <clip pos="3" part="chcontent"/>
1860 </chunk>
1861 <b pos="3"/>
1862 <chunk>
1863 <clip pos="4" part="lem"/>
1864 <clip pos="4" part="tags"/>
1865 <clip pos="4" part="chcontent"/>
1866 </chunk>
1867 </out>
1868 </when>
1869 <otherwise>
1870 <out>
1871 <chunk>
1872 <clip pos="1" part="lem"/>
1873 <clip pos="1" part="tags"/>
1874 <clip pos="1" part="chcontent"/>
1875 </chunk>
1876 <b pos="1"/>
1877 <chunk>
1878 <clip pos="2" part="lem"/>
1879 <clip pos="2" part="tags"/>
1880 <clip pos="2" part="chcontent"/>
1881 </chunk>
1882 <b pos="2"/>
1883 <chunk>
1884 <clip pos="3" part="lem"/>
1885 <clip pos="3" part="tags"/>
1886 <clip pos="3" part="chcontent"/>
1887 </chunk>
1888 <b pos="3"/>
1889 </out>
1890 <call-macro n="posa_subj">
1891 <with-param pos="4"/>
1892 </call-macro>
1893 <out>
1894 <chunk>
1895 <clip pos="4" part="lem"/>
1896 <clip pos="4" part="tags"/>
1897 <clip pos="4" part="chcontent"/>
1898 </chunk>
1899 </out>
1900 </otherwise>
1901 </choose>
1902 </action>
1903 </rule>
1905 <rule comment="REGLA: SN sprep adv SV">
1906 <pattern>
1907 <pattern-item n="SN"/>
1908 <pattern-item n="pr"/>
1909 <pattern-item n="SN"/>
1910 <pattern-item n="adv"/>
1911 <pattern-item n="SV"/>
1912 </pattern>
1913 <action>
1914 <call-macro n="assigna_gen_nbr">
1915 <with-param pos="1"/>
1916 </call-macro>
1917 <call-macro n="assigna_gen_nbr">
1918 <with-param pos="3"/>
1919 </call-macro>
1921 <choose>
1922 <when>
1923 <test>
1924 <or>
1925 <and>
1926 <equal caseless="yes">
1927 <clip pos="1" part="lem"/>
1928 <lit v="prnperssubj"/>
1929 </equal>
1930 <equal>
1931 <clip pos="5" part="pers"/>
1932 <clip pos="1" part="pers"/>
1933 </equal>
1934 <equal>
1935 <clip pos="5" part="nbr"/>
1936 <clip pos="1" part="nbr"/>
1937 </equal>
1938 </and>
1939 <and>
1940 <not>
1941 <equal caseless="yes">
1942 <clip pos="1" part="lem"/>
1943 <lit v="prnperssubj"/>
1944 </equal>
1945 </not>
1946 <equal>
1947 <clip pos="5" part="pers"/>
1948 <lit-tag v="p3"/>
1949 </equal>
1950 <equal>
1951 <clip pos="5" part="nbr"/>
1952 <clip pos="1" part="nbr"/>
1953 </equal>
1954 </and>
1955 </or>
1956 </test>
1957 <out>
1958 <chunk>
1959 <clip pos="1" part="lem"/>
1960 <clip pos="1" part="tags"/>
1961 <clip pos="1" part="chcontent"/>
1962 </chunk>
1963 <b pos="1"/>
1964 <chunk>
1965 <clip pos="2" part="lem"/>
1966 <clip pos="2" part="tags"/>
1967 <clip pos="2" part="chcontent"/>
1968 </chunk>
1969 <b pos="2"/>
1970 <chunk>
1971 <clip pos="3" part="lem"/>
1972 <clip pos="3" part="tags"/>
1973 <clip pos="3" part="chcontent"/>
1974 </chunk>
1975 <b pos="3"/>
1976 <chunk>
1977 <clip pos="4" part="lem"/>
1978 <clip pos="4" part="tags"/>
1979 <clip pos="4" part="chcontent"/>
1980 </chunk>
1981 <b pos="4"/>
1982 <chunk>
1983 <clip pos="5" part="lem"/>
1984 <clip pos="5" part="tags"/>
1985 <clip pos="5" part="chcontent"/>
1986 </chunk>
1987 </out>
1988 </when>
1989 <otherwise>
1990 <out>
1991 <chunk>
1992 <clip pos="1" part="lem"/>
1993 <clip pos="1" part="tags"/>
1994 <clip pos="1" part="chcontent"/>
1995 </chunk>
1996 <b pos="1"/>
1997 <chunk>
1998 <clip pos="2" part="lem"/>
1999 <clip pos="2" part="tags"/>
2000 <clip pos="2" part="chcontent"/>
2001 </chunk>
2002 <b pos="2"/>
2003 <chunk>
2004 <clip pos="3" part="lem"/>
2005 <clip pos="3" part="tags"/>
2006 <clip pos="3" part="chcontent"/>
2007 </chunk>
2008 <b pos="3"/>
2009 </out>
2010 <call-macro n="posa_subj">
2011 <with-param pos="5"/>
2012 </call-macro>
2013 <out>
2014 <chunk>
2015 <clip pos="4" part="lem"/>
2016 <clip pos="4" part="tags"/>
2017 <clip pos="4" part="chcontent"/>
2018 </chunk>
2019 <b pos="4"/>
2020 <chunk>
2021 <clip pos="5" part="lem"/>
2022 <clip pos="5" part="tags"/>
2023 <clip pos="5" part="chcontent"/>
2024 </chunk>
2025 </out>
2026 </otherwise>
2027 </choose>
2028 </action>
2029 </rule>
2031 <rule comment="REGLA: SN adv SV">
2032 <pattern>
2033 <pattern-item n="SN"/>
2034 <pattern-item n="adv"/>
2035 <pattern-item n="SV"/>
2036 </pattern>
2037 <action>
2038 <call-macro n="assigna_gen_nbr">
2039 <with-param pos="1"/>
2040 </call-macro>
2041 <choose>
2042 <when>
2043 <test>
2044 <or>
2045 <and>
2046 <equal caseless="yes">
2047 <clip pos="1" part="lem"/>
2048 <lit v="prnperssubj"/>
2049 </equal>
2050 <equal>
2051 <clip pos="3" part="pers"/>
2052 <clip pos="1" part="pers"/>
2053 </equal>
2054 <equal>
2055 <clip pos="3" part="nbr"/>
2056 <clip pos="1" part="nbr"/>
2057 </equal>
2058 </and>
2059 <and>
2060 <not>
2061 <equal caseless="yes">
2062 <clip pos="1" part="lem"/>
2063 <lit v="prnperssubj"/>
2064 </equal>
2065 </not>
2066 <equal>
2067 <clip pos="3" part="pers"/>
2068 <lit-tag v="p3"/>
2069 </equal>
2070 <equal>
2071 <clip pos="3" part="nbr"/>
2072 <clip pos="1" part="nbr"/>
2073 </equal>
2074 </and>
2075 </or>
2076 </test>
2077 <out>
2078 <chunk>
2079 <clip pos="1" part="lem"/>
2080 <clip pos="1" part="tags"/>
2081 <clip pos="1" part="chcontent"/>
2082 </chunk>
2083 <b pos="1"/>
2084 <chunk>
2085 <clip pos="2" part="lem"/>
2086 <clip pos="2" part="tags"/>
2087 <clip pos="2" part="chcontent"/>
2088 </chunk>
2089 <b pos="2"/>
2090 <chunk>
2091 <clip pos="3" part="lem"/>
2092 <clip pos="3" part="tags"/>
2093 <clip pos="3" part="chcontent"/>
2094 </chunk>
2095 </out>
2096 </when>
2097 <otherwise>
2098 <out>
2099 <chunk>
2100 <clip pos="1" part="lem"/>
2101 <clip pos="1" part="tags"/>
2102 <clip pos="1" part="chcontent"/>
2103 </chunk>
2104 <b pos="1"/>
2105 </out>
2106 <call-macro n="posa_subj">
2107 <with-param pos="3"/>
2108 </call-macro>
2109 <out>
2110 <chunk>
2111 <clip pos="2" part="lem"/>
2112 <clip pos="2" part="tags"/>
2113 <clip pos="2" part="chcontent"/>
2114 </chunk>
2115 <b pos="2"/>
2116 <chunk>
2117 <clip pos="3" part="lem"/>
2118 <clip pos="3" part="tags"/>
2119 <clip pos="3" part="chcontent"/>
2120 </chunk>
2121 </out>
2122 </otherwise>
2123 </choose>
2124 </action>
2125 </rule>
2127 <rule comment="REGLA: SA sprep SV">
2128 <pattern>
2129 <pattern-item n="SA"/>
2130 <pattern-item n="pr"/>
2131 <pattern-item n="SN"/>
2132 <pattern-item n="SV"/>
2133 </pattern>
2134 <action>
2135 <call-macro n="assigna_gen_nbr">
2136 <with-param pos="1"/>
2137 </call-macro>
2138 <call-macro n="assigna_gen_nbr">
2139 <with-param pos="3"/>
2140 </call-macro>
2141 <choose>
2142 <when>
2143 <test>
2144 <or>
2145 <and>
2146 <equal caseless="yes">
2147 <clip pos="1" part="lem"/>
2148 <lit v="prnperssubj"/>
2149 </equal>
2150 <equal>
2151 <clip pos="4" part="pers"/>
2152 <clip pos="1" part="pers"/>
2153 </equal>
2154 <equal>
2155 <clip pos="4" part="nbr"/>
2156 <clip pos="1" part="nbr"/>
2157 </equal>
2158 </and>
2159 <and>
2160 <not>
2161 <equal caseless="yes">
2162 <clip pos="1" part="lem"/>
2163 <lit v="prnperssubj"/>
2164 </equal>
2165 </not>
2166 <equal>
2167 <clip pos="4" part="pers"/>
2168 <lit-tag v="p3"/>
2169 </equal>
2170 <equal>
2171 <clip pos="4" part="nbr"/>
2172 <clip pos="1" part="nbr"/>
2173 </equal>
2174 </and>
2175 </or>
2176 </test>
2177 <out>
2178 <chunk>
2179 <clip pos="1" part="lem"/>
2180 <clip pos="1" part="tags"/>
2181 <clip pos="1" part="chcontent"/>
2182 </chunk>
2183 <b pos="1"/>
2184 <chunk>
2185 <clip pos="2" part="lem"/>
2186 <clip pos="2" part="tags"/>
2187 <clip pos="2" part="chcontent"/>
2188 </chunk>
2189 <b pos="2"/>
2190 <chunk>
2191 <clip pos="3" part="lem"/>
2192 <clip pos="3" part="tags"/>
2193 <clip pos="3" part="chcontent"/>
2194 </chunk>
2195 <b pos="3"/>
2196 <chunk>
2197 <clip pos="4" part="lem"/>
2198 <clip pos="4" part="tags"/>
2199 <clip pos="4" part="chcontent"/>
2200 </chunk>
2201 </out>
2202 </when>
2203 <otherwise>
2204 <out>
2205 <chunk>
2206 <clip pos="1" part="lem"/>
2207 <clip pos="1" part="tags"/>
2208 <clip pos="1" part="chcontent"/>
2209 </chunk>
2210 <b pos="1"/>
2211 <chunk>
2212 <clip pos="2" part="lem"/>
2213 <clip pos="2" part="tags"/>
2214 <clip pos="2" part="chcontent"/>
2215 </chunk>
2216 <b pos="2"/>
2217 <chunk>
2218 <clip pos="3" part="lem"/>
2219 <clip pos="3" part="tags"/>
2220 <clip pos="3" part="chcontent"/>
2221 </chunk>
2222 <b pos="3"/>
2223 </out>
2224 <call-macro n="posa_subj">
2225 <with-param pos="4"/>
2226 </call-macro>
2227 <out>
2228 <chunk>
2229 <clip pos="4" part="lem"/>
2230 <clip pos="4" part="tags"/>
2231 <clip pos="4" part="chcontent"/>
2232 </chunk>
2233 </out>
2234 </otherwise>
2235 </choose>
2236 </action>
2237 </rule>
2239 <rule comment="REGLA: SA sprep adv SV">
2240 <pattern>
2241 <pattern-item n="SA"/>
2242 <pattern-item n="pr"/>
2243 <pattern-item n="SN"/>
2244 <pattern-item n="adv"/>
2245 <pattern-item n="SV"/>
2246 </pattern>
2247 <action>
2248 <call-macro n="assigna_gen_nbr">
2249 <with-param pos="1"/>
2250 </call-macro>
2251 <call-macro n="assigna_gen_nbr">
2252 <with-param pos="3"/>
2253 </call-macro>
2255 <choose>
2256 <when>
2257 <test>
2258 <or>
2259 <and>
2260 <equal caseless="yes">
2261 <clip pos="1" part="lem"/>
2262 <lit v="prnperssubj"/>
2263 </equal>
2264 <equal>
2265 <clip pos="5" part="pers"/>
2266 <clip pos="1" part="pers"/>
2267 </equal>
2268 <equal>
2269 <clip pos="5" part="nbr"/>
2270 <clip pos="1" part="nbr"/>
2271 </equal>
2272 </and>
2273 <and>
2274 <not>
2275 <equal caseless="yes">
2276 <clip pos="1" part="lem"/>
2277 <lit v="prnperssubj"/>
2278 </equal>
2279 </not>
2280 <equal>
2281 <clip pos="5" part="pers"/>
2282 <lit-tag v="p3"/>
2283 </equal>
2284 <equal>
2285 <clip pos="5" part="nbr"/>
2286 <clip pos="1" part="nbr"/>
2287 </equal>
2288 </and>
2289 </or>
2290 </test>
2291 <out>
2292 <chunk>
2293 <clip pos="1" part="lem"/>
2294 <clip pos="1" part="tags"/>
2295 <clip pos="1" part="chcontent"/>
2296 </chunk>
2297 <b pos="1"/>
2298 <chunk>
2299 <clip pos="2" part="lem"/>
2300 <clip pos="2" part="tags"/>
2301 <clip pos="2" part="chcontent"/>
2302 </chunk>
2303 <b pos="2"/>
2304 <chunk>
2305 <clip pos="3" part="lem"/>
2306 <clip pos="3" part="tags"/>
2307 <clip pos="3" part="chcontent"/>
2308 </chunk>
2309 <b pos="3"/>
2310 <chunk>
2311 <clip pos="4" part="lem"/>
2312 <clip pos="4" part="tags"/>
2313 <clip pos="4" part="chcontent"/>
2314 </chunk>
2315 <b pos="4"/>
2316 <chunk>
2317 <clip pos="5" part="lem"/>
2318 <clip pos="5" part="tags"/>
2319 <clip pos="5" part="chcontent"/>
2320 </chunk>
2321 </out>
2322 </when>
2323 <otherwise>
2324 <out>
2325 <chunk>
2326 <clip pos="1" part="lem"/>
2327 <clip pos="1" part="tags"/>
2328 <clip pos="1" part="chcontent"/>
2329 </chunk>
2330 <b pos="1"/>
2331 <chunk>
2332 <clip pos="2" part="lem"/>
2333 <clip pos="2" part="tags"/>
2334 <clip pos="2" part="chcontent"/>
2335 </chunk>
2336 <b pos="2"/>
2337 <chunk>
2338 <clip pos="3" part="lem"/>
2339 <clip pos="3" part="tags"/>
2340 <clip pos="3" part="chcontent"/>
2341 </chunk>
2342 <b pos="3"/>
2343 </out>
2344 <call-macro n="posa_subj">
2345 <with-param pos="5"/>
2346 </call-macro>
2347 <out>
2348 <chunk>
2349 <clip pos="4" part="lem"/>
2350 <clip pos="4" part="tags"/>
2351 <clip pos="4" part="chcontent"/>
2352 </chunk>
2353 <b pos="4"/>
2354 <chunk>
2355 <clip pos="5" part="lem"/>
2356 <clip pos="5" part="tags"/>
2357 <clip pos="5" part="chcontent"/>
2358 </chunk>
2359 </out>
2360 </otherwise>
2361 </choose>
2362 </action>
2363 </rule>
2365 <rule comment="REGLA: SA adv SV">
2366 <pattern>
2367 <pattern-item n="SA"/>
2368 <pattern-item n="adv"/>
2369 <pattern-item n="SV"/>
2370 </pattern>
2371 <action>
2372 <call-macro n="assigna_gen_nbr">
2373 <with-param pos="1"/>
2374 </call-macro>
2375 <choose>
2376 <when>
2377 <test>
2378 <or>
2379 <and>
2380 <equal caseless="yes">
2381 <clip pos="1" part="lem"/>
2382 <lit v="prnperssubj"/>
2383 </equal>
2384 <equal>
2385 <clip pos="3" part="pers"/>
2386 <clip pos="1" part="pers"/>
2387 </equal>
2388 <equal>
2389 <clip pos="3" part="nbr"/>
2390 <clip pos="1" part="nbr"/>
2391 </equal>
2392 </and>
2393 <and>
2394 <not>
2395 <equal caseless="yes">
2396 <clip pos="1" part="lem"/>
2397 <lit v="prnperssubj"/>
2398 </equal>
2399 </not>
2400 <equal>
2401 <clip pos="3" part="pers"/>
2402 <lit-tag v="p3"/>
2403 </equal>
2404 <equal>
2405 <clip pos="3" part="nbr"/>
2406 <clip pos="1" part="nbr"/>
2407 </equal>
2408 </and>
2409 </or>
2410 </test>
2411 <out>
2412 <chunk>
2413 <clip pos="1" part="lem"/>
2414 <clip pos="1" part="tags"/>
2415 <clip pos="1" part="chcontent"/>
2416 </chunk>
2417 <b pos="1"/>
2418 <chunk>
2419 <clip pos="2" part="lem"/>
2420 <clip pos="2" part="tags"/>
2421 <clip pos="2" part="chcontent"/>
2422 </chunk>
2423 <b pos="2"/>
2424 <chunk>
2425 <clip pos="3" part="lem"/>
2426 <clip pos="3" part="tags"/>
2427 <clip pos="3" part="chcontent"/>
2428 </chunk>
2429 </out>
2430 </when>
2431 <otherwise>
2432 <out>
2433 <chunk>
2434 <clip pos="1" part="lem"/>
2435 <clip pos="1" part="tags"/>
2436 <clip pos="1" part="chcontent"/>
2437 </chunk>
2438 <b pos="1"/>
2439 </out>
2440 <call-macro n="posa_subj">
2441 <with-param pos="3"/>
2442 </call-macro>
2443 <out>
2444 <chunk>
2445 <clip pos="2" part="lem"/>
2446 <clip pos="2" part="tags"/>
2447 <clip pos="2" part="chcontent"/>
2448 </chunk>
2449 <b pos="2"/>
2450 <chunk>
2451 <clip pos="3" part="lem"/>
2452 <clip pos="3" part="tags"/>
2453 <clip pos="3" part="chcontent"/>
2454 </chunk>
2455 </out>
2456 </otherwise>
2457 </choose>
2458 </action>
2459 </rule>
2461 <rule comment="REGLA: SN adv SV adv">
2462 <pattern>
2463 <pattern-item n="SN"/>
2464 <pattern-item n="adv"/>
2465 <pattern-item n="SV"/>
2466 <pattern-item n="adv"/>
2467 </pattern>
2468 <action>
2469 <call-macro n="assigna_gen_nbr">
2470 <with-param pos="1"/>
2471 </call-macro>
2472 <choose>
2473 <when>
2474 <test>
2475 <or>
2476 <and>
2477 <equal caseless="yes">
2478 <clip pos="1" part="lem"/>
2479 <lit v="prnperssubj"/>
2480 </equal>
2481 <equal>
2482 <clip pos="3" part="pers"/>
2483 <clip pos="1" part="pers"/>
2484 </equal>
2485 <equal>
2486 <clip pos="3" part="nbr"/>
2487 <clip pos="1" part="nbr"/>
2488 </equal>
2489 </and>
2490 <and>
2491 <not>
2492 <equal caseless="yes">
2493 <clip pos="1" part="lem"/>
2494 <lit v="prnperssubj"/>
2495 </equal>
2496 </not>
2497 <equal>
2498 <clip pos="3" part="pers"/>
2499 <lit-tag v="p3"/>
2500 </equal>
2501 <equal>
2502 <clip pos="3" part="nbr"/>
2503 <clip pos="1" part="nbr"/>
2504 </equal>
2505 </and>
2506 </or>
2507 </test>
2508 <out>
2509 <chunk>
2510 <clip pos="1" part="lem"/>
2511 <clip pos="1" part="tags"/>
2512 <clip pos="1" part="chcontent"/>
2513 </chunk>
2514 <b pos="1"/>
2515 </out>
2516 </when>
2517 <otherwise>
2518 <out>
2519 <chunk>
2520 <clip pos="1" part="lem"/>
2521 <clip pos="1" part="tags"/>
2522 <clip pos="1" part="chcontent"/>
2523 </chunk>
2524 <b pos="1"/>
2525 </out>
2526 <call-macro n="posa_subj">
2527 <with-param pos="3"/>
2528 </call-macro>
2529 </otherwise>
2530 </choose>
2531 <out>
2532 <chunk>
2533 <clip pos="2" part="lem"/>
2534 <clip pos="2" part="tags"/>
2535 <clip pos="2" part="chcontent"/>
2536 </chunk>
2537 <b pos="2"/>
2538 <chunk>
2539 <clip pos="3" part="lem"/>
2540 <clip pos="3" part="tags"/>
2541 <clip pos="3" part="chcontent"/>
2542 </chunk>
2543 <b pos="3"/>
2544 <chunk>
2545 <clip pos="4" part="lem"/>
2546 <clip pos="4" part="tags"/>
2547 <clip pos="4" part="chcontent"/>
2548 </chunk>
2549 </out>
2550 </action>
2551 </rule>
2553 <rule comment="REGLA: SN cnjcoo SN SV">
2554 <pattern>
2555 <pattern-item n="SN"/>
2556 <pattern-item n="cnjcoo"/>
2557 <pattern-item n="SN"/>
2558 <pattern-item n="SV"/>
2559 </pattern>
2560 <action>
2561 <call-macro n="assigna_gen_nbr">
2562 <with-param pos="1"/>
2563 </call-macro>
2564 <call-macro n="assigna_gen_nbr">
2565 <with-param pos="3"/>
2566 </call-macro>
2567 <call-macro n="comprova_concord_2">
2568 <with-param pos="1"/>
2569 <with-param pos="3"/>
2570 <with-param pos="4"/>
2571 </call-macro>
2572 <out>
2573 <chunk>
2574 <clip pos="1" part="lem"/>
2575 <clip pos="1" part="tags"/>
2576 <clip pos="1" part="chcontent"/>
2577 </chunk>
2578 <b pos="1"/>
2579 <chunk>
2580 <clip pos="2" part="whole"/>
2581 </chunk>
2582 <b pos="2"/>
2583 <chunk>
2584 <clip pos="3" part="lem"/>
2585 <clip pos="3" part="tags"/>
2586 <clip pos="3" part="chcontent"/>
2587 </chunk>
2588 <b pos="3"/>
2589 </out>
2590 <choose><!-#-si no hi ha concordança enviem un subj-#->
2591 <when>
2592 <test>
2593 <equal><var n="concord"/><lit-tag v="no"/></equal>
2594 </test>
2595 <call-macro n="posa_subj">
2596 <with-param pos="4"/>
2597 </call-macro>
2598 </when>
2599 </choose>
2600 <let><var n="concord"/><lit-tag v="no"/></let>
2601 <out>
2602 <chunk>
2603 <clip pos="4" part="lem"/>
2604 <clip pos="4" part="tags"/>
2605 <clip pos="4" part="chcontent"/>
2606 </chunk>
2607 </out>
2609 </action>
2610 </rule>-->
2612 <rule comment="REGLA: SN QUE SV SV">
2613 <pattern>
2614 <pattern-item n="SN"/>
2615 <pattern-item n="QUEREL"/>
2616 <pattern-item n="SV"/>
2617 <pattern-item n="SV"/>
2618 </pattern>
2619 <action>
2620 <call-macro n="assigna_gen_nbr">
2621 <with-param pos="1"/>
2622 </call-macro>
2623 <choose> <!--mirem si el SN és el subj de la subordinada-->
2624 <when>
2625 <test>
2626 <or>
2627 <and>
2628 <equal caseless="yes">
2629 <clip pos="1" part="lem"/>
2630 <lit v="prnperssubj"/>
2631 </equal>
2632 <equal>
2633 <clip pos="3" part="pers"/>
2634 <clip pos="1" part="pers"/>
2635 </equal>
2636 <equal>
2637 <clip pos="3" part="nbr"/>
2638 <clip pos="1" part="nbr"/>
2639 </equal>
2640 </and>
2641 <and>
2642 <not>
2643 <equal caseless="yes">
2644 <clip pos="1" part="lem"/>
2645 <lit v="prnperssubj"/>
2646 </equal>
2647 </not>
2648 <equal>
2649 <clip pos="3" part="pers"/>
2650 <lit-tag v="p3"/>
2651 </equal>
2652 <equal>
2653 <clip pos="3" part="nbr"/>
2654 <clip pos="1" part="nbr"/>
2655 </equal>
2656 </and>
2657 </or>
2658 </test>
2659 <out> <!--si és que sí, el rel serà "qui" i no "que"-->
2660 <chunk>
2661 <clip pos="1" part="lem"/>
2662 <clip pos="1" part="tags"/>
2663 <clip pos="1" part="chcontent"/>
2664 </chunk>
2665 <b pos="1"/>
2666 <chunk>
2667 <lit v="qui"/>
2668 <clip pos="2" part="tags"/>
2669 <clip pos="2" part="chcontent"/>
2670 </chunk>
2671 <b pos="2"/>
2672 <chunk>
2673 <clip pos="3" part="lem"/>
2674 <clip pos="3" part="tags"/>
2675 <clip pos="3" part="chcontent"/>
2676 </chunk>
2677 <b pos="3"/>
2678 </out>
2679 </when>
2680 <otherwise><!--si és que no, el rel serà "que" i caldrà posar subjecte al verb-->
2681 <out>
2682 <chunk>
2683 <clip pos="1" part="lem"/>
2684 <clip pos="1" part="tags"/>
2685 <clip pos="1" part="chcontent"/>
2686 </chunk>
2687 <b pos="1"/>
2688 <chunk>
2689 <clip pos="2" part="lem"/>
2690 <clip pos="2" part="tags"/>
2691 <clip pos="2" part="chcontent"/>
2692 </chunk>
2693 <b pos="2"/>
2694 </out>
2695 <call-macro n="posa_subj2">
2696 <with-param pos="3"/>
2697 </call-macro>
2698 <out>
2699 <chunk>
2700 <clip pos="3" part="lem"/>
2701 <clip pos="3" part="tags"/>
2702 <clip pos="3" part="chcontent"/>
2703 </chunk>
2704 <b pos="3"/>
2705 </out>
2706 </otherwise>
2707 </choose>
2708 <choose> <!--després mirem si el SN és el subj de la principal-->
2709 <when>
2710 <test>
2711 <not>
2712 <or>
2713 <and>
2714 <equal caseless="yes">
2715 <clip pos="1" part="lem"/>
2716 <lit v="prnperssubj"/>
2717 </equal>
2718 <equal>
2719 <clip pos="4" part="pers"/>
2720 <clip pos="1" part="pers"/>
2721 </equal>
2722 <equal>
2723 <clip pos="4" part="nbr"/>
2724 <clip pos="1" part="nbr"/>
2725 </equal>
2726 </and>
2727 <and>
2728 <equal>
2729 <clip pos="4" part="pers"/>
2730 <lit-tag v="p3"/>
2731 </equal>
2732 <equal>
2733 <clip pos="4" part="nbr"/>
2734 <clip pos="1" part="nbr"/>
2735 </equal>
2736 </and>
2737 </or>
2738 </not>
2739 </test> <!--si no ho és, li posem un subj-->
2740 <call-macro n="posa_subj2">
2741 <with-param pos="4"/>
2742 </call-macro>
2743 </when>
2744 </choose>
2745 <out><!--finalment, enviem el SV de la pral-->
2746 <chunk>
2747 <clip pos="4" part="lem"/>
2748 <clip pos="4" part="tags"/>
2749 <clip pos="4" part="chcontent"/>
2750 </chunk>
2751 </out>
2752 </action>
2753 </rule>
2755 <rule comment="REGLA: SN sprep QUE SV SV">
2756 <pattern>
2757 <pattern-item n="SN"/>
2758 <pattern-item n="pr"/>
2759 <pattern-item n="SN"/>
2760 <pattern-item n="QUEREL"/>
2761 <pattern-item n="SV"/>
2762 <pattern-item n="SV"/>
2763 </pattern>
2764 <action>
2765 <call-macro n="assigna_gen_nbr">
2766 <with-param pos="1"/>
2767 </call-macro>
2768 <call-macro n="assigna_gen_nbr">
2769 <with-param pos="3"/>
2770 </call-macro>
2771 <choose> <!--mirem si el SN és el subj de la subordinada-->
2772 <when>
2773 <test>
2774 <or>
2775 <and>
2776 <equal caseless="yes">
2777 <clip pos="1" part="lem"/>
2778 <lit v="prnperssubj"/>
2779 </equal>
2780 <equal>
2781 <clip pos="5" part="pers"/>
2782 <clip pos="1" part="pers"/>
2783 </equal>
2784 <equal>
2785 <clip pos="5" part="nbr"/>
2786 <clip pos="1" part="nbr"/>
2787 </equal>
2788 </and>
2789 <and>
2790 <not>
2791 <equal caseless="yes">
2792 <clip pos="1" part="lem"/>
2793 <lit v="prnperssubj"/>
2794 </equal>
2795 </not>
2796 <equal>
2797 <clip pos="5" part="pers"/>
2798 <lit-tag v="p3"/>
2799 </equal>
2800 <equal>
2801 <clip pos="5" part="nbr"/>
2802 <clip pos="1" part="nbr"/>
2803 </equal>
2804 </and>
2805 </or>
2806 </test>
2807 <out> <!--si és que sí, el rel serà "qui" i no "que"-->
2808 <chunk>
2809 <clip pos="1" part="lem"/>
2810 <clip pos="1" part="tags"/>
2811 <clip pos="1" part="chcontent"/>
2812 </chunk>
2813 <b pos="1"/>
2814 <chunk>
2815 <clip pos="2" part="lem"/>
2816 <clip pos="2" part="tags"/>
2817 <clip pos="2" part="chcontent"/>
2818 </chunk>
2819 <b pos="2"/>
2820 <chunk>
2821 <clip pos="3" part="lem"/>
2822 <clip pos="3" part="tags"/>
2823 <clip pos="3" part="chcontent"/>
2824 </chunk>
2825 <b pos="3"/>
2826 <chunk>
2827 <lit v="qui"/>
2828 <clip pos="4" part="tags"/>
2829 <clip pos="4" part="chcontent"/>
2830 </chunk>
2831 <b pos="4"/>
2832 <chunk>
2833 <clip pos="5" part="lem"/>
2834 <clip pos="5" part="tags"/>
2835 <clip pos="5" part="chcontent"/>
2836 </chunk>
2837 <b pos="5"/>
2838 </out>
2839 </when>
2840 <otherwise><!--si és que no, el rel serà "que" i caldrà posar subjecte al verb-->
2841 <out>
2842 <chunk>
2843 <clip pos="1" part="lem"/>
2844 <clip pos="1" part="tags"/>
2845 <clip pos="1" part="chcontent"/>
2846 </chunk>
2847 <b pos="1"/>
2848 <chunk>
2849 <clip pos="2" part="lem"/>
2850 <clip pos="2" part="tags"/>
2851 <clip pos="2" part="chcontent"/>
2852 </chunk>
2853 <b pos="2"/>
2854 <chunk>
2855 <clip pos="3" part="lem"/>
2856 <clip pos="3" part="tags"/>
2857 <clip pos="3" part="chcontent"/>
2858 </chunk>
2859 <b pos="3"/>
2860 <chunk>
2861 <clip pos="4" part="lem"/>
2862 <clip pos="4" part="tags"/>
2863 <clip pos="4" part="chcontent"/>
2864 </chunk>
2865 <b pos="4"/>
2866 </out>
2867 <call-macro n="posa_subj2">
2868 <with-param pos="5"/>
2869 </call-macro>
2870 <out>
2871 <chunk>
2872 <clip pos="5" part="lem"/>
2873 <clip pos="5" part="tags"/>
2874 <clip pos="5" part="chcontent"/>
2875 </chunk>
2876 <b pos="5"/>
2877 </out>
2878 </otherwise>
2879 </choose>
2880 <choose> <!--després mirem si el SN és el subj de la principal-->
2881 <when>
2882 <test>
2883 <not>
2884 <or>
2885 <and>
2886 <equal caseless="yes">
2887 <clip pos="1" part="lem"/>
2888 <lit v="prnperssubj"/>
2889 </equal>
2890 <equal>
2891 <clip pos="6" part="pers"/>
2892 <clip pos="1" part="pers"/>
2893 </equal>
2894 <equal>
2895 <clip pos="6" part="nbr"/>
2896 <clip pos="1" part="nbr"/>
2897 </equal>
2898 </and>
2899 <and>
2900 <equal>
2901 <clip pos="6" part="pers"/>
2902 <lit-tag v="p3"/>
2903 </equal>
2904 <equal>
2905 <clip pos="6" part="nbr"/>
2906 <clip pos="1" part="nbr"/>
2907 </equal>
2908 </and>
2909 </or>
2910 </not>
2911 </test> <!--si no ho és, li posem un subj-->
2912 <call-macro n="posa_subj2">
2913 <with-param pos="6"/>
2914 </call-macro>
2915 </when>
2916 </choose>
2917 <out><!--finalment, enviem el SV de la pral-->
2918 <chunk>
2919 <clip pos="6" part="lem"/>
2920 <clip pos="6" part="tags"/>
2921 <clip pos="6" part="chcontent"/>
2922 </chunk>
2923 </out>
2924 </action>
2925 </rule>
2927 <rule comment="REGLA: SN QUE SV">
2928 <pattern>
2929 <pattern-item n="SN"/>
2930 <pattern-item n="QUEREL"/>
2931 <pattern-item n="SV"/>
2932 </pattern>
2933 <action>
2934 <call-macro n="assigna_gen_nbr">
2935 <with-param pos="1"/>
2936 </call-macro>
2937 <choose> <!--mirem si el SN és el subj de la subordinada-->
2938 <when>
2939 <test>
2940 <or>
2941 <and>
2942 <equal caseless="yes">
2943 <clip pos="1" part="lem"/>
2944 <lit v="prnperssubj"/>
2945 </equal>
2946 <equal>
2947 <clip pos="3" part="pers"/>
2948 <clip pos="1" part="pers"/>
2949 </equal>
2950 <equal>
2951 <clip pos="3" part="nbr"/>
2952 <clip pos="1" part="nbr"/>
2953 </equal>
2954 </and>
2955 <and>
2956 <not>
2957 <equal caseless="yes">
2958 <clip pos="1" part="lem"/>
2959 <lit v="prnperssubj"/>
2960 </equal>
2961 </not>
2962 <equal>
2963 <clip pos="3" part="pers"/>
2964 <lit-tag v="p3"/>
2965 </equal>
2966 <equal>
2967 <clip pos="3" part="nbr"/>
2968 <clip pos="1" part="nbr"/>
2969 </equal>
2970 </and>
2971 </or>
2972 </test>
2973 <out> <!--si és que sí, el rel serà "qui" i no "que"-->
2974 <chunk>
2975 <clip pos="1" part="lem"/>
2976 <clip pos="1" part="tags"/>
2977 <clip pos="1" part="chcontent"/>
2978 </chunk>
2979 <b pos="1"/>
2980 <chunk>
2981 <lit v="qui"/>
2982 <clip pos="2" part="tags"/>
2983 <clip pos="2" part="chcontent"/>
2984 </chunk>
2985 <b pos="2"/>
2986 <chunk>
2987 <clip pos="3" part="lem"/>
2988 <clip pos="3" part="tags"/>
2989 <clip pos="3" part="chcontent"/>
2990 </chunk>
2991 </out>
2992 </when>
2993 <otherwise><!--si és que no, el rel serà "que" i caldrà posar subjecte al verb-->
2994 <out>
2995 <chunk>
2996 <clip pos="1" part="lem"/>
2997 <clip pos="1" part="tags"/>
2998 <clip pos="1" part="chcontent"/>
2999 </chunk>
3000 <b pos="1"/>
3001 <chunk>
3002 <clip pos="2" part="lem"/>
3003 <clip pos="2" part="tags"/>
3004 <clip pos="2" part="chcontent"/>
3005 </chunk>
3006 <b pos="2"/>
3007 </out>
3008 <call-macro n="posa_subj2">
3009 <with-param pos="3"/>
3010 </call-macro>
3011 <out>
3012 <chunk>
3013 <clip pos="3" part="lem"/>
3014 <clip pos="3" part="tags"/>
3015 <clip pos="3" part="chcontent"/>
3016 </chunk>
3017 </out>
3018 </otherwise>
3019 </choose>
3020 </action>
3021 </rule>
3023 <rule comment="REGLA: SV">
3024 <pattern>
3025 <pattern-item n="SV"/>
3026 </pattern>
3027 <action>
3028 <call-macro n="posa_subj">
3029 <with-param pos="1"/>
3030 </call-macro>
3031 <out>
3032 <chunk>
3033 <clip pos="1" part="lem"/>
3034 <clip pos="1" part="tags"/>
3035 <clip pos="1" part="chcontent"/>
3036 <!-- <var n="pers_subj"/> -->
3037 <!-- <var n="nombre_subj"/> -->
3038 </chunk>
3041 </out>
3042 </action>
3043 </rule>
3045 <rule comment="REGLA: SV SN">
3046 <pattern>
3047 <pattern-item n="SV"/>
3048 <pattern-item n="SN"/>
3049 </pattern>
3050 <action>
3051 <call-macro n="posa_subj">
3052 <with-param pos="1"/>
3053 </call-macro>
3055 <choose>
3056 <when>
3057 <test>
3058 <and>
3059 <or>
3060 <equal>
3061 <clip pos="2" part="lem"/>
3062 <lit v="nom"/>
3063 </equal>
3064 <equal>
3065 <clip pos="2" part="lem"/>
3066 <lit v="part"/>
3067 </equal>
3068 <equal>
3069 <clip pos="2" part="lem"/>
3070 <lit v="adj_nom"/>
3071 </equal>
3072 <equal>
3073 <clip pos="2" part="lem"/>
3074 <lit v="nom_adj"/>
3075 </equal>
3078 </or>
3079 <equal>
3080 <clip pos="2" part="nbr"/>
3081 <lit-tag v="pl"/>
3082 </equal>
3083 </and>
3084 </test>
3085 <out>
3086 <chunk>
3087 <clip pos="1" part="lem"/>
3088 <clip pos="1" part="tags"/>
3089 <clip pos="1" part="chcontent"/>
3090 </chunk>
3091 <b pos="1"/>
3092 <chunk>
3093 <lit v="partitiu"/>
3094 <lit-tag v="part"/>
3095 <lit v="{^"/>
3096 <get-case-from pos="2">
3097 <lit v="de"/>
3098 </get-case-from>
3099 <lit-tag v="pr"/>
3100 <lit v="$ ^"/>
3101 <get-case-from pos="2">
3102 <lit v="le"/>
3103 </get-case-from>
3104 <lit-tag v="det.def.mf.pl"/>
3105 <lit v="$}"/>
3106 </chunk>
3107 <b/>
3109 <chunk>
3110 <clip pos="2" part="lem"/>
3111 <clip pos="2" part="tags"/>
3112 <clip pos="2" part="chcontent"/>
3113 </chunk>
3116 </out>
3117 </when>
3118 <otherwise>
3119 <choose>
3120 <when>
3121 <test>
3122 <and>
3123 <or>
3124 <equal>
3125 <clip pos="2" part="lem"/>
3126 <lit v="part"/>
3127 </equal>
3128 <equal>
3129 <clip pos="2" part="lem"/>
3130 <lit v="partadj_nom"/>
3131 </equal>
3132 <equal>
3133 <clip pos="2" part="lem"/>
3134 <lit v="partnom_adj"/>
3135 </equal>
3136 </or>
3137 <equal>
3138 <clip pos="2" part="nbr"/>
3139 <lit-tag v="sg"/>
3140 </equal>
3141 </and>
3142 </test>
3143 <out>
3144 <chunk>
3145 <clip pos="1" part="lem"/>
3146 <clip pos="1" part="tags"/>
3147 <clip pos="1" part="chcontent"/>
3148 </chunk>
3149 <b pos="1"/>
3150 <chunk>
3151 <lit v="partitiu"/>
3152 <lit-tag v="part"/>
3153 <lit v="{^"/>
3154 <get-case-from pos="2">
3155 <lit v="de"/>
3156 </get-case-from>
3157 <lit-tag v="pr"/>
3158 <lit v="$ ^"/>
3159 <get-case-from pos="2">
3160 <lit v="le"/>
3161 </get-case-from>
3162 <lit-tag v="det.def"/>
3163 <clip pos="2" part="gen"/>
3164 <lit-tag v="sg"/>
3165 <lit v="$}"/>
3166 </chunk>
3167 <b/>
3169 <chunk>
3170 <clip pos="2" part="lem"/>
3171 <clip pos="2" part="tags"/>
3172 <clip pos="2" part="chcontent"/>
3173 </chunk>
3176 </out>
3177 </when>
3178 <otherwise>
3180 <out>
3181 <chunk>
3182 <clip pos="1" part="lem"/>
3183 <clip pos="1" part="tags"/>
3184 <clip pos="1" part="chcontent"/>
3185 </chunk>
3186 <b pos="1"/>
3187 <chunk>
3188 <clip pos="2" part="lem"/>
3189 <clip pos="2" part="tags"/>
3190 <clip pos="2" part="chcontent"/>
3191 </chunk>
3192 </out>
3193 </otherwise>
3194 </choose>
3195 </otherwise>
3196 </choose>
3197 </action>
3198 </rule>
3200 <rule comment="REGLA: SV SN cnjcoo SN">
3201 <pattern>
3202 <pattern-item n="SV"/>
3203 <pattern-item n="SN"/>
3204 <pattern-item n="cnjcoo"/>
3205 <pattern-item n="SN"/>
3206 </pattern>
3207 <action>
3208 <call-macro n="posa_subj">
3209 <with-param pos="1"/>
3210 </call-macro>
3211 <out>
3212 <chunk>
3213 <clip pos="1" part="lem"/>
3214 <clip pos="1" part="tags"/>
3215 <clip pos="1" part="chcontent"/>
3216 </chunk>
3217 <b pos="1"/>
3218 </out>
3220 <choose>
3221 <when>
3222 <test>
3223 <and>
3224 <or>
3225 <equal>
3226 <clip pos="2" part="lem"/>
3227 <lit v="nom"/>
3228 </equal>
3230 <equal>
3231 <clip pos="2" part="lem"/>
3232 <lit v="part"/>
3233 </equal>
3234 <equal>
3235 <clip pos="2" part="lem"/>
3236 <lit v="adj_nom"/>
3237 </equal>
3238 <equal>
3239 <clip pos="2" part="lem"/>
3240 <lit v="nom_adj"/>
3241 </equal>
3244 </or>
3245 <equal>
3246 <clip pos="2" part="nbr"/>
3247 <lit-tag v="pl"/>
3248 </equal>
3250 <not>
3251 <in caseless="yes">
3252 <clip pos="1" part="lem"/>
3253 <list n="prde"/>
3254 </in>
3255 </not>
3256 </and>
3257 </test>
3258 <out>
3259 <chunk>
3261 <get-case-from pos="2">
3262 <lit v="partitiu"/>
3263 </get-case-from>
3264 <lit-tag v="part"/>
3266 <lit v="{^de"/>
3267 <lit-tag v="pr"/>
3268 <lit v="$"/>
3269 <b/>
3270 <lit v="^le"/>
3271 <lit-tag v="det.def.mf.pl"/>
3272 <lit v="$}"/>
3274 </chunk>
3275 <b/>
3276 </out>
3277 </when>
3278 </choose>
3279 <choose>
3280 <when>
3281 <test>
3282 <and>
3283 <or>
3284 <equal>
3285 <clip pos="2" part="lem"/>
3286 <lit v="part"/>
3287 </equal>
3288 <equal>
3289 <clip pos="2" part="lem"/>
3290 <lit v="partadj_nom"/>
3291 </equal>
3292 <equal>
3293 <clip pos="2" part="lem"/>
3294 <lit v="partnom_adj"/>
3295 </equal>
3296 </or>
3297 <equal>
3298 <clip pos="2" part="nbr"/>
3299 <lit-tag v="sg"/>
3300 </equal>
3302 <not>
3303 <in caseless="yes">
3304 <clip pos="1" part="lem"/>
3305 <list n="prde"/>
3306 </in>
3307 </not>
3308 </and>
3309 </test>
3310 <out>
3311 <chunk>
3312 <get-case-from pos="2">
3313 <lit v="partitiu"/>
3314 </get-case-from>
3315 <lit-tag v="part"/>
3317 <lit v="{^de"/>
3318 <lit-tag v="pr"/>
3319 <lit v="$"/>
3320 <b/>
3321 <lit v="^le"/>
3322 <lit-tag v="det.def"/>
3323 <clip pos="2" part="gen"/>
3324 <lit-tag v="sg"/>
3325 <lit v="$}"/>
3327 </chunk>
3328 <b/>
3329 </out>
3330 </when>
3331 </choose>
3333 <out>
3334 <chunk>
3335 <clip pos="2" part="lem"/>
3336 <clip pos="2" part="tags"/>
3337 <clip pos="2" part="chcontent"/>
3338 </chunk>
3339 <b pos="2"/>
3340 <chunk>
3341 <clip pos="3" part="lem"/>
3342 <clip pos="3" part="tags"/>
3343 <clip pos="3" part="chcontent"/>
3344 </chunk>
3345 <b pos="3"/>
3346 </out>
3347 <choose>
3348 <when>
3349 <test>
3350 <and>
3351 <or>
3352 <equal>
3353 <clip pos="4" part="lem"/>
3354 <lit v="nom"/>
3355 </equal>
3356 <equal>
3357 <clip pos="4" part="lem"/>
3358 <lit v="adj_nom"/>
3359 </equal>
3360 <equal>
3361 <clip pos="4" part="lem"/>
3362 <lit v="nom_adj"/>
3363 </equal>
3365 <equal>
3366 <clip pos="4" part="lem"/>
3367 <lit v="part"/>
3368 </equal>
3369 </or>
3370 <equal>
3371 <clip pos="4" part="nbr"/>
3372 <lit-tag v="pl"/>
3373 </equal>
3375 <not>
3376 <in caseless="yes">
3377 <clip pos="1" part="lem"/>
3378 <list n="prde"/>
3379 </in>
3380 </not>
3381 </and>
3382 </test>
3383 <out>
3384 <chunk>
3385 <lit v="partitiu"/>
3386 <lit-tag v="part"/>
3387 <lit v="{^"/>
3388 <get-case-from pos="4">
3389 <lit v="de"/>
3390 </get-case-from>
3391 <lit-tag v="pr"/>
3392 <lit v="$ ^"/>
3393 <get-case-from pos="4">
3394 <lit v="le"/>
3395 </get-case-from>
3396 <lit-tag v="det.def.mf.pl"/>
3397 <lit v="$}"/>
3398 </chunk>
3399 <b/>
3400 </out>
3401 </when>
3402 </choose>
3403 <choose>
3404 <when>
3405 <test>
3406 <and>
3407 <or>
3408 <equal>
3409 <clip pos="4" part="lem"/>
3410 <lit v="part"/>
3411 </equal>
3412 <equal>
3413 <clip pos="4" part="lem"/>
3414 <lit v="partadj_nom"/>
3415 </equal>
3416 <equal>
3417 <clip pos="4" part="lem"/>
3418 <lit v="partnom_adj"/>
3419 </equal>
3420 </or>
3421 <equal>
3422 <clip pos="4" part="nbr"/>
3423 <lit-tag v="sg"/>
3424 </equal>
3426 <not>
3427 <in caseless="yes">
3428 <clip pos="1" part="lem"/>
3429 <list n="prde"/>
3430 </in>
3431 </not>
3432 </and>
3433 </test>
3434 <out>
3435 <chunk>
3437 <lit v="partitiu"/>
3438 <lit-tag v="part"/>
3439 <lit v="{^"/>
3440 <get-case-from pos="4">
3441 <lit v="de"/>
3442 </get-case-from>
3443 <lit-tag v="pr"/>
3444 <lit v="$ ^"/>
3445 <get-case-from pos="4">
3446 <lit v="le"/>
3447 </get-case-from>
3448 <lit-tag v="det.def"/>
3449 <clip pos="4" part="gen"/>
3450 <lit-tag v="sg"/>
3451 <lit v="$}"/>
3452 </chunk>
3453 <b/>
3454 </out>
3455 </when>
3456 </choose>
3457 <out>
3458 <chunk>
3459 <clip pos="4" part="lem"/>
3460 <clip pos="4" part="tags"/>
3461 <clip pos="4" part="chcontent"/>
3462 </chunk>
3463 </out>
3464 </action>
3465 </rule>
3468 <rule comment="REGLA: SV adv SN cnjcoo SN">
3469 <pattern>
3470 <pattern-item n="SV"/>
3471 <pattern-item n="adv"/>
3472 <pattern-item n="SN"/>
3473 <pattern-item n="cnjcoo"/>
3474 <pattern-item n="SN"/>
3475 </pattern>
3476 <action>
3477 <call-macro n="posa_subj">
3478 <with-param pos="1"/>
3479 </call-macro>
3480 <out>
3481 <chunk>
3482 <clip pos="1" part="lem"/>
3483 <clip pos="1" part="tags"/>
3484 <clip pos="1" part="chcontent"/>
3485 </chunk>
3486 <b pos="1"/>
3487 <chunk>
3488 <clip pos="2" part="lem"/>
3489 <clip pos="2" part="tags"/>
3490 <clip pos="2" part="chcontent"/>
3491 </chunk>
3492 <b pos="2"/>
3493 </out>
3495 <choose>
3496 <when>
3497 <test>
3498 <and>
3499 <or>
3500 <equal>
3501 <clip pos="3" part="lem"/>
3502 <lit v="nom"/>
3503 </equal>
3505 <equal>
3506 <clip pos="3" part="lem"/>
3507 <lit v="part"/>
3508 </equal>
3509 <equal>
3510 <clip pos="3" part="lem"/>
3511 <lit v="adj_nom"/>
3512 </equal>
3513 <equal>
3514 <clip pos="3" part="lem"/>
3515 <lit v="nom_adj"/>
3516 </equal>
3519 </or>
3520 <equal>
3521 <clip pos="3" part="nbr"/>
3522 <lit-tag v="pl"/>
3523 </equal>
3525 </and>
3526 </test>
3527 <out>
3528 <chunk>
3530 <get-case-from pos="3">
3531 <lit v="partitiu"/>
3532 </get-case-from>
3533 <lit-tag v="part"/>
3535 <lit v="{^de"/>
3536 <lit-tag v="pr"/>
3537 <lit v="$"/>
3538 <b/>
3539 <lit v="^le"/>
3540 <lit-tag v="det.def.mf.pl"/>
3541 <lit v="$}"/>
3543 </chunk>
3544 <b/>
3545 </out>
3546 </when>
3547 </choose>
3548 <choose>
3549 <when>
3550 <test>
3551 <and>
3552 <or>
3553 <equal>
3554 <clip pos="3" part="lem"/>
3555 <lit v="part"/>
3556 </equal>
3557 <equal>
3558 <clip pos="3" part="lem"/>
3559 <lit v="partadj_nom"/>
3560 </equal>
3561 <equal>
3562 <clip pos="3" part="lem"/>
3563 <lit v="partnom_adj"/>
3564 </equal>
3565 </or>
3566 <equal>
3567 <clip pos="3" part="nbr"/>
3568 <lit-tag v="sg"/>
3569 </equal>
3571 </and>
3572 </test>
3573 <out>
3574 <chunk>
3575 <get-case-from pos="3">
3576 <lit v="partitiu"/>
3577 </get-case-from>
3578 <lit-tag v="part"/>
3580 <lit v="{^de"/>
3581 <lit-tag v="pr"/>
3582 <lit v="$"/>
3583 <b/>
3584 <lit v="^le"/>
3585 <lit-tag v="det.def"/>
3586 <clip pos="3" part="gen"/>
3587 <lit-tag v="sg"/>
3588 <lit v="$}"/>
3590 </chunk>
3591 <b/>
3592 </out>
3593 </when>
3594 </choose>
3596 <out>
3597 <chunk>
3598 <clip pos="3" part="lem"/>
3599 <clip pos="3" part="tags"/>
3600 <clip pos="3" part="chcontent"/>
3601 </chunk>
3602 <b pos="3"/>
3603 <chunk>
3604 <clip pos="4" part="lem"/>
3605 <clip pos="4" part="tags"/>
3606 <clip pos="4" part="chcontent"/>
3607 </chunk>
3608 <b pos="4"/>
3609 </out>
3610 <choose>
3611 <when>
3612 <test>
3613 <and>
3614 <or>
3615 <equal>
3616 <clip pos="5" part="lem"/>
3617 <lit v="nom"/>
3618 </equal>
3619 <equal>
3620 <clip pos="5" part="lem"/>
3621 <lit v="adj_nom"/>
3622 </equal>
3623 <equal>
3624 <clip pos="5" part="lem"/>
3625 <lit v="nom_adj"/>
3626 </equal>
3628 <equal>
3629 <clip pos="5" part="lem"/>
3630 <lit v="part"/>
3631 </equal>
3632 </or>
3633 <equal>
3634 <clip pos="5" part="nbr"/>
3635 <lit-tag v="pl"/>
3636 </equal>
3638 </and>
3639 </test>
3640 <out>
3641 <chunk>
3642 <lit v="partitiu"/>
3643 <lit-tag v="part"/>
3644 <lit v="{^"/>
3645 <get-case-from pos="5">
3646 <lit v="de"/>
3647 </get-case-from>
3648 <lit-tag v="pr"/>
3649 <lit v="$ ^"/>
3650 <get-case-from pos="5">
3651 <lit v="le"/>
3652 </get-case-from>
3653 <lit-tag v="det.def.mf.pl"/>
3654 <lit v="$}"/>
3655 </chunk>
3656 <b/>
3657 </out>
3658 </when>
3659 </choose>
3660 <choose>
3661 <when>
3662 <test>
3663 <and>
3664 <or>
3665 <equal>
3666 <clip pos="5" part="lem"/>
3667 <lit v="part"/>
3668 </equal>
3669 <equal>
3670 <clip pos="5" part="lem"/>
3671 <lit v="partadj_nom"/>
3672 </equal>
3673 <equal>
3674 <clip pos="5" part="lem"/>
3675 <lit v="partnom_adj"/>
3676 </equal>
3677 </or>
3678 <equal>
3679 <clip pos="5" part="nbr"/>
3680 <lit-tag v="sg"/>
3681 </equal>
3682 </and>
3683 </test>
3684 <out>
3685 <chunk>
3687 <lit v="partitiu"/>
3688 <lit-tag v="part"/>
3689 <lit v="{^"/>
3690 <get-case-from pos="5">
3691 <lit v="de"/>
3692 </get-case-from>
3693 <lit-tag v="pr"/>
3694 <lit v="$ ^"/>
3695 <get-case-from pos="5">
3696 <lit v="le"/>
3697 </get-case-from>
3698 <lit-tag v="det.def"/>
3699 <clip pos="5" part="gen"/>
3700 <lit-tag v="sg"/>
3701 <lit v="$}"/>
3702 </chunk>
3703 <b/>
3704 </out>
3705 </when>
3706 </choose>
3707 <out>
3708 <chunk>
3709 <clip pos="5" part="lem"/>
3710 <clip pos="5" part="tags"/>
3711 <clip pos="5" part="chcontent"/>
3712 </chunk>
3713 </out>
3714 </action>
3715 </rule>
3719 <rule comment="REGLA: SV ADV SN">
3720 <pattern>
3721 <pattern-item n="SV"/>
3722 <pattern-item n="adv"/>
3723 <pattern-item n="SN"/>
3724 </pattern>
3725 <action>
3726 <call-macro n="posa_subj">
3727 <with-param pos="1"/>
3728 </call-macro>
3729 <choose>
3730 <when>
3731 <test>
3732 <and>
3733 <or>
3734 <equal>
3735 <clip pos="3" part="lem"/>
3736 <lit v="nom"/>
3737 </equal>
3739 <equal>
3740 <clip pos="3" part="lem"/>
3741 <lit v="part"/>
3742 </equal>
3743 <equal>
3744 <clip pos="3" part="lem"/>
3745 <lit v="adj_nom"/>
3746 </equal>
3747 <equal>
3748 <clip pos="3" part="lem"/>
3749 <lit v="nom_adj"/>
3750 </equal>
3753 </or>
3754 <equal>
3755 <clip pos="3" part="nbr"/>
3756 <lit-tag v="pl"/>
3757 </equal>
3758 </and>
3759 </test>
3760 <out>
3761 <chunk>
3762 <clip pos="1" part="lem"/>
3763 <clip pos="1" part="tags"/>
3764 <clip pos="1" part="chcontent"/>
3765 </chunk>
3766 <b pos="1"/>
3767 <chunk>
3768 <clip pos="2" part="lem"/>
3769 <clip pos="2" part="tags"/>
3770 <clip pos="2" part="chcontent"/>
3771 </chunk>
3772 <b pos="2"/>
3773 <chunk>
3774 <lit v="partitiu"/>
3775 <lit-tag v="part"/>
3776 <lit v="{^"/>
3777 <get-case-from pos="3">
3778 <lit v="de"/>
3779 </get-case-from>
3780 <lit-tag v="pr"/>
3781 <lit v="$ ^"/>
3782 <get-case-from pos="3">
3783 <lit v="le"/>
3784 </get-case-from>
3785 <lit-tag v="det.def.mf.pl"/>
3786 <lit v="$}"/>
3787 </chunk>
3788 <b/>
3790 <chunk>
3791 <clip pos="3" part="lem"/>
3792 <clip pos="3" part="tags"/>
3793 <clip pos="3" part="chcontent"/>
3794 </chunk>
3797 </out>
3798 </when>
3799 <otherwise>
3800 <choose>
3801 <when>
3802 <test>
3803 <and>
3804 <or>
3805 <equal>
3806 <clip pos="3" part="lem"/>
3807 <lit v="part"/>
3808 </equal>
3809 <equal>
3810 <clip pos="3" part="lem"/>
3811 <lit v="partadj_nom"/>
3812 </equal>
3813 <equal>
3814 <clip pos="3" part="lem"/>
3815 <lit v="partnom_adj"/>
3816 </equal>
3817 </or>
3818 <equal>
3819 <clip pos="3" part="nbr"/>
3820 <lit-tag v="sg"/>
3821 </equal>
3822 </and>
3823 </test>
3824 <out>
3825 <chunk>
3826 <clip pos="1" part="lem"/>
3827 <clip pos="1" part="tags"/>
3828 <clip pos="1" part="chcontent"/>
3829 </chunk>
3830 <b pos="1"/>
3831 <chunk>
3832 <clip pos="2" part="lem"/>
3833 <clip pos="2" part="tags"/>
3834 <clip pos="2" part="chcontent"/>
3835 </chunk>
3836 <b pos="2"/>
3837 <chunk>
3838 <lit v="partitiu"/>
3839 <lit-tag v="part"/>
3840 <lit v="{^"/>
3841 <get-case-from pos="3">
3842 <lit v="de"/>
3843 </get-case-from>
3844 <lit-tag v="pr"/>
3845 <lit v="$ ^"/>
3846 <get-case-from pos="3">
3847 <lit v="le"/>
3848 </get-case-from>
3849 <lit-tag v="det.def"/>
3850 <clip pos="3" part="gen"/>
3851 <lit-tag v="sg"/>
3852 <lit v="$}"/>
3853 </chunk>
3854 <b/>
3856 <chunk>
3857 <clip pos="3" part="lem"/>
3858 <clip pos="3" part="tags"/>
3859 <clip pos="3" part="chcontent"/>
3860 </chunk>
3863 </out>
3864 </when>
3865 <otherwise>
3867 <out>
3868 <chunk>
3869 <clip pos="1" part="lem"/>
3870 <clip pos="1" part="tags"/>
3871 <clip pos="1" part="chcontent"/>
3872 </chunk>
3873 <b pos="1"/>
3874 <chunk>
3875 <clip pos="2" part="lem"/>
3876 <clip pos="2" part="tags"/>
3877 <clip pos="2" part="chcontent"/>
3878 </chunk>
3879 <b pos="2"/>
3880 <chunk>
3881 <clip pos="3" part="lem"/>
3882 <clip pos="3" part="tags"/>
3883 <clip pos="3" part="chcontent"/>
3884 </chunk>
3885 </out>
3886 </otherwise>
3887 </choose>
3888 </otherwise>
3889 </choose>
3890 </action>
3891 </rule>
3893 <rule comment="REGLA: ADV SV">
3894 <pattern>
3895 <pattern-item n="adv"/>
3896 <pattern-item n="SV"/>
3897 </pattern>
3898 <action>
3899 <call-macro n="posa_subj">
3900 <with-param pos="2"/>
3901 </call-macro>
3902 <out>
3903 <chunk>
3904 <get-case-from pos="2">
3905 <clip pos="1" part="lem"/>
3906 </get-case-from>
3907 <clip pos="1" part="tags"/>
3908 <clip pos="1" part="chcontent"/>
3909 </chunk>
3910 <b pos="1"/>
3911 <chunk>
3912 <clip pos="2" part="lem"/>
3913 <clip pos="2" part="tags"/>
3914 <clip pos="2" part="chcontent"/>
3915 </chunk>
3916 </out>
3917 </action>
3918 </rule>
3920 <rule comment="REGLA: ADV SV SN">
3921 <pattern>
3922 <pattern-item n="adv"/>
3923 <pattern-item n="SV"/>
3924 <pattern-item n="SN"/>
3925 </pattern>
3926 <action>
3927 <call-macro n="posa_subj">
3928 <with-param pos="2"/>
3929 </call-macro>
3930 <out>
3931 <chunk>
3932 <get-case-from pos="2">
3933 <clip pos="1" part="lem"/>
3934 </get-case-from>
3935 <clip pos="1" part="tags"/>
3936 <clip pos="1" part="chcontent"/>
3937 </chunk>
3938 <b pos="1"/>
3939 <chunk>
3940 <clip pos="2" part="lem"/>
3941 <clip pos="2" part="tags"/>
3942 <clip pos="2" part="chcontent"/>
3943 </chunk>
3944 <b pos="2"/>
3945 </out>
3946 <choose>
3947 <when>
3948 <test>
3949 <and>
3950 <or>
3951 <equal>
3952 <clip pos="3" part="lem"/>
3953 <lit v="nom"/>
3954 </equal>
3956 <equal>
3957 <clip pos="3" part="lem"/>
3958 <lit v="part"/>
3959 </equal>
3960 <equal>
3961 <clip pos="3" part="lem"/>
3962 <lit v="adj_nom"/>
3963 </equal>
3964 <equal>
3965 <clip pos="3" part="lem"/>
3966 <lit v="nom_adj"/>
3967 </equal>
3968 </or>
3969 <equal>
3970 <clip pos="3" part="nbr"/>
3971 <lit-tag v="pl"/>
3972 </equal>
3973 </and>
3974 </test>
3975 <out>
3976 <chunk>
3977 <lit v="partitiu"/>
3978 <lit-tag v="part"/>
3979 <lit v="{^"/>
3980 <get-case-from pos="3">
3981 <lit v="de"/>
3982 </get-case-from>
3983 <lit-tag v="pr"/>
3984 <lit v="$ ^"/>
3985 <get-case-from pos="3">
3986 <lit v="le"/>
3987 </get-case-from>
3988 <lit-tag v="det.def.mf.pl"/>
3989 <lit v="$}"/>
3990 </chunk>
3991 <b/>
3992 </out>
3993 </when>
3994 </choose>
3995 <choose>
3996 <when>
3997 <test>
3998 <and>
3999 <or>
4000 <equal>
4001 <clip pos="3" part="lem"/>
4002 <lit v="part"/>
4003 </equal>
4004 <equal>
4005 <clip pos="3" part="lem"/>
4006 <lit v="partadj_nom"/>
4007 </equal>
4008 <equal>
4009 <clip pos="3" part="lem"/>
4010 <lit v="partnom_adj"/>
4011 </equal>
4012 </or>
4013 <equal>
4014 <clip pos="3" part="nbr"/>
4015 <lit-tag v="sg"/>
4016 </equal>
4017 </and>
4018 </test>
4019 <out>
4020 <chunk>
4022 <lit v="partitiu"/>
4023 <lit-tag v="part"/>
4024 <lit v="{^"/>
4025 <get-case-from pos="3">
4026 <lit v="de"/>
4027 </get-case-from>
4028 <lit-tag v="pr"/>
4029 <lit v="$ ^"/>
4030 <get-case-from pos="3">
4031 <lit v="le"/>
4032 </get-case-from>
4033 <lit-tag v="det.def"/>
4034 <clip pos="3" part="gen"/>
4035 <lit-tag v="sg"/>
4036 <lit v="$}"/>
4037 </chunk>
4038 <b/>
4039 </out>
4040 </when>
4041 </choose>
4042 <out>
4043 <chunk>
4044 <clip pos="3" part="lem"/>
4045 <clip pos="3" part="tags"/>
4046 <clip pos="3" part="chcontent"/>
4047 </chunk>
4048 </out>
4050 </action>
4051 </rule>
4053 <rule comment="REGLA: ADV SV ADV SN">
4054 <pattern>
4055 <pattern-item n="adv"/>
4056 <pattern-item n="SV"/>
4057 <pattern-item n="adv"/>
4058 <pattern-item n="SN"/>
4059 </pattern>
4060 <action>
4061 <call-macro n="posa_subj">
4062 <with-param pos="2"/>
4063 </call-macro>
4064 <out>
4065 <chunk>
4066 <get-case-from pos="2">
4067 <clip pos="1" part="lem"/>
4068 </get-case-from>
4069 <clip pos="1" part="tags"/>
4070 <clip pos="1" part="chcontent"/>
4071 </chunk>
4072 <b pos="1"/>
4073 <chunk>
4074 <clip pos="2" part="lem"/>
4075 <clip pos="2" part="tags"/>
4076 <clip pos="2" part="chcontent"/>
4077 </chunk>
4078 <b pos="2"/>
4079 <chunk>
4080 <clip pos="3" part="lem"/>
4081 <clip pos="3" part="tags"/>
4082 <clip pos="3" part="chcontent"/>
4083 </chunk>
4084 <b pos="3"/>
4085 </out>
4086 <choose>
4087 <when>
4088 <test>
4089 <and>
4090 <or>
4091 <equal>
4092 <clip pos="4" part="lem"/>
4093 <lit v="nom"/>
4094 </equal>
4096 <equal>
4097 <clip pos="4" part="lem"/>
4098 <lit v="part"/>
4099 </equal>
4100 <equal>
4101 <clip pos="4" part="lem"/>
4102 <lit v="adj_nom"/>
4103 </equal>
4104 <equal>
4105 <clip pos="4" part="lem"/>
4106 <lit v="nom_adj"/>
4107 </equal>
4110 </or>
4111 <equal>
4112 <clip pos="4" part="nbr"/>
4113 <lit-tag v="pl"/>
4114 </equal>
4115 </and>
4116 </test>
4117 <out>
4118 <chunk>
4119 <lit v="partitiu"/>
4120 <lit-tag v="part"/>
4121 <lit v="{^"/>
4122 <get-case-from pos="4">
4123 <lit v="de"/>
4124 </get-case-from>
4125 <lit-tag v="pr"/>
4126 <lit v="$ ^"/>
4127 <get-case-from pos="4">
4128 <lit v="le"/>
4129 </get-case-from>
4130 <lit-tag v="det.def.mf.pl"/>
4131 <lit v="$}"/>
4132 </chunk>
4133 <b/>
4134 </out>
4135 </when>
4136 </choose>
4137 <choose>
4138 <when>
4139 <test>
4140 <and>
4141 <or>
4142 <equal>
4143 <clip pos="4" part="lem"/>
4144 <lit v="part"/>
4145 </equal>
4146 <equal>
4147 <clip pos="4" part="lem"/>
4148 <lit v="partadj_nom"/>
4149 </equal>
4150 <equal>
4151 <clip pos="4" part="lem"/>
4152 <lit v="partnom_adj"/>
4153 </equal>
4154 </or>
4155 <equal>
4156 <clip pos="4" part="nbr"/>
4157 <lit-tag v="sg"/>
4158 </equal>
4159 </and>
4160 </test>
4161 <out>
4162 <chunk>
4164 <lit v="partitiu"/>
4165 <lit-tag v="part"/>
4166 <lit v="{^"/>
4167 <get-case-from pos="4">
4168 <lit v="de"/>
4169 </get-case-from>
4170 <lit-tag v="pr"/>
4171 <lit v="$ ^"/>
4172 <get-case-from pos="4">
4173 <lit v="le"/>
4174 </get-case-from>
4175 <lit-tag v="det.def"/>
4176 <clip pos="4" part="gen"/>
4177 <lit-tag v="sg"/>
4178 <lit v="$}"/>
4179 </chunk>
4180 <b/>
4181 </out>
4182 </when>
4183 </choose>
4184 <out>
4185 <chunk>
4186 <clip pos="4" part="lem"/>
4187 <clip pos="4" part="tags"/>
4188 <clip pos="4" part="chcontent"/>
4189 </chunk>
4190 </out>
4192 </action>
4193 </rule>
4195 <rule comment="REGLA: SN vbcop SA">
4196 <pattern>
4197 <pattern-item n="SN"/>
4198 <pattern-item n="vbcop"/>
4199 <pattern-item n="SA"/>
4200 </pattern>
4201 <action>
4202 <call-macro n="concord_sa">
4203 <with-param pos="1"/>
4204 <with-param pos="3"/>
4205 </call-macro>
4206 <call-macro n="assigna_gen_nbr">
4207 <with-param pos="1"/>
4208 </call-macro>
4209 <out>
4210 <chunk>
4211 <clip pos="1" part="lem"/>
4212 <clip pos="1" part="tags"/>
4213 <clip pos="1" part="chcontent"/>
4214 </chunk>
4215 <b pos="1"/>
4216 <chunk>
4217 <clip pos="2" part="lem"/>
4218 <clip pos="2" part="tags"/>
4219 <clip pos="2" part="chcontent"/>
4220 </chunk>
4221 <b pos="2"/>
4222 <chunk>
4223 <clip pos="3" part="whole"/>
4224 </chunk>
4225 </out>
4226 </action>
4227 </rule>
4229 <rule comment="REGLA: SN querel SV vbcop SA">
4230 <pattern>
4231 <pattern-item n="SN"/>
4232 <pattern-item n="QUEREL"/>
4233 <pattern-item n="SV"/>
4234 <pattern-item n="vbcop"/>
4235 <pattern-item n="SA"/>
4236 </pattern>
4237 <action>
4238 <call-macro n="concord_sa">
4239 <with-param pos="1"/>
4240 <with-param pos="5"/>
4241 </call-macro>
4242 <call-macro n="assigna_gen_nbr">
4243 <with-param pos="1"/>
4244 </call-macro>
4245 <out>
4246 <chunk>
4247 <clip pos="1" part="lem"/>
4248 <clip pos="1" part="tags"/>
4249 <clip pos="1" part="chcontent"/>
4250 </chunk>
4251 <b pos="1"/>
4252 </out>
4253 <choose> <!--mirem si el SN és el subj de la subordinada-->
4254 <when>
4255 <test>
4256 <or>
4257 <and>
4258 <equal caseless="yes">
4259 <clip pos="1" part="lem"/>
4260 <lit v="prnperssubj"/>
4261 </equal>
4262 <equal>
4263 <clip pos="3" part="pers"/>
4264 <clip pos="1" part="pers"/>
4265 </equal>
4266 <equal>
4267 <clip pos="3" part="nbr"/>
4268 <clip pos="1" part="nbr"/>
4269 </equal>
4270 </and>
4271 <and>
4272 <not>
4273 <equal caseless="yes">
4274 <clip pos="1" part="lem"/>
4275 <lit v="prnperssubj"/>
4276 </equal>
4277 </not>
4278 <equal>
4279 <clip pos="3" part="pers"/>
4280 <lit-tag v="p3"/>
4281 </equal>
4282 <equal>
4283 <clip pos="3" part="nbr"/>
4284 <clip pos="1" part="nbr"/>
4285 </equal>
4286 </and>
4287 </or>
4288 </test>
4289 <out> <!--si és que sí, el rel serà "qui" i no "que"-->
4290 <chunk>
4291 <lit v="qui"/>
4292 <clip pos="2" part="tags"/>
4293 <clip pos="2" part="chcontent"/>
4294 </chunk>
4295 <b pos="2"/>
4296 <chunk>
4297 <clip pos="3" part="lem"/>
4298 <clip pos="3" part="tags"/>
4299 <clip pos="3" part="chcontent"/>
4300 </chunk>
4301 <b pos="3"/>
4302 </out>
4303 </when>
4304 <otherwise><!--si és que no, el rel serà "que" i caldrà posar subjecte al verb-->
4305 <out>
4306 <chunk>
4307 <clip pos="2" part="lem"/>
4308 <clip pos="2" part="tags"/>
4309 <clip pos="2" part="chcontent"/>
4310 </chunk>
4311 <b pos="2"/>
4312 </out>
4313 <call-macro n="posa_subj2">
4314 <with-param pos="3"/>
4315 </call-macro>
4316 <out>
4317 <chunk>
4318 <clip pos="3" part="lem"/>
4319 <clip pos="3" part="tags"/>
4320 <clip pos="3" part="chcontent"/>
4321 </chunk>
4322 <b pos="3"/>
4323 </out>
4324 </otherwise>
4325 </choose>
4326 <choose> <!-- mirem si el SN és el subj de la pral-->
4327 <when>
4328 <test>
4329 <not>
4330 <or>
4331 <and>
4332 <equal caseless="yes">
4333 <clip pos="1" part="lem"/>
4334 <lit v="prnperssubj"/>
4335 </equal>
4336 <equal>
4337 <clip pos="4" part="pers"/>
4338 <clip pos="1" part="pers"/>
4339 </equal>
4340 <equal>
4341 <clip pos="4" part="nbr"/>
4342 <clip pos="1" part="nbr"/>
4343 </equal>
4344 </and>
4345 <and>
4346 <equal>
4347 <clip pos="4" part="pers"/>
4348 <lit-tag v="p3"/>
4349 </equal>
4350 <equal>
4351 <clip pos="4" part="nbr"/>
4352 <clip pos="1" part="nbr"/>
4353 </equal>
4354 </and>
4355 </or>
4356 </not>
4357 </test>
4358 <!--si no l'és, cal posar un subj al SV pral-->
4359 <call-macro n="posa_subj2">
4360 <with-param pos="4"/>
4361 </call-macro>
4362 </when>
4363 </choose>
4364 <out>
4365 <chunk>
4366 <clip pos="4" part="lem"/>
4367 <clip pos="4" part="tags"/>
4368 <clip pos="4" part="chcontent"/>
4369 </chunk>
4370 </out>
4371 <out>
4372 <b pos="4"/>
4373 <chunk>
4374 <clip pos="5" part="whole"/>
4375 </chunk>
4376 </out>
4377 </action>
4378 </rule>
4380 <rule comment="REGLA: SN vbcop ADV SA">
4381 <pattern>
4382 <pattern-item n="SN"/>
4383 <pattern-item n="vbcop"/>
4384 <pattern-item n="adv"/>
4385 <pattern-item n="SA"/>
4386 </pattern>
4387 <action>
4388 <call-macro n="concord_sa">
4389 <with-param pos="1"/>
4390 <with-param pos="4"/>
4391 </call-macro>
4392 <call-macro n="assigna_gen_nbr">
4393 <with-param pos="1"/>
4394 </call-macro>
4395 <out>
4396 <chunk>
4397 <clip pos="1" part="lem"/>
4398 <clip pos="1" part="tags"/>
4399 <clip pos="1" part="chcontent"/>
4400 </chunk>
4401 <b pos="1"/>
4402 <chunk>
4403 <clip pos="2" part="lem"/>
4404 <clip pos="2" part="tags"/>
4405 <clip pos="2" part="chcontent"/>
4406 </chunk>
4407 <b pos="2"/>
4408 <chunk>
4409 <clip pos="3" part="lem"/>
4410 <clip pos="3" part="tags"/>
4411 <clip pos="3" part="chcontent"/>
4412 </chunk>
4413 <b pos="3"/>
4414 <chunk>
4415 <clip pos="4" part="whole"/>
4416 </chunk>
4417 </out>
4418 </action>
4419 </rule>
4421 <rule comment="REGLA: SN querel SV vbcop adv SA">
4422 <pattern>
4423 <pattern-item n="SN"/>
4424 <pattern-item n="QUEREL"/>
4425 <pattern-item n="SV"/>
4426 <pattern-item n="vbcop"/>
4427 <pattern-item n="adv"/>
4428 <pattern-item n="SA"/>
4429 </pattern>
4430 <action>
4431 <call-macro n="concord_sa">
4432 <with-param pos="1"/>
4433 <with-param pos="6"/>
4434 </call-macro>
4435 <call-macro n="assigna_gen_nbr">
4436 <with-param pos="1"/>
4437 </call-macro>
4438 <out>
4439 <chunk>
4440 <clip pos="1" part="lem"/>
4441 <clip pos="1" part="tags"/>
4442 <clip pos="1" part="chcontent"/>
4443 </chunk>
4444 <b pos="1"/>
4445 </out>
4446 <choose> <!--mirem si el SN és el subj de la subordinada-->
4447 <when>
4448 <test>
4449 <or>
4450 <and>
4451 <equal caseless="yes">
4452 <clip pos="1" part="lem"/>
4453 <lit v="prnperssubj"/>
4454 </equal>
4455 <equal>
4456 <clip pos="3" part="pers"/>
4457 <clip pos="1" part="pers"/>
4458 </equal>
4459 <equal>
4460 <clip pos="3" part="nbr"/>
4461 <clip pos="1" part="nbr"/>
4462 </equal>
4463 </and>
4464 <and>
4465 <not>
4466 <equal caseless="yes">
4467 <clip pos="1" part="lem"/>
4468 <lit v="prnperssubj"/>
4469 </equal>
4470 </not>
4471 <equal>
4472 <clip pos="3" part="pers"/>
4473 <lit-tag v="p3"/>
4474 </equal>
4475 <equal>
4476 <clip pos="3" part="nbr"/>
4477 <clip pos="1" part="nbr"/>
4478 </equal>
4479 </and>
4480 </or>
4481 </test>
4482 <out> <!--si és que sí, el rel serà "qui" i no "que"-->
4483 <chunk>
4484 <lit v="qui"/>
4485 <clip pos="2" part="tags"/>
4486 <clip pos="2" part="chcontent"/>
4487 </chunk>
4488 <b pos="2"/>
4489 <chunk>
4490 <clip pos="3" part="lem"/>
4491 <clip pos="3" part="tags"/>
4492 <clip pos="3" part="chcontent"/>
4493 </chunk>
4494 <b pos="3"/>
4495 </out>
4496 </when>
4497 <otherwise><!--si és que no, el rel serà "que" i caldrà posar subjecte al verb-->
4498 <out>
4499 <chunk>
4500 <clip pos="2" part="lem"/>
4501 <clip pos="2" part="tags"/>
4502 <clip pos="2" part="chcontent"/>
4503 </chunk>
4504 <b pos="2"/>
4505 </out>
4506 <call-macro n="posa_subj2">
4507 <with-param pos="3"/>
4508 </call-macro>
4509 <out>
4510 <chunk>
4511 <clip pos="3" part="lem"/>
4512 <clip pos="3" part="tags"/>
4513 <clip pos="3" part="chcontent"/>
4514 </chunk>
4515 <b pos="3"/>
4516 </out>
4517 </otherwise>
4518 </choose>
4519 <choose> <!-- mirem si el SN és el subj de la pral-->
4520 <when>
4521 <test>
4522 <not>
4523 <or>
4524 <and>
4525 <equal caseless="yes">
4526 <clip pos="1" part="lem"/>
4527 <lit v="prnperssubj"/>
4528 </equal>
4529 <equal>
4530 <clip pos="4" part="pers"/>
4531 <clip pos="1" part="pers"/>
4532 </equal>
4533 <equal>
4534 <clip pos="4" part="nbr"/>
4535 <clip pos="1" part="nbr"/>
4536 </equal>
4537 </and>
4538 <and>
4539 <equal>
4540 <clip pos="4" part="pers"/>
4541 <lit-tag v="p3"/>
4542 </equal>
4543 <equal>
4544 <clip pos="4" part="nbr"/>
4545 <clip pos="1" part="nbr"/>
4546 </equal>
4547 </and>
4548 </or>
4549 </not>
4550 </test>
4551 <!--si no l'és, cal posar un subj al SV pral-->
4552 <call-macro n="posa_subj2">
4553 <with-param pos="4"/>
4554 </call-macro>
4555 </when>
4556 </choose>
4557 <out>
4558 <chunk>
4559 <clip pos="4" part="lem"/>
4560 <clip pos="4" part="tags"/>
4561 <clip pos="4" part="chcontent"/>
4562 </chunk>
4563 </out>
4564 <out>
4565 <b pos="4"/>
4566 <chunk>
4567 <clip pos="5" part="whole"/>
4568 </chunk>
4569 <b pos="5"/>
4570 <chunk>
4571 <clip pos="6" part="whole"/>
4572 </chunk>
4573 </out>
4574 </action>
4575 </rule>
4577 <rule comment="REGLA: SN vbcop SN">
4578 <pattern>
4579 <pattern-item n="SN"/>
4580 <pattern-item n="vbcop"/>
4581 <pattern-item n="SN"/>
4582 </pattern>
4583 <action>
4584 <call-macro n="concord_sn">
4585 <with-param pos="1"/>
4586 <with-param pos="3"/>
4587 </call-macro>
4588 <call-macro n="assigna_gen_nbr">
4589 <with-param pos="1"/>
4590 </call-macro>
4591 <out>
4592 <chunk>
4593 <clip pos="1" part="lem"/>
4594 <clip pos="1" part="tags"/>
4595 <clip pos="1" part="chcontent"/>
4596 </chunk>
4597 <b pos="1"/>
4598 <chunk>
4599 <clip pos="2" part="lem"/>
4600 <clip pos="2" part="tags"/>
4601 <clip pos="2" part="chcontent"/>
4602 </chunk>
4603 <b pos="2"/>
4604 </out>
4605 <choose>
4606 <when>
4607 <test>
4608 <and>
4609 <or>
4610 <equal>
4611 <clip pos="3" part="lem"/>
4612 <lit v="nom"/>
4613 </equal>
4615 <equal>
4616 <clip pos="3" part="lem"/>
4617 <lit v="part"/>
4618 </equal>
4619 <equal>
4620 <clip pos="3" part="lem"/>
4621 <lit v="adj_nom"/>
4622 </equal>
4623 <equal>
4624 <clip pos="3" part="lem"/>
4625 <lit v="nom_adj"/>
4626 </equal>
4627 </or>
4628 <equal>
4629 <clip pos="3" part="nbr"/>
4630 <lit-tag v="pl"/>
4631 </equal>
4632 </and>
4633 </test>
4634 <out>
4635 <chunk>
4636 <lit v="partitiu"/>
4637 <lit-tag v="part"/>
4638 <lit v="{^"/>
4639 <get-case-from pos="3">
4640 <lit v="de"/>
4641 </get-case-from>
4642 <lit-tag v="pr"/>
4643 <lit v="$ ^"/>
4644 <get-case-from pos="3">
4645 <lit v="le"/>
4646 </get-case-from>
4647 <lit-tag v="det.def.mf.pl"/>
4648 <lit v="$}"/>
4649 </chunk>
4650 <b/>
4651 </out>
4652 </when>
4653 </choose>
4654 <choose>
4655 <when>
4656 <test>
4657 <and>
4658 <or>
4659 <equal>
4660 <clip pos="3" part="lem"/>
4661 <lit v="part"/>
4662 </equal>
4663 <equal>
4664 <clip pos="3" part="lem"/>
4665 <lit v="partadj_nom"/>
4666 </equal>
4667 <equal>
4668 <clip pos="3" part="lem"/>
4669 <lit v="partnom_adj"/>
4670 </equal>
4671 </or>
4672 <equal>
4673 <clip pos="3" part="nbr"/>
4674 <lit-tag v="sg"/>
4675 </equal>
4676 </and>
4677 </test>
4678 <out>
4679 <chunk>
4681 <lit v="partitiu"/>
4682 <lit-tag v="part"/>
4683 <lit v="{^"/>
4684 <get-case-from pos="3">
4685 <lit v="de"/>
4686 </get-case-from>
4687 <lit-tag v="pr"/>
4688 <lit v="$ ^"/>
4689 <get-case-from pos="3">
4690 <lit v="le"/>
4691 </get-case-from>
4692 <lit-tag v="det.def"/>
4693 <clip pos="3" part="gen"/>
4694 <lit-tag v="sg"/>
4695 <lit v="$}"/>
4696 </chunk>
4697 <b/>
4698 </out>
4699 </when>
4700 </choose>
4701 <out>
4702 <chunk>
4703 <clip pos="3" part="whole"/>
4704 </chunk>
4705 </out>
4706 </action>
4707 </rule>
4709 <rule comment="REGLA: SN querel SV vbcop SN">
4710 <pattern>
4711 <pattern-item n="SN"/>
4712 <pattern-item n="QUEREL"/>
4713 <pattern-item n="SV"/>
4714 <pattern-item n="vbcop"/>
4715 <pattern-item n="SN"/>
4716 </pattern>
4717 <action>
4718 <call-macro n="concord_sn">
4719 <with-param pos="1"/>
4720 <with-param pos="5"/>
4721 </call-macro>
4722 <call-macro n="assigna_gen_nbr">
4723 <with-param pos="1"/>
4724 </call-macro>
4725 <out>
4726 <chunk>
4727 <clip pos="1" part="lem"/>
4728 <clip pos="1" part="tags"/>
4729 <clip pos="1" part="chcontent"/>
4730 </chunk>
4731 <b pos="1"/>
4732 </out>
4733 <choose> <!--mirem si el SN és el subj de la subordinada-->
4734 <when>
4735 <test>
4736 <or>
4737 <and>
4738 <equal caseless="yes">
4739 <clip pos="1" part="lem"/>
4740 <lit v="prnperssubj"/>
4741 </equal>
4742 <equal>
4743 <clip pos="3" part="pers"/>
4744 <clip pos="1" part="pers"/>
4745 </equal>
4746 <equal>
4747 <clip pos="3" part="nbr"/>
4748 <clip pos="1" part="nbr"/>
4749 </equal>
4750 </and>
4751 <and>
4752 <not>
4753 <equal caseless="yes">
4754 <clip pos="1" part="lem"/>
4755 <lit v="prnperssubj"/>
4756 </equal>
4757 </not>
4758 <equal>
4759 <clip pos="3" part="pers"/>
4760 <lit-tag v="p3"/>
4761 </equal>
4762 <equal>
4763 <clip pos="3" part="nbr"/>
4764 <clip pos="1" part="nbr"/>
4765 </equal>
4766 </and>
4767 </or>
4768 </test>
4769 <out> <!--si és que sí, el rel serà "qui" i no "que"-->
4770 <chunk>
4771 <lit v="qui"/>
4772 <clip pos="2" part="tags"/>
4773 <clip pos="2" part="chcontent"/>
4774 </chunk>
4775 <b pos="2"/>
4776 <chunk>
4777 <clip pos="3" part="lem"/>
4778 <clip pos="3" part="tags"/>
4779 <clip pos="3" part="chcontent"/>
4780 </chunk>
4781 <b pos="3"/>
4782 </out>
4783 </when>
4784 <otherwise><!--si és que no, el rel serà "que" i caldrà posar subjecte al verb-->
4785 <out>
4786 <chunk>
4787 <clip pos="2" part="lem"/>
4788 <clip pos="2" part="tags"/>
4789 <clip pos="2" part="chcontent"/>
4790 </chunk>
4791 <b pos="2"/>
4792 </out>
4793 <call-macro n="posa_subj2">
4794 <with-param pos="3"/>
4795 </call-macro>
4796 <out>
4797 <chunk>
4798 <clip pos="3" part="lem"/>
4799 <clip pos="3" part="tags"/>
4800 <clip pos="3" part="chcontent"/>
4801 </chunk>
4802 <b pos="3"/>
4803 </out>
4804 </otherwise>
4805 </choose>
4806 <choose> <!-- mirem si el SN és el subj de la pral-->
4807 <when>
4808 <test>
4809 <not>
4810 <or>
4811 <and>
4812 <equal caseless="yes">
4813 <clip pos="1" part="lem"/>
4814 <lit v="prnperssubj"/>
4815 </equal>
4816 <equal>
4817 <clip pos="4" part="pers"/>
4818 <clip pos="1" part="pers"/>
4819 </equal>
4820 <equal>
4821 <clip pos="4" part="nbr"/>
4822 <clip pos="1" part="nbr"/>
4823 </equal>
4824 </and>
4825 <and>
4826 <equal>
4827 <clip pos="4" part="pers"/>
4828 <lit-tag v="p3"/>
4829 </equal>
4830 <equal>
4831 <clip pos="4" part="nbr"/>
4832 <clip pos="1" part="nbr"/>
4833 </equal>
4834 </and>
4835 </or>
4836 </not>
4837 </test>
4838 <!--si no l'és, cal posar un subj al SV pral-->
4839 <call-macro n="posa_subj2">
4840 <with-param pos="4"/>
4841 </call-macro>
4842 </when>
4843 </choose>
4844 <out>
4845 <chunk>
4846 <clip pos="4" part="lem"/>
4847 <clip pos="4" part="tags"/>
4848 <clip pos="4" part="chcontent"/>
4849 </chunk>
4850 <b pos="4"/>
4851 </out>
4852 <choose>
4853 <when>
4854 <test>
4855 <and>
4856 <or>
4857 <equal>
4858 <clip pos="5" part="lem"/>
4859 <lit v="nom"/>
4860 </equal>
4862 <equal>
4863 <clip pos="5" part="lem"/>
4864 <lit v="part"/>
4865 </equal>
4866 <equal>
4867 <clip pos="5" part="lem"/>
4868 <lit v="adj_nom"/>
4869 </equal>
4870 <equal>
4871 <clip pos="5" part="lem"/>
4872 <lit v="nom_adj"/>
4873 </equal>
4874 </or>
4875 <equal>
4876 <clip pos="5" part="nbr"/>
4877 <lit-tag v="pl"/>
4878 </equal>
4879 </and>
4880 </test>
4881 <out>
4882 <chunk>
4883 <lit v="partitiu"/>
4884 <lit-tag v="part"/>
4885 <lit v="{^"/>
4886 <get-case-from pos="5">
4887 <lit v="de"/>
4888 </get-case-from>
4889 <lit-tag v="pr"/>
4890 <lit v="$ ^"/>
4891 <get-case-from pos="5">
4892 <lit v="le"/>
4893 </get-case-from>
4894 <lit-tag v="det.def.mf.pl"/>
4895 <lit v="$}"/>
4896 </chunk>
4897 <b/>
4898 </out>
4899 </when>
4900 </choose>
4901 <choose>
4902 <when>
4903 <test>
4904 <and>
4905 <or>
4906 <equal>
4907 <clip pos="5" part="lem"/>
4908 <lit v="part"/>
4909 </equal>
4910 <equal>
4911 <clip pos="5" part="lem"/>
4912 <lit v="partadj_nom"/>
4913 </equal>
4914 <equal>
4915 <clip pos="5" part="lem"/>
4916 <lit v="partnom_adj"/>
4917 </equal>
4918 </or>
4919 <equal>
4920 <clip pos="5" part="nbr"/>
4921 <lit-tag v="sg"/>
4922 </equal>
4923 </and>
4924 </test>
4925 <out>
4926 <chunk>
4928 <lit v="partitiu"/>
4929 <lit-tag v="part"/>
4930 <lit v="{^"/>
4931 <get-case-from pos="5">
4932 <lit v="de"/>
4933 </get-case-from>
4934 <lit-tag v="pr"/>
4935 <lit v="$ ^"/>
4936 <get-case-from pos="5">
4937 <lit v="le"/>
4938 </get-case-from>
4939 <lit-tag v="det.def"/>
4940 <clip pos="5" part="gen"/>
4941 <lit-tag v="sg"/>
4942 <lit v="$}"/>
4943 </chunk>
4944 <b/>
4945 </out>
4946 </when>
4947 </choose>
4948 <out>
4951 <chunk>
4952 <clip pos="5" part="whole"/>
4953 </chunk>
4954 </out>
4955 </action>
4956 </rule>
4959 <rule comment="REGLA: SN vbcop adv SN">
4960 <pattern>
4961 <pattern-item n="SN"/>
4962 <pattern-item n="vbcop"/>
4963 <pattern-item n="adv"/>
4964 <pattern-item n="SN"/>
4965 </pattern>
4966 <action>
4967 <call-macro n="concord_sn">
4968 <with-param pos="1"/>
4969 <with-param pos="4"/>
4970 </call-macro>
4971 <call-macro n="assigna_gen_nbr">
4972 <with-param pos="1"/>
4973 </call-macro>
4974 <out>
4975 <chunk>
4976 <clip pos="1" part="lem"/>
4977 <clip pos="1" part="tags"/>
4978 <clip pos="1" part="chcontent"/>
4979 </chunk>
4980 <b pos="1"/>
4981 <chunk>
4982 <clip pos="2" part="lem"/>
4983 <clip pos="2" part="tags"/>
4984 <clip pos="2" part="chcontent"/>
4985 </chunk>
4986 <b pos="2"/>
4987 <chunk>
4988 <clip pos="3" part="lem"/>
4989 <clip pos="3" part="tags"/>
4990 <clip pos="3" part="chcontent"/>
4991 </chunk>
4992 <b pos="3"/>
4993 </out>
4995 <choose>
4996 <when>
4997 <test>
4998 <and>
4999 <or>
5000 <equal>
5001 <clip pos="4" part="lem"/>
5002 <lit v="nom"/>
5003 </equal>
5004 <equal>
5005 <clip pos="4" part="lem"/>
5006 <lit v="part"/>
5007 </equal>
5008 <equal>
5009 <clip pos="4" part="lem"/>
5010 <lit v="adj_nom"/>
5011 </equal>
5012 <equal>
5013 <clip pos="4" part="lem"/>
5014 <lit v="nom_adj"/>
5015 </equal>
5016 </or>
5017 <equal>
5018 <clip pos="4" part="nbr"/>
5019 <lit-tag v="pl"/>
5020 </equal>
5021 </and>
5022 </test>
5023 <out>
5024 <chunk>
5025 <lit v="partitiu"/>
5026 <lit-tag v="part"/>
5027 <lit v="{^"/>
5028 <get-case-from pos="4">
5029 <lit v="de"/>
5030 </get-case-from>
5031 <lit-tag v="pr"/>
5032 <lit v="$ ^"/>
5033 <get-case-from pos="4">
5034 <lit v="le"/>
5035 </get-case-from>
5036 <lit-tag v="det.def.mf.pl"/>
5037 <lit v="$}"/>
5038 </chunk>
5039 <b/>
5040 </out>
5041 </when>
5042 </choose>
5043 <choose>
5044 <when>
5045 <test>
5046 <and>
5047 <or>
5048 <equal>
5049 <clip pos="4" part="lem"/>
5050 <lit v="part"/>
5051 </equal>
5052 <equal>
5053 <clip pos="4" part="lem"/>
5054 <lit v="partadj_nom"/>
5055 </equal>
5056 <equal>
5057 <clip pos="4" part="lem"/>
5058 <lit v="partnom_adj"/>
5059 </equal>
5060 </or>
5062 <equal>
5063 <clip pos="4" part="nbr"/>
5064 <lit-tag v="sg"/>
5065 </equal>
5066 </and>
5067 </test>
5068 <out>
5069 <chunk>
5071 <lit v="partitiu"/>
5072 <lit-tag v="part"/>
5073 <lit v="{^"/>
5074 <get-case-from pos="4">
5075 <lit v="de"/>
5076 </get-case-from>
5077 <lit-tag v="pr"/>
5078 <lit v="$ ^"/>
5079 <get-case-from pos="4">
5080 <lit v="le"/>
5081 </get-case-from>
5082 <lit-tag v="det.def"/>
5083 <clip pos="4" part="gen"/>
5084 <lit-tag v="sg"/>
5085 <lit v="$}"/>
5086 </chunk>
5087 <b/>
5088 </out>
5089 </when>
5090 </choose>
5091 <out>
5092 <chunk>
5093 <clip pos="4" part="lem"/>
5094 <clip pos="4" part="tags"/>
5095 <clip pos="4" part="chcontent"/>
5096 </chunk>
5097 </out>
5098 </action>
5099 </rule>
5101 <rule comment="REGLA: SN querel SV vbcop adv SN">
5102 <pattern>
5103 <pattern-item n="SN"/>
5104 <pattern-item n="QUEREL"/>
5105 <pattern-item n="SV"/>
5106 <pattern-item n="vbcop"/>
5107 <pattern-item n="adv"/>
5108 <pattern-item n="SN"/>
5109 </pattern>
5110 <action>
5111 <call-macro n="concord_sn">
5112 <with-param pos="1"/>
5113 <with-param pos="6"/>
5114 </call-macro>
5115 <call-macro n="assigna_gen_nbr">
5116 <with-param pos="1"/>
5117 </call-macro>
5118 <out>
5119 <chunk>
5120 <clip pos="1" part="lem"/>
5121 <clip pos="1" part="tags"/>
5122 <clip pos="1" part="chcontent"/>
5123 </chunk>
5124 <b pos="1"/>
5125 </out>
5126 <choose> <!--mirem si el SN és el subj de la subordinada-->
5127 <when>
5128 <test>
5129 <or>
5130 <and>
5131 <equal caseless="yes">
5132 <clip pos="1" part="lem"/>
5133 <lit v="prnperssubj"/>
5134 </equal>
5135 <equal>
5136 <clip pos="3" part="pers"/>
5137 <clip pos="1" part="pers"/>
5138 </equal>
5139 <equal>
5140 <clip pos="3" part="nbr"/>
5141 <clip pos="1" part="nbr"/>
5142 </equal>
5143 </and>
5144 <and>
5145 <not>
5146 <equal caseless="yes">
5147 <clip pos="1" part="lem"/>
5148 <lit v="prnperssubj"/>
5149 </equal>
5150 </not>
5151 <equal>
5152 <clip pos="3" part="pers"/>
5153 <lit-tag v="p3"/>
5154 </equal>
5155 <equal>
5156 <clip pos="3" part="nbr"/>
5157 <clip pos="1" part="nbr"/>
5158 </equal>
5159 </and>
5160 </or>
5161 </test>
5162 <out> <!--si és que sí, el rel serà "qui" i no "que"-->
5163 <chunk>
5164 <lit v="qui"/>
5165 <clip pos="2" part="tags"/>
5166 <clip pos="2" part="chcontent"/>
5167 </chunk>
5168 <b pos="2"/>
5169 <chunk>
5170 <clip pos="3" part="lem"/>
5171 <clip pos="3" part="tags"/>
5172 <clip pos="3" part="chcontent"/>
5173 </chunk>
5174 <b pos="3"/>
5175 </out>
5176 </when>
5177 <otherwise><!--si és que no, el rel serà "que" i caldrà posar subjecte al verb-->
5178 <out>
5179 <chunk>
5180 <clip pos="2" part="lem"/>
5181 <clip pos="2" part="tags"/>
5182 <clip pos="2" part="chcontent"/>
5183 </chunk>
5184 <b pos="2"/>
5185 </out>
5186 <call-macro n="posa_subj2">
5187 <with-param pos="3"/>
5188 </call-macro>
5189 <out>
5190 <chunk>
5191 <clip pos="3" part="lem"/>
5192 <clip pos="3" part="tags"/>
5193 <clip pos="3" part="chcontent"/>
5194 </chunk>
5195 <b pos="3"/>
5196 </out>
5197 </otherwise>
5198 </choose>
5199 <choose> <!-- mirem si el SN és el subj de la pral-->
5200 <when>
5201 <test>
5202 <not>
5203 <or>
5204 <and>
5205 <equal caseless="yes">
5206 <clip pos="1" part="lem"/>
5207 <lit v="prnperssubj"/>
5208 </equal>
5209 <equal>
5210 <clip pos="4" part="pers"/>
5211 <clip pos="1" part="pers"/>
5212 </equal>
5213 <equal>
5214 <clip pos="4" part="nbr"/>
5215 <clip pos="1" part="nbr"/>
5216 </equal>
5217 </and>
5218 <and>
5219 <equal>
5220 <clip pos="4" part="pers"/>
5221 <lit-tag v="p3"/>
5222 </equal>
5223 <equal>
5224 <clip pos="4" part="nbr"/>
5225 <clip pos="1" part="nbr"/>
5226 </equal>
5227 </and>
5228 </or>
5229 </not>
5230 </test>
5231 <!--si no l'és, cal posar un subj al SV pral-->
5232 <call-macro n="posa_subj2">
5233 <with-param pos="4"/>
5234 </call-macro>
5235 </when>
5236 </choose>
5237 <out>
5238 <chunk>
5239 <clip pos="4" part="lem"/>
5240 <clip pos="4" part="tags"/>
5241 <clip pos="4" part="chcontent"/>
5242 </chunk>
5243 </out>
5244 <out>
5245 <b pos="4"/>
5246 <chunk>
5247 <clip pos="5" part="whole"/>
5248 </chunk>
5249 <b pos="5"/>
5250 </out>
5251 <choose>
5252 <when>
5253 <test>
5254 <and>
5255 <or>
5256 <equal>
5257 <clip pos="6" part="lem"/>
5258 <lit v="nom"/>
5259 </equal>
5261 <equal>
5262 <clip pos="6" part="lem"/>
5263 <lit v="part"/>
5264 </equal>
5265 <equal>
5266 <clip pos="6" part="lem"/>
5267 <lit v="adj_nom"/>
5268 </equal>
5269 <equal>
5270 <clip pos="6" part="lem"/>
5271 <lit v="nom_adj"/>
5272 </equal>
5273 </or>
5274 <equal>
5275 <clip pos="6" part="nbr"/>
5276 <lit-tag v="pl"/>
5277 </equal>
5278 </and>
5279 </test>
5280 <out>
5281 <chunk>
5282 <lit v="partitiu"/>
5283 <lit-tag v="part"/>
5284 <lit v="{^"/>
5285 <get-case-from pos="6">
5286 <lit v="de"/>
5287 </get-case-from>
5288 <lit-tag v="pr"/>
5289 <lit v="$ ^"/>
5290 <get-case-from pos="6">
5291 <lit v="le"/>
5292 </get-case-from>
5293 <lit-tag v="det.def.mf.pl"/>
5294 <lit v="$}"/>
5295 </chunk>
5296 <b/>
5297 </out>
5298 </when>
5299 </choose>
5300 <choose>
5301 <when>
5302 <test>
5303 <and>
5304 <or>
5305 <equal>
5306 <clip pos="6" part="lem"/>
5307 <lit v="part"/>
5308 </equal>
5309 <equal>
5310 <clip pos="6" part="lem"/>
5311 <lit v="partadj_nom"/>
5312 </equal>
5313 <equal>
5314 <clip pos="6" part="lem"/>
5315 <lit v="partnom_adj"/>
5316 </equal>
5317 </or>
5319 <equal>
5320 <clip pos="6" part="nbr"/>
5321 <lit-tag v="sg"/>
5322 </equal>
5323 </and>
5324 </test>
5325 <out>
5326 <chunk>
5328 <lit v="partitiu"/>
5329 <lit-tag v="part"/>
5330 <lit v="{^"/>
5331 <get-case-from pos="6">
5332 <lit v="de"/>
5333 </get-case-from>
5334 <lit-tag v="pr"/>
5335 <lit v="$ ^"/>
5336 <get-case-from pos="6">
5337 <lit v="le"/>
5338 </get-case-from>
5339 <lit-tag v="det.def"/>
5340 <clip pos="6" part="gen"/>
5341 <lit-tag v="sg"/>
5342 <lit v="$}"/>
5343 </chunk>
5344 <b/>
5345 </out>
5346 </when>
5347 </choose>
5348 <out>
5349 <chunk>
5350 <clip pos="6" part="whole"/>
5351 </chunk>
5352 </out>
5353 </action>
5354 </rule>
5356 <rule comment="REGLA: SN vbcop SN querel SV">
5357 <pattern>
5358 <pattern-item n="SN"/>
5359 <pattern-item n="vbcop"/>
5360 <pattern-item n="SN"/>
5361 <pattern-item n="QUEREL"/>
5362 <pattern-item n="SV"/>
5363 </pattern>
5364 <action>
5365 <call-macro n="concord_sn">
5366 <with-param pos="1"/>
5367 <with-param pos="3"/>
5368 </call-macro>
5369 <call-macro n="assigna_gen_nbr">
5370 <with-param pos="1"/>
5371 </call-macro>
5372 <out>
5373 <chunk>
5374 <clip pos="1" part="lem"/>
5375 <clip pos="1" part="tags"/>
5376 <clip pos="1" part="chcontent"/>
5377 </chunk>
5378 <b pos="1"/>
5379 <chunk>
5380 <clip pos="2" part="lem"/>
5381 <clip pos="2" part="tags"/>
5382 <clip pos="2" part="chcontent"/>
5383 </chunk>
5384 <b pos="2"/>
5385 </out>
5387 <choose>
5388 <when>
5389 <test>
5390 <and>
5391 <or>
5392 <equal>
5393 <clip pos="3" part="lem"/>
5394 <lit v="nom"/>
5395 </equal>
5397 <equal>
5398 <clip pos="3" part="lem"/>
5399 <lit v="part"/>
5400 </equal>
5401 <equal>
5402 <clip pos="3" part="lem"/>
5403 <lit v="adj_nom"/>
5404 </equal>
5405 <equal>
5406 <clip pos="3" part="lem"/>
5407 <lit v="nom_adj"/>
5408 </equal>
5409 </or>
5410 <equal>
5411 <clip pos="3" part="nbr"/>
5412 <lit-tag v="pl"/>
5413 </equal>
5414 </and>
5415 </test>
5416 <out>
5417 <chunk>
5418 <lit v="partitiu"/>
5419 <lit-tag v="part"/>
5420 <lit v="{^"/>
5421 <get-case-from pos="3">
5422 <lit v="de"/>
5423 </get-case-from>
5424 <lit-tag v="pr"/>
5425 <lit v="$ ^"/>
5426 <get-case-from pos="3">
5427 <lit v="le"/>
5428 </get-case-from>
5429 <lit-tag v="det.def.mf.pl"/>
5430 <lit v="$}"/>
5431 </chunk>
5432 <b/>
5433 </out>
5434 </when>
5435 </choose>
5436 <choose>
5437 <when>
5438 <test>
5439 <and>
5440 <or>
5441 <equal>
5442 <clip pos="3" part="lem"/>
5443 <lit v="part"/>
5444 </equal>
5445 <equal>
5446 <clip pos="3" part="lem"/>
5447 <lit v="partadj_nom"/>
5448 </equal>
5449 <equal>
5450 <clip pos="3" part="lem"/>
5451 <lit v="partnom_adj"/>
5452 </equal>
5453 </or>
5455 <equal>
5456 <clip pos="3" part="nbr"/>
5457 <lit-tag v="sg"/>
5458 </equal>
5459 </and>
5460 </test>
5461 <out>
5462 <chunk>
5464 <lit v="partitiu"/>
5465 <lit-tag v="part"/>
5466 <lit v="{^"/>
5467 <get-case-from pos="3">
5468 <lit v="de"/>
5469 </get-case-from>
5470 <lit-tag v="pr"/>
5471 <lit v="$ ^"/>
5472 <get-case-from pos="3">
5473 <lit v="le"/>
5474 </get-case-from>
5475 <lit-tag v="det.def"/>
5476 <clip pos="3" part="gen"/>
5477 <lit-tag v="sg"/>
5478 <lit v="$}"/>
5479 </chunk>
5480 <b/>
5481 </out>
5482 </when>
5483 </choose>
5485 <out>
5486 <chunk>
5487 <clip pos="3" part="whole"/>
5488 </chunk>
5489 </out>
5490 <choose> <!--mirem si el SN és el subj de la subordinada-->
5491 <when>
5492 <test>
5493 <or>
5494 <and>
5495 <equal caseless="yes">
5496 <clip pos="3" part="lem"/>
5497 <lit v="prnperssubj"/>
5498 </equal>
5499 <equal>
5500 <clip pos="5" part="pers"/>
5501 <clip pos="3" part="pers"/>
5502 </equal>
5503 <equal>
5504 <clip pos="5" part="nbr"/>
5505 <clip pos="3" part="nbr"/>
5506 </equal>
5507 </and>
5508 <and>
5509 <not>
5510 <equal caseless="yes">
5511 <clip pos="3" part="lem"/>
5512 <lit v="prnperssubj"/>
5513 </equal>
5514 </not>
5515 <equal>
5516 <clip pos="5" part="pers"/>
5517 <lit-tag v="p3"/>
5518 </equal>
5519 <equal>
5520 <clip pos="5" part="nbr"/>
5521 <clip pos="1" part="nbr"/>
5522 </equal>
5523 </and>
5524 </or>
5525 </test>
5526 <out> <!--si és que sí, el rel serà "qui" i no "que"-->
5527 <b pos="3"/>
5528 <chunk>
5529 <lit v="qui"/>
5530 <clip pos="4" part="tags"/>
5531 <clip pos="4" part="chcontent"/>
5532 </chunk>
5533 <b pos="4"/>
5534 <chunk>
5535 <clip pos="5" part="lem"/>
5536 <clip pos="5" part="tags"/>
5537 <clip pos="5" part="chcontent"/>
5538 </chunk>
5539 </out>
5540 </when>
5541 <otherwise><!--si és que no, el rel serà "que" i caldrà posar subjecte al verb-->
5542 <out>
5543 <b pos="3"/>
5544 <chunk>
5545 <clip pos="4" part="lem"/>
5546 <clip pos="4" part="tags"/>
5547 <clip pos="4" part="chcontent"/>
5548 </chunk>
5549 <b pos="4"/>
5550 </out>
5551 <call-macro n="posa_subj2">
5552 <with-param pos="5"/>
5553 </call-macro>
5554 <out>
5555 <chunk>
5556 <clip pos="5" part="lem"/>
5557 <clip pos="5" part="tags"/>
5558 <clip pos="5" part="chcontent"/>
5559 </chunk>
5560 </out>
5561 </otherwise>
5562 </choose>
5563 </action>
5564 </rule>
5566 <rule comment="REGLA: SN vbcop adv SN querel SV">
5567 <pattern>
5568 <pattern-item n="SN"/>
5569 <pattern-item n="vbcop"/>
5570 <pattern-item n="adv"/>
5571 <pattern-item n="SN"/>
5572 <pattern-item n="QUEREL"/>
5573 <pattern-item n="SV"/>
5574 </pattern>
5575 <action>
5576 <call-macro n="concord_sn">
5577 <with-param pos="1"/>
5578 <with-param pos="4"/>
5579 </call-macro>
5580 <call-macro n="assigna_gen_nbr">
5581 <with-param pos="1"/>
5582 </call-macro>
5583 <out>
5584 <chunk>
5585 <clip pos="1" part="lem"/>
5586 <clip pos="1" part="tags"/>
5587 <clip pos="1" part="chcontent"/>
5588 </chunk>
5589 <b pos="1"/>
5590 <chunk>
5591 <clip pos="2" part="lem"/>
5592 <clip pos="2" part="tags"/>
5593 <clip pos="2" part="chcontent"/>
5594 </chunk>
5595 <b pos="2"/>
5596 <chunk>
5597 <clip pos="3" part="lem"/>
5598 <clip pos="3" part="tags"/>
5599 <clip pos="3" part="chcontent"/>
5600 </chunk>
5601 <b pos="3"/>
5602 </out>
5604 <choose>
5605 <when>
5606 <test>
5607 <and>
5608 <or>
5609 <equal>
5610 <clip pos="4" part="lem"/>
5611 <lit v="nom"/>
5612 </equal>
5614 <equal>
5615 <clip pos="4" part="lem"/>
5616 <lit v="part"/>
5617 </equal>
5618 <equal>
5619 <clip pos="4" part="lem"/>
5620 <lit v="adj_nom"/>
5621 </equal>
5622 <equal>
5623 <clip pos="4" part="lem"/>
5624 <lit v="nom_adj"/>
5625 </equal>
5628 </or>
5629 <equal>
5630 <clip pos="4" part="nbr"/>
5631 <lit-tag v="pl"/>
5632 </equal>
5633 </and>
5634 </test>
5635 <out>
5636 <chunk>
5637 <lit v="partitiu"/>
5638 <lit-tag v="part"/>
5639 <lit v="{^"/>
5640 <get-case-from pos="4">
5641 <lit v="de"/>
5642 </get-case-from>
5643 <lit-tag v="pr"/>
5644 <lit v="$ ^"/>
5645 <get-case-from pos="4">
5646 <lit v="le"/>
5647 </get-case-from>
5648 <lit-tag v="det.def.mf.pl"/>
5649 <lit v="$}"/>
5650 </chunk>
5651 <b/>
5652 </out>
5653 </when>
5654 </choose>
5655 <choose>
5656 <when>
5657 <test>
5658 <and>
5659 <or>
5660 <equal>
5661 <clip pos="4" part="lem"/>
5662 <lit v="part"/>
5663 </equal>
5664 <equal>
5665 <clip pos="4" part="lem"/>
5666 <lit v="partadj_nom"/>
5667 </equal>
5668 <equal>
5669 <clip pos="4" part="lem"/>
5670 <lit v="partnom_adj"/>
5671 </equal>
5672 </or>
5673 <equal>
5674 <clip pos="4" part="nbr"/>
5675 <lit-tag v="sg"/>
5676 </equal>
5677 </and>
5678 </test>
5679 <out>
5680 <chunk>
5682 <lit v="partitiu"/>
5683 <lit-tag v="part"/>
5684 <lit v="{^"/>
5685 <get-case-from pos="4">
5686 <lit v="de"/>
5687 </get-case-from>
5688 <lit-tag v="pr"/>
5689 <lit v="$ ^"/>
5690 <get-case-from pos="4">
5691 <lit v="le"/>
5692 </get-case-from>
5693 <lit-tag v="det.def"/>
5694 <clip pos="3" part="gen"/>
5695 <lit-tag v="sg"/>
5696 <lit v="$}"/>
5697 </chunk>
5698 <b/>
5699 </out>
5700 </when>
5701 </choose>
5703 <out>
5704 <chunk>
5705 <clip pos="4" part="lem"/>
5706 <clip pos="4" part="tags"/>
5707 <clip pos="4" part="chcontent"/>
5708 </chunk>
5709 </out>
5710 <choose> <!--mirem si el SN és el subj de la subordinada-->
5711 <when>
5712 <test>
5713 <or>
5714 <and>
5715 <equal caseless="yes">
5716 <clip pos="4" part="lem"/>
5717 <lit v="prnperssubj"/>
5718 </equal>
5719 <equal>
5720 <clip pos="6" part="pers"/>
5721 <clip pos="4" part="pers"/>
5722 </equal>
5723 <equal>
5724 <clip pos="6" part="nbr"/>
5725 <clip pos="4" part="nbr"/>
5726 </equal>
5727 </and>
5728 <and>
5729 <not>
5730 <equal caseless="yes">
5731 <clip pos="4" part="lem"/>
5732 <lit v="prnperssubj"/>
5733 </equal>
5734 </not>
5735 <equal>
5736 <clip pos="6" part="pers"/>
5737 <lit-tag v="p3"/>
5738 </equal>
5739 <equal>
5740 <clip pos="6" part="nbr"/>
5741 <clip pos="1" part="nbr"/>
5742 </equal>
5743 </and>
5744 </or>
5745 </test>
5746 <out> <!--si és que sí, el rel serà "qui" i no "que"-->
5747 <b pos="4"/>
5748 <chunk>
5749 <lit v="qui"/>
5750 <clip pos="5" part="tags"/>
5751 <clip pos="5" part="chcontent"/>
5752 </chunk>
5753 <b pos="5"/>
5754 <chunk>
5755 <clip pos="6" part="lem"/>
5756 <clip pos="6" part="tags"/>
5757 <clip pos="6" part="chcontent"/>
5758 </chunk>
5759 </out>
5760 </when>
5761 <otherwise><!--si és que no, el rel serà "que" i caldrà posar subjecte al verb-->
5762 <out>
5763 <b pos="4"/>
5764 <chunk>
5765 <clip pos="5" part="lem"/>
5766 <clip pos="5" part="tags"/>
5767 <clip pos="5" part="chcontent"/>
5768 </chunk>
5769 <b pos="5"/>
5770 </out>
5771 <call-macro n="posa_subj2">
5772 <with-param pos="6"/>
5773 </call-macro>
5774 <out>
5775 <chunk>
5776 <clip pos="6" part="lem"/>
5777 <clip pos="6" part="tags"/>
5778 <clip pos="6" part="chcontent"/>
5779 </chunk>
5780 </out>
5781 </otherwise>
5782 </choose>
5783 </action>
5784 </rule>
5786 <rule comment="REGLA: SN sprep vbcop SA">
5787 <pattern>
5788 <pattern-item n="SN"/>
5789 <pattern-item n="pr"/>
5790 <pattern-item n="SN"/>
5791 <pattern-item n="vbcop"/>
5792 <pattern-item n="SA"/>
5793 </pattern>
5794 <action>
5795 <call-macro n="assigna_gen_nbr">
5796 <with-param pos="1"/>
5797 </call-macro>
5798 <call-macro n="assigna_gen_nbr">
5799 <with-param pos="3"/>
5800 </call-macro>
5801 <choose>
5802 <when>
5803 <test>
5804 <or>
5805 <and>
5806 <equal caseless="yes">
5807 <clip pos="1" part="lem"/>
5808 <lit v="prnperssubj"/>
5809 </equal>
5810 <equal>
5811 <clip pos="4" part="pers"/>
5812 <clip pos="1" part="pers"/>
5813 </equal>
5814 <equal>
5815 <clip pos="4" part="nbr"/>
5816 <clip pos="1" part="nbr"/>
5817 </equal>
5818 </and>
5819 <and>
5820 <not>
5821 <equal caseless="yes">
5822 <clip pos="1" part="lem"/>
5823 <lit v="prnperssubj"/>
5824 </equal>
5825 </not>
5826 <equal>
5827 <clip pos="4" part="pers"/>
5828 <lit-tag v="p3"/>
5829 </equal>
5830 <equal>
5831 <clip pos="4" part="nbr"/>
5832 <clip pos="1" part="nbr"/>
5833 </equal>
5834 </and>
5835 </or>
5836 </test>
5837 <out>
5838 <chunk>
5839 <clip pos="1" part="lem"/>
5840 <clip pos="1" part="tags"/>
5841 <clip pos="1" part="chcontent"/>
5842 </chunk>
5843 <b pos="1"/>
5844 <chunk>
5845 <clip pos="2" part="lem"/>
5846 <clip pos="2" part="tags"/>
5847 <clip pos="2" part="chcontent"/>
5848 </chunk>
5849 <b pos="2"/>
5850 <chunk>
5851 <clip pos="3" part="lem"/>
5852 <clip pos="3" part="tags"/>
5853 <clip pos="3" part="chcontent"/>
5854 </chunk>
5855 <b pos="3"/>
5856 <chunk>
5857 <clip pos="4" part="lem"/>
5858 <clip pos="4" part="tags"/>
5859 <clip pos="4" part="chcontent"/>
5860 </chunk>
5861 </out>
5862 </when>
5863 <otherwise>
5864 <out>
5865 <chunk>
5866 <clip pos="1" part="lem"/>
5867 <clip pos="1" part="tags"/>
5868 <clip pos="1" part="chcontent"/>
5869 </chunk>
5870 <b pos="1"/>
5871 <chunk>
5872 <clip pos="2" part="lem"/>
5873 <clip pos="2" part="tags"/>
5874 <clip pos="2" part="chcontent"/>
5875 </chunk>
5876 <b pos="2"/>
5877 <chunk>
5878 <clip pos="3" part="lem"/>
5879 <clip pos="3" part="tags"/>
5880 <clip pos="3" part="chcontent"/>
5881 </chunk>
5882 <b pos="3"/>
5883 </out>
5884 <call-macro n="posa_subj2">
5885 <with-param pos="4"/>
5886 </call-macro>
5887 <out>
5888 <chunk>
5889 <clip pos="4" part="lem"/>
5890 <clip pos="4" part="tags"/>
5891 <clip pos="4" part="chcontent"/>
5892 </chunk>
5893 </out>
5894 </otherwise>
5895 </choose>
5896 <call-macro n="concord_sa">
5897 <with-param pos="1"/>
5898 <with-param pos="5"/>
5899 </call-macro>
5900 <out>
5901 <b pos="4"/>
5902 <chunk>
5903 <clip pos="5" part="lem"/>
5904 <clip pos="5" part="tags"/>
5905 <clip pos="5" part="chcontent"/>
5906 </chunk>
5907 </out>
5908 </action>
5909 </rule>
5911 <rule comment="REGLA: SN sprep vbcop adv SA">
5912 <pattern>
5913 <pattern-item n="SN"/>
5914 <pattern-item n="pr"/>
5915 <pattern-item n="SN"/>
5916 <pattern-item n="vbcop"/>
5917 <pattern-item n="adv"/>
5918 <pattern-item n="SA"/>
5919 </pattern>
5920 <action>
5921 <call-macro n="assigna_gen_nbr">
5922 <with-param pos="1"/>
5923 </call-macro>
5924 <call-macro n="assigna_gen_nbr">
5925 <with-param pos="3"/>
5926 </call-macro>
5927 <choose>
5928 <when>
5929 <test>
5930 <or>
5931 <and>
5932 <equal caseless="yes">
5933 <clip pos="1" part="lem"/>
5934 <lit v="prnperssubj"/>
5935 </equal>
5936 <equal>
5937 <clip pos="4" part="pers"/>
5938 <clip pos="1" part="pers"/>
5939 </equal>
5940 <equal>
5941 <clip pos="4" part="nbr"/>
5942 <clip pos="1" part="nbr"/>
5943 </equal>
5944 </and>
5945 <and>
5946 <not>
5947 <equal caseless="yes">
5948 <clip pos="1" part="lem"/>
5949 <lit v="prnperssubj"/>
5950 </equal>
5951 </not>
5952 <equal>
5953 <clip pos="4" part="pers"/>
5954 <lit-tag v="p3"/>
5955 </equal>
5956 <equal>
5957 <clip pos="4" part="nbr"/>
5958 <clip pos="1" part="nbr"/>
5959 </equal>
5960 </and>
5961 </or>
5962 </test>
5963 <out>
5964 <chunk>
5965 <clip pos="1" part="lem"/>
5966 <clip pos="1" part="tags"/>
5967 <clip pos="1" part="chcontent"/>
5968 </chunk>
5969 <b pos="1"/>
5970 <chunk>
5971 <clip pos="2" part="lem"/>
5972 <clip pos="2" part="tags"/>
5973 <clip pos="2" part="chcontent"/>
5974 </chunk>
5975 <b pos="2"/>
5976 <chunk>
5977 <clip pos="3" part="lem"/>
5978 <clip pos="3" part="tags"/>
5979 <clip pos="3" part="chcontent"/>
5980 </chunk>
5981 <b pos="3"/>
5982 <chunk>
5983 <clip pos="4" part="lem"/>
5984 <clip pos="4" part="tags"/>
5985 <clip pos="4" part="chcontent"/>
5986 </chunk>
5987 </out>
5988 </when>
5989 <otherwise>
5990 <out>
5991 <chunk>
5992 <clip pos="1" part="lem"/>
5993 <clip pos="1" part="tags"/>
5994 <clip pos="1" part="chcontent"/>
5995 </chunk>
5996 <b pos="1"/>
5997 <chunk>
5998 <clip pos="2" part="lem"/>
5999 <clip pos="2" part="tags"/>
6000 <clip pos="2" part="chcontent"/>
6001 </chunk>
6002 <b pos="2"/>
6003 <chunk>
6004 <clip pos="3" part="lem"/>
6005 <clip pos="3" part="tags"/>
6006 <clip pos="3" part="chcontent"/>
6007 </chunk>
6008 <b pos="3"/>
6009 </out>
6010 <call-macro n="posa_subj2">
6011 <with-param pos="4"/>
6012 </call-macro>
6013 <out>
6014 <chunk>
6015 <clip pos="4" part="lem"/>
6016 <clip pos="4" part="tags"/>
6017 <clip pos="4" part="chcontent"/>
6018 </chunk>
6019 </out>
6020 </otherwise>
6021 </choose>
6022 <call-macro n="concord_sa">
6023 <with-param pos="1"/>
6024 <with-param pos="6"/>
6025 </call-macro>
6026 <out>
6027 <b pos="4"/>
6028 <chunk>
6029 <clip pos="5" part="lem"/>
6030 <clip pos="5" part="tags"/>
6031 <clip pos="5" part="chcontent"/>
6032 </chunk>
6033 <b pos="5"/>
6034 <chunk>
6035 <clip pos="6" part="lem"/>
6036 <clip pos="6" part="tags"/>
6037 <clip pos="6" part="chcontent"/>
6038 </chunk>
6039 </out>
6040 </action>
6041 </rule>
6043 <rule comment="REGLA: SN sprep vbcop SN">
6044 <pattern>
6045 <pattern-item n="SN"/>
6046 <pattern-item n="pr"/>
6047 <pattern-item n="SN"/>
6048 <pattern-item n="vbcop"/>
6049 <pattern-item n="SN"/>
6050 </pattern>
6051 <action>
6052 <call-macro n="assigna_gen_nbr">
6053 <with-param pos="1"/>
6054 </call-macro>
6055 <call-macro n="assigna_gen_nbr">
6056 <with-param pos="3"/>
6057 </call-macro>
6058 <choose>
6059 <when>
6060 <test>
6061 <or>
6062 <and>
6063 <equal caseless="yes">
6064 <clip pos="1" part="lem"/>
6065 <lit v="prnperssubj"/>
6066 </equal>
6067 <equal>
6068 <clip pos="4" part="pers"/>
6069 <clip pos="1" part="pers"/>
6070 </equal>
6071 <equal>
6072 <clip pos="4" part="nbr"/>
6073 <clip pos="1" part="nbr"/>
6074 </equal>
6075 </and>
6076 <and>
6077 <not>
6078 <equal caseless="yes">
6079 <clip pos="1" part="lem"/>
6080 <lit v="prnperssubj"/>
6081 </equal>
6082 </not>
6083 <equal>
6084 <clip pos="4" part="pers"/>
6085 <lit-tag v="p3"/>
6086 </equal>
6087 <equal>
6088 <clip pos="4" part="nbr"/>
6089 <clip pos="1" part="nbr"/>
6090 </equal>
6091 </and>
6092 </or>
6093 </test>
6094 <out>
6095 <chunk>
6096 <clip pos="1" part="lem"/>
6097 <clip pos="1" part="tags"/>
6098 <clip pos="1" part="chcontent"/>
6099 </chunk>
6100 <b pos="1"/>
6101 <chunk>
6102 <clip pos="2" part="lem"/>
6103 <clip pos="2" part="tags"/>
6104 <clip pos="2" part="chcontent"/>
6105 </chunk>
6106 <b pos="2"/>
6107 <chunk>
6108 <clip pos="3" part="lem"/>
6109 <clip pos="3" part="tags"/>
6110 <clip pos="3" part="chcontent"/>
6111 </chunk>
6112 <b pos="3"/>
6113 <chunk>
6114 <clip pos="4" part="lem"/>
6115 <clip pos="4" part="tags"/>
6116 <clip pos="4" part="chcontent"/>
6117 </chunk>
6118 </out>
6119 </when>
6120 <otherwise>
6121 <out>
6122 <chunk>
6123 <clip pos="1" part="lem"/>
6124 <clip pos="1" part="tags"/>
6125 <clip pos="1" part="chcontent"/>
6126 </chunk>
6127 <b pos="1"/>
6128 <chunk>
6129 <clip pos="2" part="lem"/>
6130 <clip pos="2" part="tags"/>
6131 <clip pos="2" part="chcontent"/>
6132 </chunk>
6133 <b pos="2"/>
6134 <chunk>
6135 <clip pos="3" part="lem"/>
6136 <clip pos="3" part="tags"/>
6137 <clip pos="3" part="chcontent"/>
6138 </chunk>
6139 <b pos="3"/>
6140 </out>
6141 <call-macro n="posa_subj2">
6142 <with-param pos="4"/>
6143 </call-macro>
6144 <out>
6145 <chunk>
6146 <clip pos="4" part="lem"/>
6147 <clip pos="4" part="tags"/>
6148 <clip pos="4" part="chcontent"/>
6149 </chunk>
6150 </out>
6151 </otherwise>
6152 </choose>
6153 <call-macro n="concord_sn">
6154 <with-param pos="1"/>
6155 <with-param pos="5"/>
6156 </call-macro>
6157 <choose>
6158 <when>
6159 <test>
6160 <and>
6161 <or>
6162 <equal>
6163 <clip pos="5" part="lem"/>
6164 <lit v="nom"/>
6165 </equal>
6167 <equal>
6168 <clip pos="5" part="lem"/>
6169 <lit v="part"/>
6170 </equal>
6171 <equal>
6172 <clip pos="5" part="lem"/>
6173 <lit v="adj_nom"/>
6174 </equal>
6175 <equal>
6176 <clip pos="5" part="lem"/>
6177 <lit v="nom_adj"/>
6178 </equal>
6181 </or>
6182 <equal>
6183 <clip pos="5" part="nbr"/>
6184 <lit-tag v="pl"/>
6185 </equal>
6186 </and>
6187 </test>
6188 <out>
6189 <b/>
6190 <chunk>
6191 <lit v="partitiu"/>
6192 <lit-tag v="part"/>
6193 <lit v="{^"/>
6194 <get-case-from pos="5">
6195 <lit v="de"/>
6196 </get-case-from>
6197 <lit-tag v="pr"/>
6198 <lit v="$ ^"/>
6199 <get-case-from pos="5">
6200 <lit v="le"/>
6201 </get-case-from>
6202 <lit-tag v="det.def.mf.pl"/>
6203 <lit v="$}"/>
6204 </chunk>
6206 </out>
6207 </when>
6208 </choose>
6209 <choose>
6210 <when>
6211 <test>
6212 <and>
6213 <or>
6214 <equal>
6215 <clip pos="5" part="lem"/>
6216 <lit v="part"/>
6217 </equal>
6218 <equal>
6219 <clip pos="5" part="lem"/>
6220 <lit v="partadj_nom"/>
6221 </equal>
6222 <equal>
6223 <clip pos="5" part="lem"/>
6224 <lit v="partnom_adj"/>
6225 </equal>
6226 </or>
6227 <equal>
6228 <clip pos="5" part="nbr"/>
6229 <lit-tag v="sg"/>
6230 </equal>
6231 </and>
6232 </test>
6233 <out>
6234 <b/>
6235 <chunk>
6237 <lit v="partitiu"/>
6238 <lit-tag v="part"/>
6239 <lit v="{^"/>
6240 <get-case-from pos="5">
6241 <lit v="de"/>
6242 </get-case-from>
6243 <lit-tag v="pr"/>
6244 <lit v="$ ^"/>
6245 <get-case-from pos="5">
6246 <lit v="le"/>
6247 </get-case-from>
6248 <lit-tag v="det.def"/>
6249 <clip pos="5" part="gen"/>
6250 <lit-tag v="sg"/>
6251 <lit v="$}"/>
6252 </chunk>
6253 </out>
6254 </when>
6255 </choose>
6257 <out>
6258 <b pos="4"/>
6259 <chunk>
6260 <clip pos="5" part="lem"/>
6261 <clip pos="5" part="tags"/>
6262 <clip pos="5" part="chcontent"/>
6263 </chunk>
6264 </out>
6265 </action>
6266 </rule>
6268 <rule comment="REGLA: SN sprep vbcop SN querel SV">
6269 <pattern>
6270 <pattern-item n="SN"/>
6271 <pattern-item n="pr"/>
6272 <pattern-item n="SN"/>
6273 <pattern-item n="vbcop"/>
6274 <pattern-item n="SN"/>
6275 <pattern-item n="QUEREL"/>
6276 <pattern-item n="SV"/>
6277 </pattern>
6278 <action>
6279 <call-macro n="assigna_gen_nbr">
6280 <with-param pos="1"/>
6281 </call-macro>
6282 <call-macro n="assigna_gen_nbr">
6283 <with-param pos="3"/>
6284 </call-macro>
6285 <choose>
6286 <when>
6287 <test>
6288 <or>
6289 <and>
6290 <equal caseless="yes">
6291 <clip pos="1" part="lem"/>
6292 <lit v="prnperssubj"/>
6293 </equal>
6294 <equal>
6295 <clip pos="4" part="pers"/>
6296 <clip pos="1" part="pers"/>
6297 </equal>
6298 <equal>
6299 <clip pos="4" part="nbr"/>
6300 <clip pos="1" part="nbr"/>
6301 </equal>
6302 </and>
6303 <and>
6304 <not>
6305 <equal caseless="yes">
6306 <clip pos="1" part="lem"/>
6307 <lit v="prnperssubj"/>
6308 </equal>
6309 </not>
6310 <equal>
6311 <clip pos="4" part="pers"/>
6312 <lit-tag v="p3"/>
6313 </equal>
6314 <equal>
6315 <clip pos="4" part="nbr"/>
6316 <clip pos="1" part="nbr"/>
6317 </equal>
6318 </and>
6319 </or>
6320 </test>
6321 <out>
6322 <chunk>
6323 <clip pos="1" part="lem"/>
6324 <clip pos="1" part="tags"/>
6325 <clip pos="1" part="chcontent"/>
6326 </chunk>
6327 <b pos="1"/>
6328 <chunk>
6329 <clip pos="2" part="lem"/>
6330 <clip pos="2" part="tags"/>
6331 <clip pos="2" part="chcontent"/>
6332 </chunk>
6333 <b pos="2"/>
6334 <chunk>
6335 <clip pos="3" part="lem"/>
6336 <clip pos="3" part="tags"/>
6337 <clip pos="3" part="chcontent"/>
6338 </chunk>
6339 <b pos="3"/>
6340 <chunk>
6341 <clip pos="4" part="lem"/>
6342 <clip pos="4" part="tags"/>
6343 <clip pos="4" part="chcontent"/>
6344 </chunk>
6345 </out>
6346 </when>
6347 <otherwise>
6348 <out>
6349 <chunk>
6350 <clip pos="1" part="lem"/>
6351 <clip pos="1" part="tags"/>
6352 <clip pos="1" part="chcontent"/>
6353 </chunk>
6354 <b pos="1"/>
6355 <chunk>
6356 <clip pos="2" part="lem"/>
6357 <clip pos="2" part="tags"/>
6358 <clip pos="2" part="chcontent"/>
6359 </chunk>
6360 <b pos="2"/>
6361 <chunk>
6362 <clip pos="3" part="lem"/>
6363 <clip pos="3" part="tags"/>
6364 <clip pos="3" part="chcontent"/>
6365 </chunk>
6366 <b pos="3"/>
6367 </out>
6368 <call-macro n="posa_subj2">
6369 <with-param pos="4"/>
6370 </call-macro>
6371 <out>
6372 <chunk>
6373 <clip pos="4" part="lem"/>
6374 <clip pos="4" part="tags"/>
6375 <clip pos="4" part="chcontent"/>
6376 </chunk>
6377 </out>
6378 </otherwise>
6379 </choose>
6380 <call-macro n="concord_sn">
6381 <with-param pos="1"/>
6382 <with-param pos="5"/>
6383 </call-macro>
6384 <choose>
6385 <when>
6386 <test>
6387 <and>
6388 <or>
6389 <equal>
6390 <clip pos="5" part="lem"/>
6391 <lit v="nom"/>
6392 </equal>
6394 <equal>
6395 <clip pos="5" part="lem"/>
6396 <lit v="part"/>
6397 </equal>
6398 <equal>
6399 <clip pos="5" part="lem"/>
6400 <lit v="adj_nom"/>
6401 </equal>
6402 <equal>
6403 <clip pos="5" part="lem"/>
6404 <lit v="nom_adj"/>
6405 </equal>
6408 </or>
6409 <equal>
6410 <clip pos="5" part="nbr"/>
6411 <lit-tag v="pl"/>
6412 </equal>
6413 </and>
6414 </test>
6415 <out>
6416 <b/>
6417 <chunk>
6418 <lit v="partitiu"/>
6419 <lit-tag v="part"/>
6420 <lit v="{^"/>
6421 <get-case-from pos="5">
6422 <lit v="de"/>
6423 </get-case-from>
6424 <lit-tag v="pr"/>
6425 <lit v="$ ^"/>
6426 <get-case-from pos="5">
6427 <lit v="le"/>
6428 </get-case-from>
6429 <lit-tag v="det.def.mf.pl"/>
6430 <lit v="$}"/>
6431 </chunk>
6432 </out>
6433 </when>
6434 </choose>
6435 <choose>
6436 <when>
6437 <test>
6438 <and>
6439 <or>
6440 <equal>
6441 <clip pos="5" part="lem"/>
6442 <lit v="part"/>
6443 </equal>
6444 <equal>
6445 <clip pos="5" part="lem"/>
6446 <lit v="partadj_nom"/>
6447 </equal>
6448 <equal>
6449 <clip pos="5" part="lem"/>
6450 <lit v="partnom_adj"/>
6451 </equal>
6452 </or>
6453 <equal>
6454 <clip pos="5" part="nbr"/>
6455 <lit-tag v="sg"/>
6456 </equal>
6457 </and>
6458 </test>
6459 <out>
6460 <b/>
6461 <chunk>
6463 <lit v="partitiu"/>
6464 <lit-tag v="part"/>
6465 <lit v="{^"/>
6466 <get-case-from pos="5">
6467 <lit v="de"/>
6468 </get-case-from>
6469 <lit-tag v="pr"/>
6470 <lit v="$ ^"/>
6471 <get-case-from pos="5">
6472 <lit v="le"/>
6473 </get-case-from>
6474 <lit-tag v="det.def"/>
6475 <clip pos="5" part="gen"/>
6476 <lit-tag v="sg"/>
6477 <lit v="$}"/>
6478 </chunk>
6479 </out>
6480 </when>
6481 </choose>
6482 <out>
6483 <b pos="4"/>
6484 <chunk>
6485 <clip pos="5" part="lem"/>
6486 <clip pos="5" part="tags"/>
6487 <clip pos="5" part="chcontent"/>
6488 </chunk>
6489 </out>
6490 <choose> <!--mirem si el SN és el subj de la subordinada-->
6491 <when>
6492 <test>
6493 <or>
6494 <and>
6495 <equal caseless="yes">
6496 <clip pos="5" part="lem"/>
6497 <lit v="prnperssubj"/>
6498 </equal>
6499 <equal>
6500 <clip pos="7" part="pers"/>
6501 <clip pos="5" part="pers"/>
6502 </equal>
6503 <equal>
6504 <clip pos="7" part="nbr"/>
6505 <clip pos="5" part="nbr"/>
6506 </equal>
6507 </and>
6508 <and>
6509 <not>
6510 <equal caseless="yes">
6511 <clip pos="5" part="lem"/>
6512 <lit v="prnperssubj"/>
6513 </equal>
6514 </not>
6515 <equal>
6516 <clip pos="7" part="pers"/>
6517 <lit-tag v="p3"/>
6518 </equal>
6519 <equal>
6520 <clip pos="7" part="nbr"/>
6521 <clip pos="1" part="nbr"/>
6522 </equal>
6523 </and>
6524 </or>
6525 </test>
6526 <out> <!--si és que sí, el rel serà "qui" i no "que"-->
6527 <b pos="5"/>
6528 <chunk>
6529 <lit v="qui"/>
6530 <clip pos="6" part="tags"/>
6531 <clip pos="6" part="chcontent"/>
6532 </chunk>
6533 <b pos="6"/>
6534 <chunk>
6535 <clip pos="7" part="lem"/>
6536 <clip pos="7" part="tags"/>
6537 <clip pos="7" part="chcontent"/>
6538 </chunk>
6539 </out>
6540 </when>
6541 <otherwise><!--si és que no, el rel serà "que" i caldrà posar subjecte al verb-->
6542 <out>
6543 <b pos="5"/>
6544 <chunk>
6545 <clip pos="6" part="lem"/>
6546 <clip pos="6" part="tags"/>
6547 <clip pos="6" part="chcontent"/>
6548 </chunk>
6549 <b pos="6"/>
6550 </out>
6551 <call-macro n="posa_subj2">
6552 <with-param pos="7"/>
6553 </call-macro>
6554 <out>
6555 <chunk>
6556 <clip pos="7" part="lem"/>
6557 <clip pos="7" part="tags"/>
6558 <clip pos="7" part="chcontent"/>
6559 </chunk>
6560 </out>
6561 </otherwise>
6562 </choose>
6563 </action>
6564 </rule>
6566 <rule comment="REGLA: SN sprep vbcop adv SN">
6567 <pattern>
6568 <pattern-item n="SN"/>
6569 <pattern-item n="pr"/>
6570 <pattern-item n="SN"/>
6571 <pattern-item n="vbcop"/>
6572 <pattern-item n="adv"/>
6573 <pattern-item n="SN"/>
6574 </pattern>
6575 <action>
6576 <call-macro n="assigna_gen_nbr">
6577 <with-param pos="1"/>
6578 </call-macro>
6579 <call-macro n="assigna_gen_nbr">
6580 <with-param pos="3"/>
6581 </call-macro>
6582 <choose>
6583 <when>
6584 <test>
6585 <or>
6586 <and>
6587 <equal caseless="yes">
6588 <clip pos="1" part="lem"/>
6589 <lit v="prnperssubj"/>
6590 </equal>
6591 <equal>
6592 <clip pos="4" part="pers"/>
6593 <clip pos="1" part="pers"/>
6594 </equal>
6595 <equal>
6596 <clip pos="4" part="nbr"/>
6597 <clip pos="1" part="nbr"/>
6598 </equal>
6599 </and>
6600 <and>
6601 <not>
6602 <equal caseless="yes">
6603 <clip pos="1" part="lem"/>
6604 <lit v="prnperssubj"/>
6605 </equal>
6606 </not>
6607 <equal>
6608 <clip pos="4" part="pers"/>
6609 <lit-tag v="p3"/>
6610 </equal>
6611 <equal>
6612 <clip pos="4" part="nbr"/>
6613 <clip pos="1" part="nbr"/>
6614 </equal>
6615 </and>
6616 </or>
6617 </test>
6618 <out>
6619 <chunk>
6620 <clip pos="1" part="lem"/>
6621 <clip pos="1" part="tags"/>
6622 <clip pos="1" part="chcontent"/>
6623 </chunk>
6624 <b pos="1"/>
6625 <chunk>
6626 <clip pos="2" part="lem"/>
6627 <clip pos="2" part="tags"/>
6628 <clip pos="2" part="chcontent"/>
6629 </chunk>
6630 <b pos="2"/>
6631 <chunk>
6632 <clip pos="3" part="lem"/>
6633 <clip pos="3" part="tags"/>
6634 <clip pos="3" part="chcontent"/>
6635 </chunk>
6636 <b pos="3"/>
6637 <chunk>
6638 <clip pos="4" part="lem"/>
6639 <clip pos="4" part="tags"/>
6640 <clip pos="4" part="chcontent"/>
6641 </chunk>
6642 </out>
6643 </when>
6644 <otherwise>
6645 <out>
6646 <chunk>
6647 <clip pos="1" part="lem"/>
6648 <clip pos="1" part="tags"/>
6649 <clip pos="1" part="chcontent"/>
6650 </chunk>
6651 <b pos="1"/>
6652 <chunk>
6653 <clip pos="2" part="lem"/>
6654 <clip pos="2" part="tags"/>
6655 <clip pos="2" part="chcontent"/>
6656 </chunk>
6657 <b pos="2"/>
6658 <chunk>
6659 <clip pos="3" part="lem"/>
6660 <clip pos="3" part="tags"/>
6661 <clip pos="3" part="chcontent"/>
6662 </chunk>
6663 <b pos="3"/>
6664 </out>
6665 <call-macro n="posa_subj2">
6666 <with-param pos="4"/>
6667 </call-macro>
6668 <out>
6669 <chunk>
6670 <clip pos="4" part="lem"/>
6671 <clip pos="4" part="tags"/>
6672 <clip pos="4" part="chcontent"/>
6673 </chunk>
6674 </out>
6675 </otherwise>
6676 </choose>
6677 <call-macro n="concord_sn">
6678 <with-param pos="1"/>
6679 <with-param pos="6"/>
6680 </call-macro>
6681 <out>
6682 <b pos="4"/>
6683 <chunk>
6684 <clip pos="5" part="lem"/>
6685 <clip pos="5" part="tags"/>
6686 <clip pos="5" part="chcontent"/>
6687 </chunk>
6688 <b pos="5"/>
6689 </out>
6690 <choose>
6691 <when>
6692 <test>
6693 <and>
6694 <or>
6695 <equal>
6696 <clip pos="6" part="lem"/>
6697 <lit v="nom"/>
6698 </equal>
6700 <equal>
6701 <clip pos="6" part="lem"/>
6702 <lit v="part"/>
6703 </equal>
6704 <equal>
6705 <clip pos="6" part="lem"/>
6706 <lit v="adj_nom"/>
6707 </equal>
6708 <equal>
6709 <clip pos="6" part="lem"/>
6710 <lit v="nom_adj"/>
6711 </equal>
6713 </or>
6714 <equal>
6715 <clip pos="6" part="nbr"/>
6716 <lit-tag v="pl"/>
6717 </equal>
6718 </and>
6719 </test>
6720 <out>
6721 <chunk>
6722 <lit v="partitiu"/>
6723 <lit-tag v="part"/>
6724 <lit v="{^"/>
6725 <get-case-from pos="6">
6726 <lit v="de"/>
6727 </get-case-from>
6728 <lit-tag v="pr"/>
6729 <lit v="$ ^"/>
6730 <get-case-from pos="6">
6731 <lit v="le"/>
6732 </get-case-from>
6733 <lit-tag v="det.def.mf.pl"/>
6734 <lit v="$}"/>
6735 </chunk>
6736 <b/>
6737 </out>
6738 </when>
6739 </choose>
6740 <choose>
6741 <when>
6742 <test>
6743 <and>
6744 <or>
6745 <equal>
6746 <clip pos="6" part="lem"/>
6747 <lit v="part"/>
6748 </equal>
6749 <equal>
6750 <clip pos="6" part="lem"/>
6751 <lit v="partadj_nom"/>
6752 </equal>
6753 <equal>
6754 <clip pos="6" part="lem"/>
6755 <lit v="partnom_adj"/>
6756 </equal>
6757 </or>
6758 <equal>
6759 <clip pos="6" part="nbr"/>
6760 <lit-tag v="sg"/>
6761 </equal>
6762 </and>
6763 </test>
6764 <out>
6765 <chunk>
6767 <lit v="partitiu"/>
6768 <lit-tag v="part"/>
6769 <lit v="{^"/>
6770 <get-case-from pos="6">
6771 <lit v="de"/>
6772 </get-case-from>
6773 <lit-tag v="pr"/>
6774 <lit v="$ ^"/>
6775 <get-case-from pos="6">
6776 <lit v="le"/>
6777 </get-case-from>
6778 <lit-tag v="det.def"/>
6779 <clip pos="6" part="gen"/>
6780 <lit-tag v="sg"/>
6781 <lit v="$}"/>
6782 </chunk>
6783 <b/>
6784 </out>
6785 </when>
6786 </choose>
6787 <out>
6788 <chunk>
6789 <clip pos="6" part="lem"/>
6790 <clip pos="6" part="tags"/>
6791 <clip pos="6" part="chcontent"/>
6792 </chunk>
6793 </out>
6794 </action>
6795 </rule>
6798 <rule comment="REGLA: SN sprep vbcop adv SN querel SV">
6799 <pattern>
6800 <pattern-item n="SN"/>
6801 <pattern-item n="pr"/>
6802 <pattern-item n="SN"/>
6803 <pattern-item n="vbcop"/>
6804 <pattern-item n="adv"/>
6805 <pattern-item n="SN"/>
6806 <pattern-item n="QUEREL"/>
6807 <pattern-item n="SV"/>
6808 </pattern>
6809 <action>
6810 <call-macro n="assigna_gen_nbr">
6811 <with-param pos="1"/>
6812 </call-macro>
6813 <call-macro n="assigna_gen_nbr">
6814 <with-param pos="3"/>
6815 </call-macro>
6816 <choose>
6817 <when>
6818 <test>
6819 <or>
6820 <and>
6821 <equal caseless="yes">
6822 <clip pos="1" part="lem"/>
6823 <lit v="prnperssubj"/>
6824 </equal>
6825 <equal>
6826 <clip pos="4" part="pers"/>
6827 <clip pos="1" part="pers"/>
6828 </equal>
6829 <equal>
6830 <clip pos="4" part="nbr"/>
6831 <clip pos="1" part="nbr"/>
6832 </equal>
6833 </and>
6834 <and>
6835 <not>
6836 <equal caseless="yes">
6837 <clip pos="1" part="lem"/>
6838 <lit v="prnperssubj"/>
6839 </equal>
6840 </not>
6841 <equal>
6842 <clip pos="4" part="pers"/>
6843 <lit-tag v="p3"/>
6844 </equal>
6845 <equal>
6846 <clip pos="4" part="nbr"/>
6847 <clip pos="1" part="nbr"/>
6848 </equal>
6849 </and>
6850 </or>
6851 </test>
6852 <out>
6853 <chunk>
6854 <clip pos="1" part="lem"/>
6855 <clip pos="1" part="tags"/>
6856 <clip pos="1" part="chcontent"/>
6857 </chunk>
6858 <b pos="1"/>
6859 <chunk>
6860 <clip pos="2" part="lem"/>
6861 <clip pos="2" part="tags"/>
6862 <clip pos="2" part="chcontent"/>
6863 </chunk>
6864 <b pos="2"/>
6865 <chunk>
6866 <clip pos="3" part="lem"/>
6867 <clip pos="3" part="tags"/>
6868 <clip pos="3" part="chcontent"/>
6869 </chunk>
6870 <b pos="3"/>
6871 <chunk>
6872 <clip pos="4" part="lem"/>
6873 <clip pos="4" part="tags"/>
6874 <clip pos="4" part="chcontent"/>
6875 </chunk>
6876 </out>
6877 </when>
6878 <otherwise>
6879 <out>
6880 <chunk>
6881 <clip pos="1" part="lem"/>
6882 <clip pos="1" part="tags"/>
6883 <clip pos="1" part="chcontent"/>
6884 </chunk>
6885 <b pos="1"/>
6886 <chunk>
6887 <clip pos="2" part="lem"/>
6888 <clip pos="2" part="tags"/>
6889 <clip pos="2" part="chcontent"/>
6890 </chunk>
6891 <b pos="2"/>
6892 <chunk>
6893 <clip pos="3" part="lem"/>
6894 <clip pos="3" part="tags"/>
6895 <clip pos="3" part="chcontent"/>
6896 </chunk>
6897 <b pos="3"/>
6898 </out>
6899 <call-macro n="posa_subj2">
6900 <with-param pos="4"/>
6901 </call-macro>
6902 <out>
6903 <chunk>
6904 <clip pos="4" part="lem"/>
6905 <clip pos="4" part="tags"/>
6906 <clip pos="4" part="chcontent"/>
6907 </chunk>
6908 </out>
6909 </otherwise>
6910 </choose>
6911 <call-macro n="concord_sn">
6912 <with-param pos="1"/>
6913 <with-param pos="6"/>
6914 </call-macro>
6915 <out>
6916 <b pos="4"/>
6917 <chunk>
6918 <clip pos="5" part="lem"/>
6919 <clip pos="5" part="tags"/>
6920 <clip pos="5" part="chcontent"/>
6921 </chunk>
6922 <b pos="5"/>
6923 </out>
6924 <choose>
6925 <when>
6926 <test>
6927 <and>
6928 <or>
6929 <equal>
6930 <clip pos="6" part="lem"/>
6931 <lit v="nom"/>
6932 </equal>
6934 <equal>
6935 <clip pos="6" part="lem"/>
6936 <lit v="part"/>
6937 </equal>
6938 <equal>
6939 <clip pos="6" part="lem"/>
6940 <lit v="adj_nom"/>
6941 </equal>
6942 <equal>
6943 <clip pos="6" part="lem"/>
6944 <lit v="nom_adj"/>
6945 </equal>
6948 </or>
6949 <equal>
6950 <clip pos="6" part="nbr"/>
6951 <lit-tag v="pl"/>
6952 </equal>
6953 </and>
6954 </test>
6955 <out>
6956 <chunk>
6957 <lit v="partitiu"/>
6958 <lit-tag v="part"/>
6959 <lit v="{^"/>
6960 <get-case-from pos="6">
6961 <lit v="de"/>
6962 </get-case-from>
6963 <lit-tag v="pr"/>
6964 <lit v="$ ^"/>
6965 <get-case-from pos="6">
6966 <lit v="le"/>
6967 </get-case-from>
6968 <lit-tag v="det.def.mf.pl"/>
6969 <lit v="$}"/>
6970 </chunk>
6971 <b/>
6972 </out>
6973 </when>
6974 </choose>
6975 <choose>
6976 <when>
6977 <test>
6978 <and>
6979 <or>
6980 <equal>
6981 <clip pos="6" part="lem"/>
6982 <lit v="part"/>
6983 </equal>
6984 <equal>
6985 <clip pos="6" part="lem"/>
6986 <lit v="partadj_nom"/>
6987 </equal>
6988 <equal>
6989 <clip pos="6" part="lem"/>
6990 <lit v="partnom_adj"/>
6991 </equal>
6992 </or>
6993 <equal>
6994 <clip pos="6" part="nbr"/>
6995 <lit-tag v="sg"/>
6996 </equal>
6997 </and>
6998 </test>
6999 <out>
7000 <chunk>
7002 <lit v="partitiu"/>
7003 <lit-tag v="part"/>
7004 <lit v="{^"/>
7005 <get-case-from pos="6">
7006 <lit v="de"/>
7007 </get-case-from>
7008 <lit-tag v="pr"/>
7009 <lit v="$ ^"/>
7010 <get-case-from pos="6">
7011 <lit v="le"/>
7012 </get-case-from>
7013 <lit-tag v="det.def"/>
7014 <clip pos="6" part="gen"/>
7015 <lit-tag v="sg"/>
7016 <lit v="$}"/>
7017 </chunk>
7018 <b/>
7019 </out>
7020 </when>
7021 </choose>
7022 <out>
7023 <chunk>
7024 <clip pos="6" part="lem"/>
7025 <clip pos="6" part="tags"/>
7026 <clip pos="6" part="chcontent"/>
7027 </chunk>
7028 </out>
7029 <choose> <!--mirem si el SN és el subj de la subordinada-->
7030 <when>
7031 <test>
7032 <or>
7033 <and>
7034 <equal caseless="yes">
7035 <clip pos="6" part="lem"/>
7036 <lit v="prnperssubj"/>
7037 </equal>
7038 <equal>
7039 <clip pos="8" part="pers"/>
7040 <clip pos="6" part="pers"/>
7041 </equal>
7042 <equal>
7043 <clip pos="8" part="nbr"/>
7044 <clip pos="6" part="nbr"/>
7045 </equal>
7046 </and>
7047 <and>
7048 <not>
7049 <equal caseless="yes">
7050 <clip pos="6" part="lem"/>
7051 <lit v="prnperssubj"/>
7052 </equal>
7053 </not>
7054 <equal>
7055 <clip pos="8" part="pers"/>
7056 <lit-tag v="p3"/>
7057 </equal>
7058 <equal>
7059 <clip pos="8" part="nbr"/>
7060 <clip pos="1" part="nbr"/>
7061 </equal>
7062 </and>
7063 </or>
7064 </test>
7065 <out> <!--si és que sí, el rel serà "qui" i no "que"-->
7066 <b pos="6"/>
7067 <chunk>
7068 <lit v="qui"/>
7069 <clip pos="7" part="tags"/>
7070 <clip pos="7" part="chcontent"/>
7071 </chunk>
7072 <b pos="7"/>
7073 <chunk>
7074 <clip pos="8" part="lem"/>
7075 <clip pos="8" part="tags"/>
7076 <clip pos="8" part="chcontent"/>
7077 </chunk>
7078 </out>
7079 </when>
7080 <otherwise><!--si és que no, el rel serà "que" i caldrà posar subjecte al verb-->
7081 <out>
7082 <b pos="6"/>
7083 <chunk>
7084 <clip pos="7" part="lem"/>
7085 <clip pos="7" part="tags"/>
7086 <clip pos="7" part="chcontent"/>
7087 </chunk>
7088 <b pos="7"/>
7089 </out>
7090 <call-macro n="posa_subj2">
7091 <with-param pos="8"/>
7092 </call-macro>
7093 <out>
7094 <chunk>
7095 <clip pos="8" part="lem"/>
7096 <clip pos="8" part="tags"/>
7097 <clip pos="8" part="chcontent"/>
7098 </chunk>
7099 </out>
7100 </otherwise>
7101 </choose>
7102 </action>
7103 </rule>
7107 <rule> <!-- REGLA: reset variables-->
7108 <pattern>
7109 <pattern-item n="punt"/>
7110 </pattern>
7111 <action>
7112 <let>
7113 <var n="nombre"/>
7114 <lit-tag v="sg"/>
7115 </let>
7116 <let>
7117 <var n="nombre_subj"/>
7118 <lit v="no_assignat"/>
7119 </let>
7120 <let>
7121 <var n="pers_subj"/>
7122 <lit-tag v="p3"/>
7123 </let>
7124 <out>
7125 <chunk>
7126 <clip pos="1" part="whole"/>
7127 </chunk>
7128 </out>
7129 </action>
7130 </rule>
7134 </section-rules>
7135 </interchunk>