One more
[apertium.git] / apertium-oc-ca / apertium-oc-ca.trules-ca-oc.xml
blob916859e6f7b822d9587fdec5a76cc0cb63e41a7c
1 <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- nxml -*- -->
2 <transfer>
3 <section-def-cats>
4      <def-cat n="nom">
5           <cat-item tags="n.*"/>
6      </def-cat>
8      <def-cat n="npant">
9           <cat-item tags="np.ant"/>
10      </def-cat>
12      <def-cat n="nploc">
13           <cat-item tags="np.loc"/>
14      </def-cat>        
16      <def-cat n="det">          
17           <cat-item tags="det.*"/>
18           <cat-item tags="predet.*"/>
19       </def-cat>
21       <def-cat n="detdef">
22           <cat-item tags="det.def.*"/>
23       </def-cat>
24       
25       <def-cat n="predet">
26           <cat-item tags="predet.*"/>
27       </def-cat>
29       <def-cat n="adjec">          
30           <cat-item tags="adj.*"/>
31           <cat-item tags="vblex.pp.*"/>
32       </def-cat>
34       <def-cat n="adj">          
35           <cat-item tags="adj.*"/>
36       </def-cat>
38         <def-cat n="adv">
39                 <cat-item tags="adv"/>
40                 <cat-item tags="preadv"/>
41         </def-cat>
43         <def-cat n="prep">
44                 <cat-item tags="pr"/>
45         </def-cat>    
46      
47         <def-cat n="relat">
48                 <cat-item tags="rel.*"/>
49         </def-cat>
51         <def-cat n="prn">                         
52                 <cat-item tags="prn.tn.*"/>
53                 <cat-item tags="prn.itg.*"/>                    
54         </def-cat>
56         <def-cat n="prnenc">              
57                 <cat-item tags="prn.enc.*"/>
58         </def-cat>     
60         <def-cat n="prnpro">              
61                 <cat-item tags="prn.pro.*"/>
62         </def-cat>
64         <def-cat n="prnproref">                   
65                 <cat-item lemma="em" tags="prn.pro.p1.mf.sg"/>
66                 <cat-item lemma="et" tags="prn.pro.p2.mf.sg"/>
67                 <cat-item lemma="es" tags="prn.pro.ref.p3.mf.sp"/>
68                 <cat-item lemma="ens" tags="prn.pro.p1.mf.pl"/>
69                 <cat-item lemma="us" tags="prn.pro.p2.mf.pl"/>
70         </def-cat>
72         <def-cat n="verb">
73                 <cat-item tags="vblex.*"/>
74                 <cat-item tags="vbser.*"/>
75                 <cat-item tags="vbhaver.*"/>
76                 <cat-item tags="vbmod.*"/>
77         </def-cat>
79         <def-cat n="inf">
80                 <cat-item tags="vblex.inf"/>
81                 <cat-item tags="vbser.inf"/>
82                 <cat-item tags="vbhaver.inf"/>
83                 <cat-item tags="vbmod.inf"/>
84         </def-cat>
85         <def-cat n="gerundi">
86                 <cat-item tags="vblex.ger"/>
87                 <cat-item tags="vbser.ger"/>
88                 <cat-item tags="vbhaver.ger"/>
89                 <cat-item tags="vbmod.ger"/>
90         </def-cat>
92         <def-cat n="pp">
93                 <cat-item tags="vblex.pp.*"/>
94                 <cat-item tags="vbser.pp.*"/>
95                 <cat-item tags="vbhaver.pp.*"/>
96                 <cat-item tags="vbmod.pp.*"/>
97         </def-cat>
98         
99         <def-cat n="num">
100                 <cat-item tags="num.*"/>
101         </def-cat>
103         <def-cat n="anar">
104                 <cat-item lemma="anar" tags="vblex.pri.*"/>
105         </def-cat>
106          
107         <def-cat n="estar">
108                 <cat-item lemma="estar" tags="vblex.pri.*"/>
109         </def-cat>
111         <def-cat n="en">
112                 <cat-item lemma="en" tags="pr"/>
113         </def-cat>
115         <def-cat n="a">
116                 <cat-item lemma="a" tags="pr"/>
117         </def-cat>
119         <def-cat n="per">
120                 <cat-item lemma="per" tags="pr"/>
121         </def-cat>
123         <def-cat n="haver">
124                 <cat-item lemma="haver" tags="vbhaver.*"/>
125         </def-cat>
126         <def-cat n="nosaltres">
127                 <cat-item lemma="nosaltres" tags="prn.tn.*"/>
128                 <cat-item lemma="vosaltres" tags="prn.tn.*"/>
129         </def-cat>
131         <def-cat n="sent">
132                 <cat-item tags="sent"/>
133         </def-cat>
135           <def-cat n="nloc">
136                   <cat-item lemma="món" tags="n.*"/>
137                   <cat-item lemma="ascensor" tags="n.*"/>
138                   <cat-item lemma="carrer" tags="n.*"/>
139                   <cat-item lemma="plaça" tags="n.*"/>
140                   <cat-item lemma="mercat" tags="n.*"/>
141                   <cat-item lemma="zona" tags="n.*"/>
142                   <cat-item lemma="àrea" tags="n.*"/>
143                   <cat-item lemma="comarca" tags="n.*"/>
144                   <cat-item lemma="barri" tags="n.*"/>
145                   <cat-item lemma="ciutat" tags="n.*"/>
146                   <cat-item lemma="comarca" tags="n.*"/>
147                   <cat-item lemma="província" tags="n.*"/>
148                   <cat-item lemma="illa" tags="n.*"/>
149                   <cat-item lemma="país" tags="n.*"/>
150                   <cat-item lemma="planeta" tags="n.*"/>
151                   <cat-item lemma="parlament" tags="n.*"/>
152                   <cat-item lemma="casa" tags="n.*"/>
153                   <cat-item lemma="roba" tags="n.*"/>
154                         <cat-item lemma="escola" tags="n.*"/>
155                         <cat-item lemma="congrés" tags="n.*"/>
156                         <cat-item lemma="domicili" tags="n.*"/>
157                         <cat-item lemma="urbanització" tags="n.*"/>
158                         <cat-item lemma="presó" tags="n.*"/>
159                         <cat-item lemma="fàbrica" tags="n.*"/>
160                         <cat-item lemma="muntanya" tags="n.*"/>
161                         <cat-item lemma="cambra" tags="n.*"/>
162                         <cat-item lemma="habitació" tags="n.*"/>
163                         <cat-item lemma="vall" tags="n.*"/>
164                         <cat-item lemma="frontera" tags="n.*"/>
165                         <cat-item lemma="castell" tags="n.*"/>
166                         <cat-item lemma="sala" tags="n.*"/>
167                         <cat-item lemma="església" tags="n.*"/>
168                         <cat-item lemma="festa" tags="n.*"/>
169                         <cat-item lemma="esplanada" tags="n.*"/>
170                         <cat-item lemma="mercat" tags="n.*"/>
171                         <cat-item lemma="internet" tags="n.*"/>
172                         <cat-item lemma="ajuntament" tags="n.*"/>
173                         <cat-item lemma="polígon" tags="n.*"/>
174                         <cat-item lemma="auditori" tags="n.*"/>
175                         <cat-item lemma="estranger" tags="n.*"/>
176                         <cat-item lemma="poble" tags="n.*"/>
177                         <cat-item lemma="portal" tags="n.*"/>
178                         <cat-item lemma="canal" tags="n.*"/>
179                         <cat-item lemma="terra" tags="n.*"/>
180                         <cat-item lemma="torre" tags="n.*"/>
181                         <cat-item lemma="pati" tags="n.*"/>
182                         <cat-item lemma="programació" tags="n.*"/>
183                         <cat-item lemma="programa" tags="n.*"/>
184                         <cat-item lemma="aula" tags="n.*"/>
185                         <cat-item lemma="edifici" tags="n.*"/>
186                         <cat-item lemma="hospital" tags="n.*"/>
187                         <cat-item lemma="cambra" tags="n.*"/>
188                         <cat-item lemma="internet" tags="n.*"/>
189                         <cat-item lemma="programari" tags="n.*"/>
190                         <cat-item lemma="principat" tags="n.*"/>
192      </def-cat>
193           
194           <def-cat n="partdia">
195                   <cat-item lemma="matí" tags="n.*"/>
196                   <cat-item lemma="migidia" tags="n.*"/>
197                   <cat-item lemma="tarda" tags="n.*"/>
198                   <cat-item lemma="vespre" tags="n.*"/>
199                   <cat-item lemma="nit" tags="n.*"/>
200           </def-cat>
201           
202           <def-cat n="mes">
203                   <cat-item lemma="gener" tags="n.*"/>
204                   <cat-item lemma="febrer" tags="n.*"/>
205                   <cat-item lemma="març" tags="n.*"/>
206                   <cat-item lemma="abril" tags="n.*"/>
207                   <cat-item lemma="maig" tags="n.*"/>
208                   <cat-item lemma="juny" tags="n.*"/>
209                   <cat-item lemma="juliol" tags="n.*"/>
210                   <cat-item lemma="agost" tags="n.*"/>
211                   <cat-item lemma="setembre" tags="n.*"/>
212                   <cat-item lemma="octubre" tags="n.*"/>
213                   <cat-item lemma="novembre" tags="n.*"/>
214                   <cat-item lemma="desembre" tags="n.*"/>
215           </def-cat>
216           
217 </section-def-cats>
219 <section-def-attrs>
221 <def-attr n="a_nom">
222           <attr-item tags="n"/>
223           <attr-item tags="n.acr"/>
224      </def-attr>
226      <def-attr n="a_npant">
227           <attr-item tags="np.ant"/>
228      </def-attr>
230      <def-attr n="a_nploc">
231           <attr-item tags="np.loc"/>
232      </def-attr>        
234      <def-attr n="a_det">          
235           <attr-item tags="det.def"/>
236           <attr-item tags="det.ind"/>
237           <attr-item tags="det.dem"/>
238           <attr-item tags="det.pos"/>
239           <attr-item tags="predet"/>
240       </def-attr>
242       <def-attr n="a_detdef">
243           <attr-item tags="det.def"/>
244       </def-attr>
245       
246       <def-attr n="a_predet">
247           <attr-item tags="predet"/>
248       </def-attr>
250       <def-attr n="a_adjec">          
251           <attr-item tags="adj.ind"/>
252           <attr-item tags="adj.sup"/>
253           <attr-item tags="adj.itg"/>
254           <attr-item tags="adj.pos"/>
255           <attr-item tags="adj"/>
256           <attr-item tags="vblex.pp"/>
257       </def-attr>
259       <def-attr n="a_adj">          
260           <attr-item tags="adj.ind"/>
261           <attr-item tags="adj.sup"/>
262           <attr-item tags="adj.itg"/>
263           <attr-item tags="adj.pos"/>
264           <attr-item tags="adj"/>
265       </def-attr>
267       <def-attr n="a_adv">
268           <attr-item tags="adv"/>
269           <attr-item tags="preadv"/>
270       </def-attr>
272       <def-attr n="a_prep">
273           <attr-item tags="pr"/>
274       </def-attr>    
276      
278      <def-attr n="a_relat">
279           <attr-item tags="rel.adv"/>
280           <attr-item tags="rel.nn"/>
281           <attr-item tags="rel.aa"/>
282           <attr-item tags="rel.an"/>
283      </def-attr>
285      <def-attr n="a_prn">                         
286           <attr-item tags="prn.tn.p1"/>
287           <attr-item tags="prn.tn.p2"/>
288           <attr-item tags="prn.tn.p3"/>
289           <attr-item tags="prn.tn"/>     
290           <attr-item tags="prn.tn.ref.p3"/>      
291           <attr-item tags="prn.tn.pos"/>             
292           
293           <attr-item tags="prn.itg"/>                   
294      </def-attr>
296     <def-attr n="a_prnenc">               
297       <attr-item tags="prn.enc"/>
298       <attr-item tags="prn.enc.ref"/>
299       <attr-item tags="prn.enc.adv"/>
300      </def-attr>     
302     <def-attr n="a_prnpro">               
303       <attr-item tags="prn.pro"/>
304       <attr-item tags="prn.pro.ref"/>
305                 <attr-item tags="prn.pro.adv"/>
306      </def-attr>
308      <def-attr n="a_verb">
309           <attr-item tags="vblex"/>
310           <attr-item tags="vbser"/>
311           <attr-item tags="vbhaver"/>
312           <attr-item tags="vbmod"/>
313      </def-attr>
316      <def-attr n="a_inf">
317           <attr-item tags="vblex.inf"/>
318           <attr-item tags="vbser.inf"/>
319           <attr-item tags="vbhaver.inf"/>
320           <attr-item tags="vbmod.inf"/>
321      </def-attr>
322   
323      <def-attr n="a_pp">
324           <attr-item tags="vblex.pp"/>
325           <attr-item tags="vbser.pp"/>
326           <attr-item tags="vbhaver.pp"/>
327           <attr-item tags="vbmod.pp"/>
328      </def-attr>
329      
330     
331     <def-attr n="a_num">
332           <attr-item tags="num"/>
333     </def-attr>
335     <def-attr n="gen">
336           <attr-item tags="m"/>
337           <attr-item tags="f"/>
338           <attr-item tags="mf"/>
339           <attr-item tags="GD"/>
340           <attr-item tags="nt"/>
341       </def-attr>
343       <def-attr n="nbr">
344           <attr-item tags="sg"/>
345           <attr-item tags="pl"/>
346           <attr-item tags="sp"/>
347           <attr-item tags="ND"/>
348       </def-attr>
350       <def-attr n="persona">
351           <attr-item tags="p1"/>
352           <attr-item tags="p2"/>
353           <attr-item tags="p3"/>
354       </def-attr>
356       <def-attr n="tipoadv">
357           <attr-item tags="itg"/>     
358       </def-attr>
359     
360      
361       <def-attr n="tipoenc_pro">
362           <attr-item tags="ref.p3.mf.sp"/>  
363           <attr-item tags="p1.mf.sg"/>
364           <attr-item tags="p1.mf.pl"/>
365           <attr-item tags="p2.mf.sg"/>
366           <attr-item tags="p2.mf.pl"/>
367           <attr-item tags="p3.mf.sg"/>
368           <attr-item tags="p3.mf.pl"/>
369           <attr-item tags="p3.mf.sp"/> <!--incorrecte, tradueix "li<prn><enc><p3><mf><sp>" per "se", cal canviar diccionari ja que és li-ho<sg> i los-ho<pl> (dárselo)-->
370           <attr-item tags="p3.m.sg"/>
371           <attr-item tags="p3.m.pl"/>
372           <attr-item tags="p3.f.sg"/>
373           <attr-item tags="p3.f.pl"/>
374           <attr-item tags="p3.nt"/>
375                          <attr-item tags="adv"/>
376       </def-attr>
378       <def-attr n="temps">
379           <attr-item tags="inf"/>
380           <attr-item tags="ger"/>
381           <attr-item tags="pp"/>
382           <attr-item tags="pri"/>
383           <attr-item tags="ifi"/>
384           <attr-item tags="pii"/>
385           <attr-item tags="fti"/>
386           <attr-item tags="cni"/>
387           <attr-item tags="prs"/>
388           <attr-item tags="pis"/>
389           <attr-item tags="fts"/>
390           <attr-item tags="imp"/>
391        </def-attr>
393   
394 </section-def-attrs>
396 <section-def-vars>
397       <def-var n="uno"/>
398       <def-var n="genero"/>
399       <def-var n="numero"/>
400       <def-var n="concDet"/>
401       <def-var n="concAdj"/>
402       <def-var n="concPrimero"/>
403       <def-var n="concSegundo"/>
404       <def-var n="concTercero"/>
405       <def-var n="interrogativa"/>
406       <def-var n="exclamativa"/>
407                 <def-var n="tipusverb"/>
408 </section-def-vars>
409 <!--
410 <section-def-lists>
412   <def-list n="verbs_moviment">
413     <list-item v="anar"/>
414     <list-item v="traslladar"/>
415     <list-item v="viatjar"/>
416     <list-item v="emigrar"/>
417     <list-item v="inmigrar"/>
418     <list-item v="moure"/>
419     <list-item v="venir"/>
420     <list-item v="vindre"/>
421     <list-item v="eixir"/>
422     <list-item v="sortir"/>
423     <list-item v="entrar"/>
424     <list-item v="pujar"/>
425     <list-item v="baixar"/>
426     <list-item v="caminar"/>
427     <list-item v="dirigir"/>
428     <list-item v="apropar"/>
429     <list-item v="córrer"/>
430     <list-item v="portar"/>
431     <list-item v="passar"/>
432     <list-item v="tornar"/>
433     <list-item v="regressar"/>
434     <list-item v="arribar"/>
435     <list-item v="marxar"/>
436          <list-item v="enviar"/>
437    </def-list>
438         
439   <def-list n="verbs_estat">
440     <list-item v="conviure"/>
441     <list-item v="viure"/>
442     <list-item v="actuar"/>
443     <list-item v="allotjar"/>
444     <list-item v="assentar"/>
445     <list-item v="buscar"/>
446     <list-item v="celebrar"/>
447     <list-item v="centralitzar"/>
448     <list-item v="cercar"/>
449     <list-item v="col·locar"/>
450     <list-item v="concentrar"/>
451     <list-item v="desembocar"/>
452     <list-item v="endinsar"/>
453     <list-item v="establir"/>
454     <list-item v="estrenar"/>
455     <list-item v="excavar"/>
456     <list-item v="exercir"/>
457     <list-item v="existir"/>
458     <list-item v="exposar"/>
459     <list-item v="ficar"/>
460     <list-item v="inaugurar"/>
461     <list-item v="incloure"/>
462     <list-item v="indagar"/>
463     <list-item v="ingressar"/>
464     <list-item v="inserir"/>
465     <list-item v="instal·lar"/>
466     <list-item v="introduir"/>
467     <list-item v="irrompre"/>
468     <list-item v="penetrar"/>
469     <list-item v="pescar"/>
470     <list-item v="publicar"/>
471     <list-item v="reunir"/>
472     <list-item v="romandre"/>
473     <list-item v="treballar"/>
474     <list-item v="trobar"/>
475     <list-item v="ubicar"/> 
476     <list-item v="estudiar"/> 
477   </def-list>
479 </section-def-lists>-->
481 <section-def-macros>
483   <def-macro n="f_bcond" npar="1"><!--Per mirar si el blanc conté o no format -->
484         <choose>
485           <when>
486             <test>
487               <not>
488                 <equal>
489                   <b pos="1"/>
490                   <lit v=" "/>
491                 </equal>
492               </not>
493             </test>
494             <out>
495               <b pos="1"/>
496             </out>
497           </when>           
498         </choose>
499      </def-macro>
500           
501           <def-macro n="f_gerundi" npar="1"><!-- converteix el gerundi per un "en tot inf"-->
502                   
503                   <choose>
504                           <when> 
505                                   <test>
506                                           <equal>
507                                                   <clip pos="1" side="tl" part="temps"/>
508                                                   <lit-tag v="ger"/>
509                                           </equal>
510                                   </test>
511                                   <let>
512                                           <clip pos="1" side="tl" part="temps"/>
513                                           <lit-tag v="inf"/>
514                                   </let>
515                                   <out>
516                                           <lu>
517                                                   <get-case-from pos="1">
518                                                           <lit v="en"/>
519                                                   </get-case-from>
520                                                   <lit-tag v="pr"/>
521                                           </lu>
522                                           <b/>
523                                           <lu>
524                                                   <get-case-from pos="1">
525                                                           <lit v="tot"/>
526                                                   </get-case-from>
527                                                   <lit-tag v="predet.m.sg"/>
528                                           </lu>
529                                           <b/>
530                                 </out> 
531           </when>
532                  </choose>
533                          </def-macro>
535      <def-macro n="f_concord1" npar="1">
536         
537         <choose><!--To determine value of variables of gender and
538                  number and propagate to other rules.  Variables are
539                  not used again in this rule -->
540           <when> 
541             <test>
542               <equal>
543                 <clip pos="1" side="tl" part="gen"/>
544                 <lit-tag v="m"/>
545               </equal>
546             </test>
547             <let><var n="genero"/><lit-tag v="m"/></let>
548           </when>
549           <when>
550             <test>
551               <equal>
552                 <clip pos="1" side="tl" part="gen"/>
553                 <lit-tag v="f"/>
554               </equal>
555             </test>
556             <let><var n="genero"/><lit-tag v="f"/></let>
557           </when>
558         </choose> 
559         <choose>
560           <when> 
561             <test>
562               <equal>
563                 <clip pos="1" side="tl" part="nbr"/>
564                 <lit-tag v="sg"/>
565               </equal>
566             </test>
567             <let><var n="numero"/><lit-tag v="sg"/></let>
568           </when>
569           <when> 
570             <test>
571               <equal>
572                 <clip pos="1" side="tl" part="nbr"/>
573                 <lit-tag v="pl"/>
574               </equal>
575             </test>
576             <let><var n="numero"/><lit-tag v="pl"/></let>
577           </when>
578         </choose>
579         <choose>
580           <when>
581               <test> <!-- If word has GD or ND, we try to assign the
582               gender or number of the previous rule. If there is no
583               value for the gender or number variable from previous
584               rules, gender will be masculine and number singular.-->
585                  <equal>
586                     <clip pos="1" side="tl" part="gen"/>
587                     <lit-tag v="GD"/>
588                  </equal>
589               </test>
590               <choose> 
591                   <when>
592                     <test>
593                       <equal>
594                         <var n="genero"/>
595                         <lit-tag v="f"/>
596                       </equal>
597                     </test>
598                     <let><clip pos="1" side="tl" part="gen"/><lit-tag v="f"/></let>
599                   </when>
600                   <otherwise>
601                       <let><clip pos="1" side="tl" part="gen"/><lit-tag v="m"/></let>
602                   </otherwise>
603                  </choose>
604                 </when>
605              </choose>
606              <choose>
607                <when>
608                 <test> 
609                  <equal>
610                     <clip pos="1" side="tl" part="nbr"/>
611                     <lit-tag v="ND"/>
612                  </equal>
613                </test>
614                <choose> 
615                   <when>
616                     <test>
617                       <equal>
618                         <var n="numero"/>
619                         <lit-tag v="pl"/>
620                       </equal>
621                     </test>
622                     <let><clip pos="1" side="tl" part="nbr"/><lit-tag v="pl"/></let>                   
623                   </when>
624                   <otherwise>
625                       <let><clip pos="1" side="tl" part="nbr"/><lit-tag v="sg"/></let>
626                   </otherwise>
627                 </choose>
628              </when>
629          </choose>    
630         </def-macro>
633       <def-macro n="f_concord2" npar="2">
634         <choose>
635           <when>
636             <test> <!-- do the main and second parameter gender agree?-->
637               <and>
638                 <or>
639                   <equal>
640                     <clip pos="2" side="sl" part="gen"/>
641                     <clip pos="1" side="sl" part="gen"/>
642                   </equal>
643                   <equal>
644                     <clip pos="2" side="sl" part="gen"/>
645                     <lit-tag v="mf"/>
646                   </equal>
647                   <equal>
648                     <clip pos="1" side="sl" part="gen"/>
649                     <lit-tag v="mf"/>
650                   </equal>
651                 </or>
652                 <or>
653                   <equal> <!-- do the main and second parameter number agree?-->
654                     <clip pos="2" side="sl" part="nbr"/>
655                     <clip pos="1" side="sl" part="nbr"/>
656                   </equal>
657                   <equal>
658                     <clip pos="2" side="sl" part="nbr"/>
659                     <lit-tag v="sp"/>
660                   </equal>
661                   <equal>
662                     <clip pos="1" side="sl" part="nbr"/>
663                     <lit-tag v="sp"/>
664                   </equal>
665                 </or>
666               </and>
667             </test>
668             <let><var n="concPrimero"/><lit v="true"/></let><!-- there is gender and number agreement-->
669           </when>
670           <otherwise> 
671             <let><var n="concPrimero"/><lit v="false"/></let><!-- there isn't gender and number agreement-->
672           </otherwise>
673         </choose>
674         
675         <choose>
676           <when>
677             <test> <!-- Propagate the main parameter gender if it has been modified during the translation  -->
678               <and>
679                 <not>
680                   <equal>
681                     <clip pos="1" side="tl" part="gen"/>
682                     <clip pos="1" side="sl" part="gen"/>
683                   </equal>
684                 </not>
685                 <not>
686                   <equal>
687                     <clip pos="1" side="tl" part="gen"/>
688                     <lit-tag v="mf"/>
689                   </equal>
690                 </not>
691                 <not>
692                   <equal>
693                     <clip pos="1" side="tl" part="gen"/>
694                     <lit-tag v="GD"/>
695                   </equal>
696                 </not>
697               </and>
698             </test>
699             <choose>
700               <when>
701                 <test>
702                   <and>
703                     <not>
704                       <equal>
705                           <clip pos="2" side="tl" part="gen"/>
706                           <lit-tag v="mf"/>
707                       </equal>
708                     </not>
709                     <not>
710                       <and>
711                         <equal>
712                           <clip pos="2" side="sl" part="gen"/>
713                           <lit-tag v="mf"/>
714                         </equal>
715                         <not>
716                           <equal>
717                             <clip pos="2" side="tl" part="gen"/>
718                             <lit-tag v="GD"/>
719                           </equal>
720                         </not>
721                       </and>
722                     </not>
723                       <equal>
724                         <var n="concPrimero"/>
725                         <lit v="true"/>
726                       </equal>
727                     </and>
728                   </test>                              
729                 <let>
730                   <clip pos="2" side="tl" part="gen"/>
731                   <clip pos="1" side="tl" part="gen"/> 
732                 </let>
733               </when>
734             </choose>
735             </when>
736           </choose>  
737           <choose>
738             <when>
739               <test> <!-- Propagate the main parameter number if it has been modified during the translation  -->
740                 <and>
741                   <not>
742                     <equal>
743                       <clip pos="1" side="tl" part="nbr"/>
744                       <clip pos="1" side="sl" part="nbr"/>
745                     </equal>
746                   </not>
747                   <not>
748                     <equal>
749                       <clip pos="1" side="tl" part="nbr"/>
750                       <lit-tag v="sp"/>
751                     </equal>
752                   </not>
753                   <not>
754                     <equal>
755                       <clip pos="1" side="tl" part="nbr"/>
756                       <lit-tag v="ND"/>
757                     </equal>
758                   </not>
759                 </and>
760               </test>
761               <choose>
762                 <when>
763                   <test>
764                     <and>
765                       <not>
766                         <equal>
767                           <clip pos="2" side="tl" part="nbr"/>
768                           <lit-tag v="sp"/>
769                         </equal>
770                       </not>
771                       <not>
772                         <and>
773                           <equal>
774                             <clip pos="2" side="sl" part="nbr"/>
775                             <lit-tag v="sp"/>
776                           </equal>
777                           <not>
778                             <equal>
779                               <clip pos="2" side="tl" part="nbr"/>
780                               <lit-tag v="ND"/>
781                             </equal>
782                           </not>
783                         </and>
784                       </not>
785                       <equal>
786                         <var n="concPrimero"/>
787                         <lit v="true"/>
788                       </equal>
789                     </and>
790                   </test>
791                   <let>
792                     <clip pos="2" side="tl" part="nbr"/>
793                     <clip pos="1" side="tl" part="nbr"/> 
794                   </let>
795                 </when>
796               </choose>
797             </when>
798           </choose>
799    
800           <choose>
801             <when>
802               <test> <!-- Which is the rule general gender? -->
803                 <equal>
804                   <clip pos="1" side="tl" part="gen"/>
805                   <lit-tag v="m"/>
806                 </equal>
807               </test>
808               <let>
809                 <var n="genero"/>
810                 <lit-tag v="m"/>
811               </let>
812             </when>
813             <when>
814               <test>
815                 <equal>
816                   <clip pos="1" side="tl" part="gen"/>
817                   <lit-tag v="f"/>
818                 </equal>
819               </test>
820               <let>
821                 <var n="genero"/>
822                 <lit-tag v="f"/>
823               </let>
824             </when>
825             <when>
826               <test>
827                 <equal>
828                   <clip pos="2" side="tl" part="gen"/>
829                   <lit-tag v="m"/>
830                 </equal>
831               </test>
832               <let>
833                 <var n="genero"/>
834                 <lit-tag v="m"/>
835               </let>
836             </when>
837             <when>
838               <test>
839                 <equal>
840                   <clip pos="2" side="tl" part="gen"/>
841                   <lit-tag v="f"/>
842                 </equal>
843               </test>
844               <let>
845                 <var n="genero"/>
846                 <lit-tag v="f"/>
847               </let>
848             </when>
849             <when>
850               <test>
851                 <and>
852                   <equal>
853                     <clip pos="1" side="tl" part="gen"/>
854                     <lit-tag v="mf"/>
855                   </equal>
856                   <not>
857                     <equal>
858                       <clip pos="1" side="sl" part="gen"/>
859                       <lit-tag v="mf"/>
860                     </equal>
861                   </not>
862                 </and>
863               </test>
864               <let>
865                 <var n="genero"/>
866                 <clip pos="1" side="sl" part="gen"/> 
867               </let>
868             </when>
869             <when>
870               <test>
871                 <and>
872                   <equal>
873                     <clip pos="2" side="tl" part="gen"/>
874                     <lit-tag v="mf"/>
875                   </equal>
876                   <not>
877                     <equal>
878                       <clip pos="2" side="sl" part="gen"/>
879                       <lit-tag v="mf"/>
880                     </equal>
881                   </not>
882                 </and>
883               </test>
884               <let>
885                 <var n="genero"/>
886                 <clip pos="2" side="sl" part="gen"/> 
887               </let>
888             </when>
889             <otherwise>
890             <let>
891               <var n="genero"/>
892               <lit-tag v="m"/>
893             </let>
894           </otherwise>
895         </choose>
899         <choose>
900           <when><!-- Which is the rule general number? -->
901             <test> 
902               <equal>
903                 <clip pos="1" side="tl" part="nbr"/>
904                 <lit-tag v="sg"/>
905               </equal>
906             </test>
907             <let>
908               <var n="numero"/>
909               <lit-tag v="sg"/>
910             </let>
911           </when>
912           <when>
913             <test>
914               <equal>
915                 <clip pos="1" side="tl" part="nbr"/>
916                 <lit-tag v="pl"/>
917               </equal>
918             </test>
919             <let>
920               <var n="numero"/>
921               <lit-tag v="pl"/>
922             </let>
923           </when>
924           <when>
925             <test>
926               <equal>
927                 <clip pos="2" side="tl" part="nbr"/>
928                 <lit-tag v="sg"/>
929               </equal>
930             </test>
931             <let>
932               <var n="numero"/>
933               <lit-tag v="sg"/>
934             </let>
935           </when>
936           <when>
937             <test>
938               <equal>
939                 <clip pos="2" side="tl" part="nbr"/>
940                 <lit-tag v="pl"/>
941               </equal>
942             </test>
943             <let>
944               <var n="numero"/>
945               <lit-tag v="pl"/>
946             </let>
947           </when>
948           <when>
949             <test>
950               <and>
951                 <equal>
952                   <clip pos="1" side="tl" part="nbr"/>
953                   <lit-tag v="sp"/>
954                 </equal>
955                 <not>
956                   <equal>
957                     <clip pos="1" side="sl" part="nbr"/>
958                     <lit-tag v="sp"/>
959                   </equal>
960                 </not>
961               </and>
962             </test>
963             <let>
964               <var n="numero"/>
965               <clip pos="1" side="sl" part="nbr"/> 
966             </let>
967           </when>
968           <when>
969             <test>
970               <and>
971                 <equal>
972                   <clip pos="2" side="tl" part="nbr"/>
973                   <lit-tag v="sp"/>
974                 </equal>
975                 <not>
976                   <equal>
977                     <clip pos="2" side="sl" part="nbr"/>
978                     <lit-tag v="sp"/>
979                   </equal>
980                 </not>
981               </and>
982             </test>
983             <let>
984               <var n="numero"/>
985               <clip pos="2" side="sl" part="nbr"/> 
986             </let>
987           </when>
988           <otherwise>
989             <let>
990               <var n="numero"/>
991               <lit-tag v="sg"/>
992             </let>
993           </otherwise>
994         </choose>
996         <choose> <!-- Determine gender and number value if they are undetermined -->
997           <when>
998             <test>
999               <equal>
1000                 <clip pos="1" side="tl" part="gen"/>
1001                 <lit-tag v="GD"/>
1002               </equal>
1003             </test>
1004             <let>
1005               <clip pos="1" side="tl" part="gen"/>
1006               <var n="genero"/>
1007             </let>
1008           </when>
1009         </choose>
1010         <choose>
1011           <when>
1012             <test>
1013               <equal>
1014                 <clip pos="2" side="tl" part="gen"/>
1015                 <lit-tag v="GD"/>
1016               </equal>
1017             </test>
1018             <let>
1019               <clip pos="2" side="tl" part="gen"/>
1020               <var n="genero"/>
1021             </let>
1022           </when>
1023         </choose>
1024         <choose>
1025           <when>
1026             <test>
1027               <equal>
1028                 <clip pos="1" side="tl" part="nbr"/>
1029                 <lit-tag v="ND"/>
1030               </equal>
1031             </test>
1032             <let>
1033               <clip pos="1" side="tl" part="nbr"/>
1034               <var n="numero"/>
1035             </let>
1036           </when>
1037         </choose>
1038         <choose>
1039           <when>
1040             <test>
1041               <equal>
1042                 <clip pos="2" side="tl" part="nbr"/>
1043                 <lit-tag v="ND"/>
1044               </equal>
1045             </test>
1046             <let>
1047               <clip pos="2" side="tl" part="nbr"/>
1048               <var n="numero"/>
1049             </let>
1050           </when>
1051         </choose>
1052       </def-macro>
1055       <def-macro n="f_concord3" npar="3"> 
1056           <choose><!-- Look if in source language there is concordance between first and second element -->
1057             <when>
1058               <test> 
1059                 <and>
1060                   <or>
1061                     <equal>
1062                       <clip pos="2" side="sl" part="gen"/>
1063                       <clip pos="1" side="sl" part="gen"/>
1064                     </equal>
1065                     <equal>
1066                       <clip pos="2" side="sl" part="gen"/>
1067                       <lit-tag v="mf"/>
1068                     </equal>
1069                     <equal>
1070                       <clip pos="1" side="sl" part="gen"/>
1071                       <lit-tag v="mf"/>
1072                     </equal>
1073                   </or>
1074                   <or>
1075                     <equal>
1076                       <clip pos="2" side="sl" part="nbr"/>
1077                       <clip pos="1" side="sl" part="nbr"/>
1078                     </equal>
1079                     <equal>
1080                       <clip pos="2" side="sl" part="nbr"/>
1081                       <lit-tag v="sp"/>
1082                     </equal>
1083                     <equal>
1084                       <clip pos="1" side="sl" part="nbr"/>
1085                       <lit-tag v="sp"/>
1086                     </equal>
1087                   </or>
1088                 </and>
1089               </test>
1090               <let><var n="concPrimero"/><lit v="true"/></let>
1091             </when>
1092             <otherwise> 
1093             <let><var n="concPrimero"/><lit v="false"/></let>
1094             </otherwise>
1095         </choose>
1096         <choose><!-- Look if in source language there is concordance between second and third element -->
1097             <when>
1098               <test> 
1099                 <and>
1100                   <or>
1101                     <equal>
1102                       <clip pos="3" side="sl" part="gen"/>
1103                       <clip pos="1" side="sl" part="gen"/>
1104                     </equal>
1105                     <equal>
1106                       <clip pos="3" side="sl" part="gen"/>
1107                       <lit-tag v="mf"/>
1108                     </equal>
1109                     <equal>
1110                       <clip pos="1" side="sl" part="gen"/>
1111                       <lit-tag v="mf"/>
1112                     </equal>
1113                   </or>
1114                   <or>
1115                     <equal>
1116                       <clip pos="3" side="sl" part="nbr"/>
1117                       <clip pos="1" side="sl" part="nbr"/>
1118                     </equal>
1119                     <equal>
1120                       <clip pos="3" side="sl" part="nbr"/>
1121                       <lit-tag v="sp"/>
1122                     </equal>
1123                     <equal>
1124                       <clip pos="1" side="sl" part="nbr"/>
1125                       <lit-tag v="sp"/>
1126                     </equal>
1127                   </or>
1128                 </and>
1129               </test>
1130               <let><var n="concSegundo"/><lit v="true"/></let>
1131             </when>      
1132             <otherwise> 
1133               <let><var n="concSegundo"/><lit v="false"/></let>
1134             </otherwise>
1135           </choose>
1138           <choose><!-- Propagate the main parameter gender if it has been modified during the translation -->
1139             <when>
1140               <test> 
1141                 <and>
1142                   <not>
1143                     <equal>
1144                       <clip pos="1" side="tl" part="gen"/>
1145                       <clip pos="1" side="sl" part="gen"/>
1146                     </equal>
1147                   </not>
1148                   <not>
1149                     <equal>
1150                       <clip pos="1" side="tl" part="gen"/>
1151                       <lit-tag v="mf"/>
1152                     </equal>
1153                   </not>
1154                   <not>
1155                     <equal>
1156                       <clip pos="1" side="tl" part="gen"/>
1157                       <lit-tag v="GD"/>
1158                     </equal>
1159                   </not>
1160                 </and>
1161               </test>
1162                 <choose>
1163                   <when>
1164                     <test>
1165                       <and>
1166                         <not>
1167                           <equal>
1168                             <clip pos="2" side="tl" part="gen"/>
1169                             <lit-tag v="mf"/>
1170                           </equal>
1171                         </not>
1172                         <not>
1173                           <and>
1174                             <equal>
1175                               <clip pos="2" side="sl" part="gen"/>
1176                               <lit-tag v="mf"/>
1177                             </equal>
1178                             <not>
1179                               <equal>
1180                                 <clip pos="2" side="tl" part="gen"/>
1181                                 <lit-tag v="GD"/>
1182                               </equal>
1183                             </not>
1184                           </and>
1185                         </not>
1186                         <equal>
1187                           <var n="concPrimero"/>
1188                           <lit v="true"/>
1189                         </equal>
1190                       </and>
1191                     </test>
1192                       <let>
1193                         <clip pos="2" side="tl" part="gen"/>
1194                         <clip pos="1" side="tl" part="gen"/> 
1195                       </let>
1196                     </when> 
1197                   </choose>   
1198                   <choose>
1199                     <when>
1200                       <test> 
1201                         <and>
1202                           <not>
1203                             <equal>
1204                               <clip pos="3" side="tl" part="gen"/>
1205                               <lit-tag v="mf"/>
1206                             </equal>
1207                           </not>
1208                           <not>
1209                             <and>
1210                               <equal>
1211                                 <clip pos="3" side="sl" part="gen"/>
1212                                 <lit-tag v="mf"/>
1213                               </equal>
1214                               <not>
1215                                 <equal>
1216                                   <clip pos="3" side="tl" part="gen"/>
1217                                   <lit-tag v="GD"/>
1218                                 </equal>
1219                               </not>
1220                             </and>
1221                           </not>
1222                           <equal>
1223                             <var n="concSegundo"/>
1224                             <lit v="true"/>
1225                           </equal>
1226                         </and>
1227                       </test>
1228                        <let>
1229                          <clip pos="3" side="tl" part="gen"/>
1230                          <clip pos="1" side="tl" part="gen"/> 
1231                        </let> 
1232                     </when> 
1233                   </choose>
1234                 </when>
1235               </choose>
1237             <choose><!-- Propagate the main parameter number if it has been modified during the translation -->
1238               <when>
1239                 <test> 
1240                   <and>
1241                     <not>
1242                       <equal>
1243                         <clip pos="1" side="tl" part="nbr"/>
1244                         <clip pos="1" side="sl" part="nbr"/>
1245                       </equal>
1246                     </not>
1247                     <not>
1248                       <equal>
1249                         <clip pos="1" side="tl" part="nbr"/>
1250                         <lit-tag v="sp"/>
1251                       </equal>
1252                     </not>
1253                     <not>
1254                       <equal>
1255                         <clip pos="1" side="tl" part="nbr"/>
1256                         <lit-tag v="ND"/>
1257                       </equal>
1258                     </not>
1259                   </and>
1260                 </test>
1261                   <choose>
1262                     <when>
1263                       <test>
1264                         <and>
1265                           <not>
1266                             <equal>
1267                               <clip pos="2" side="tl" part="nbr"/>
1268                               <lit-tag v="sp"/>
1269                             </equal>
1270                           </not>
1271                           <not>
1272                             <and>
1273                               <equal>
1274                                 <clip pos="2" side="sl" part="nbr"/>
1275                                 <lit-tag v="sp"/>
1276                               </equal>
1277                               <not>
1278                                 <equal>
1279                                   <clip pos="2" side="tl" part="nbr"/>
1280                                   <lit-tag v="ND"/>
1281                                 </equal>
1282                               </not>
1283                             </and>
1284                           </not>
1285                           <equal>
1286                             <var n="concPrimero"/>
1287                             <lit v="true"/>
1288                           </equal>
1289                         </and>
1290                       </test>
1291                       <let>
1292                         <clip pos="2" side="tl" part="nbr"/>
1293                         <clip pos="1" side="tl" part="nbr"/> 
1294                       </let>
1295                     </when>
1296                   </choose>
1297                   <choose>
1298                     <when>
1299                       <test>
1300                         <and>
1301                           <not>
1302                             <equal>
1303                               <clip pos="3" side="tl" part="nbr"/>
1304                               <lit-tag v="sp"/>
1305                             </equal>
1306                           </not>
1307                           <not>
1308                             <and>
1309                               <equal>
1310                                 <clip pos="3" side="sl" part="nbr"/>
1311                                 <lit-tag v="sp"/>
1312                               </equal>
1313                               <not>
1314                                 <equal>
1315                                   <clip pos="3" side="tl" part="nbr"/>
1316                                   <lit-tag v="ND"/>
1317                                 </equal>
1318                               </not>
1319                             </and>
1320                           </not>
1321                           <equal>
1322                             <var n="concSegundo"/>
1323                             <lit v="true"/>
1324                           </equal>
1325                         </and>
1326                       </test>
1327                       <let>
1328                         <clip pos="3" side="tl" part="nbr"/>
1329                         <clip pos="1" side="tl" part="nbr"/> 
1330                      </let>
1331                    </when>
1332                  </choose>
1333               </when>
1334             </choose>
1338         <choose> <!-- Determine the rule general gender. Priority order: main, second and third element -->
1339           <when>
1340             <test> 
1341               <equal>
1342                 <clip pos="1" side="tl" part="gen"/>
1343                 <lit-tag v="m"/>
1344               </equal>
1345             </test>
1346             <let>
1347               <var n="genero"/>
1348               <lit-tag v="m"/>
1349             </let>
1350           </when>
1351           <when>
1352             <test>
1353               <equal>
1354                 <clip pos="1" side="tl" part="gen"/>
1355                 <lit-tag v="f"/>
1356               </equal>
1357             </test>
1358             <let>
1359               <var n="genero"/>
1360               <lit-tag v="f"/>
1361             </let>
1362           </when>
1363           <when>
1364             <test>
1365               <equal>
1366                 <clip pos="2" side="tl" part="gen"/>
1367                 <lit-tag v="m"/>
1368               </equal>
1369             </test>
1370             <let>
1371               <var n="genero"/>
1372               <lit-tag v="m"/>
1373             </let>
1374           </when>
1375           <when>
1376             <test>
1377               <equal>
1378                 <clip pos="2" side="tl" part="gen"/>
1379                 <lit-tag v="f"/>
1380               </equal>
1381             </test>
1382             <let>
1383               <var n="genero"/>
1384               <lit-tag v="f"/>
1385             </let>
1386           </when>
1387           <when>
1388             <test>
1389               <equal>
1390                 <clip pos="3" side="tl" part="gen"/>
1391                 <lit-tag v="m"/>
1392               </equal>
1393             </test>
1394             <let>
1395               <var n="genero"/>
1396               <lit-tag v="m"/>
1397             </let>
1398           </when>
1399           <when>
1400             <test>
1401               <equal>
1402                 <clip pos="3" side="tl" part="gen"/>
1403                 <lit-tag v="f"/>
1404               </equal>
1405             </test>
1406             <let>
1407               <var n="genero"/>
1408               <lit-tag v="f"/>
1409             </let>
1410           </when> 
1411           <when>
1412             <test>
1413               <and>
1414                 <equal>
1415                   <clip pos="1" side="tl" part="gen"/>
1416                   <lit-tag v="mf"/>
1417                 </equal>
1418                 <not>
1419                   <equal>
1420                     <clip pos="1" side="sl" part="gen"/>
1421                     <lit-tag v="mf"/>
1422                   </equal>
1423                 </not>
1424               </and>
1425             </test>
1426             <let>
1427               <var n="genero"/>
1428               <clip pos="1" side="sl" part="gen"/> 
1429             </let>
1430           </when>
1431           <when>
1432             <test>
1433               <and>
1434                 <equal>
1435                   <clip pos="2" side="tl" part="gen"/>
1436                   <lit-tag v="mf"/>
1437                 </equal>
1438                 <not>
1439                   <equal>
1440                     <clip pos="2" side="sl" part="gen"/>
1441                     <lit-tag v="mf"/>
1442                   </equal>
1443                 </not>
1444               </and>
1445             </test>
1446             <let>
1447               <var n="genero"/>
1448               <clip pos="2" side="sl" part="gen"/> 
1449             </let>
1450           </when>
1451            <when>
1452             <test>
1453               <and>
1454                 <equal>
1455                   <clip pos="3" side="tl" part="gen"/>
1456                   <lit-tag v="mf"/>
1457                 </equal>
1458                 <not>
1459                   <equal>
1460                     <clip pos="3" side="sl" part="gen"/>
1461                     <lit-tag v="mf"/>
1462                   </equal>
1463                 </not>
1464               </and>
1465             </test>
1466             <let>
1467               <var n="genero"/>
1468               <clip pos="3" side="sl" part="gen"/> 
1469             </let>
1470           </when>               
1471           <otherwise>
1472             <let>
1473               <var n="genero"/>
1474               <lit-tag v="m"/>
1475             </let>
1476           </otherwise>
1477         </choose>
1478         
1479         <choose><!-- Determine the rule general number. Priority order: main, second and third element -->
1480           <when>
1481             <test> 
1482               <equal>
1483                 <clip pos="1" side="tl" part="nbr"/>
1484                 <lit-tag v="sg"/>
1485               </equal>
1486             </test>
1487             <let>
1488               <var n="numero"/>
1489               <lit-tag v="sg"/>
1490             </let>
1491           </when>
1492           <when>
1493             <test>
1494               <equal>
1495                 <clip pos="1" side="tl" part="nbr"/>
1496                 <lit-tag v="pl"/>
1497               </equal>
1498             </test>
1499             <let>
1500               <var n="numero"/>
1501               <lit-tag v="pl"/>
1502             </let>
1503           </when>
1504           <when>
1505             <test>
1506               <equal>
1507                 <clip pos="2" side="tl" part="nbr"/>
1508                 <lit-tag v="sg"/>
1509               </equal>
1510             </test>
1511             <let>
1512               <var n="numero"/>
1513               <lit-tag v="sg"/>
1514             </let>
1515           </when>
1516           <when>
1517             <test>
1518               <equal>
1519                 <clip pos="2" side="tl" part="nbr"/>
1520                 <lit-tag v="pl"/>
1521               </equal>
1522             </test>
1523             <let>
1524               <var n="numero"/>
1525               <lit-tag v="pl"/>
1526             </let>
1527           </when>
1528           <when>
1529             <test>
1530               <equal>
1531                 <clip pos="3" side="tl" part="nbr"/>
1532                 <lit-tag v="sg"/>
1533               </equal>
1534             </test>
1535             <let>
1536               <var n="numero"/>
1537               <lit-tag v="sg"/>
1538             </let>
1539           </when>
1540           <when>
1541             <test>
1542               <equal>
1543                 <clip pos="3" side="tl" part="nbr"/>
1544                 <lit-tag v="pl"/>
1545               </equal>
1546             </test>
1547             <let>
1548               <var n="numero"/>
1549               <lit-tag v="pl"/>
1550             </let>
1551           </when>     
1552           <when>
1553             <test>
1554               <and>
1555                 <equal>
1556                   <clip pos="1" side="tl" part="nbr"/>
1557                   <lit-tag v="sp"/>
1558                 </equal>
1559                 <not>
1560                   <equal>
1561                     <clip pos="1" side="sl" part="nbr"/>
1562                     <lit-tag v="sp"/>
1563                   </equal>
1564                 </not>
1565               </and>
1566             </test>
1567             <let>
1568               <var n="numero"/>
1569               <clip pos="1" side="sl" part="nbr"/> 
1570             </let>
1571           </when>
1572           <when>
1573             <test>
1574               <and>
1575                 <equal>
1576                   <clip pos="2" side="tl" part="nbr"/>
1577                   <lit-tag v="sp"/>
1578                 </equal>
1579                 <not>
1580                   <equal>
1581                     <clip pos="2" side="sl" part="nbr"/>
1582                     <lit-tag v="sp"/>
1583                   </equal>
1584                 </not>
1585               </and>
1586             </test>
1587             <let>
1588               <var n="numero"/>
1589               <clip pos="2" side="sl" part="nbr"/> 
1590             </let>
1591           </when>
1592           <when>
1593             <test>
1594               <and>
1595                 <equal>
1596                   <clip pos="3" side="tl" part="nbr"/>
1597                   <lit-tag v="sp"/>
1598                 </equal>
1599                 <not>
1600                   <equal>
1601                     <clip pos="3" side="sl" part="nbr"/>
1602                     <lit-tag v="sp"/>
1603                   </equal>
1604                 </not>
1605               </and>
1606             </test>
1607             <let>
1608               <var n="numero"/>
1609               <clip pos="3" side="sl" part="nbr"/> 
1610             </let>
1611           </when>
1612           <otherwise>
1613             <let>
1614               <var n="numero"/>
1615               <lit-tag v="sg"/>
1616             </let>
1617           </otherwise>
1618         </choose>
1620         <choose> <!-- Assign values to GD and ND -->
1621           <when>
1622             <test>
1623               <equal>
1624                 <clip pos="1" side="tl" part="gen"/>
1625                 <lit-tag v="GD"/>
1626               </equal>
1627             </test>
1628             <let>
1629               <clip pos="1" side="tl" part="gen"/>
1630               <var n="genero"/>
1631             </let>
1632           </when>
1633         </choose>
1634         <choose>
1635           <when>
1636             <test>
1637               <equal>
1638                 <clip pos="2" side="tl" part="gen"/>
1639                 <lit-tag v="GD"/>
1640               </equal>
1641             </test>
1642             <let>
1643               <clip pos="2" side="tl" part="gen"/>
1644               <var n="genero"/>
1645             </let>
1646           </when>
1647         </choose>
1648         <choose>
1649           <when>
1650             <test>
1651               <equal>
1652                 <clip pos="3" side="tl" part="gen"/>
1653                 <lit-tag v="GD"/>
1654               </equal>
1655             </test>
1656             <let>
1657               <clip pos="3" side="tl" part="gen"/>
1658               <var n="genero"/>
1659             </let>
1660           </when>
1661         </choose>
1662         <choose>
1663           <when>
1664             <test>
1665               <equal>
1666                 <clip pos="1" side="tl" part="nbr"/>
1667                 <lit-tag v="ND"/>
1668               </equal>
1669             </test>
1670             <let>
1671               <clip pos="1" side="tl" part="nbr"/>
1672               <var n="numero"/>
1673             </let>
1674           </when>
1675         </choose>
1676         <choose>
1677           <when>
1678             <test>
1679               <equal>
1680                 <clip pos="2" side="tl" part="nbr"/>
1681                 <lit-tag v="ND"/>
1682               </equal>
1683             </test>
1684             <let>
1685               <clip pos="2" side="tl" part="nbr"/>
1686               <var n="numero"/>
1687             </let>
1688           </when>
1689         </choose>
1690         <choose>
1691           <when>
1692             <test>
1693               <equal>
1694                 <clip pos="3" side="tl" part="nbr"/>
1695                 <lit-tag v="ND"/>
1696               </equal>
1697             </test>
1698             <let>
1699               <clip pos="3" side="tl" part="nbr"/>
1700               <var n="numero"/>
1701             </let>
1702           </when>
1703         </choose>      
1704       </def-macro>     
1705     
1707       <def-macro n="f_concord4" npar="4">
1708           <choose>
1709             <when>
1710               <test> 
1711                 <and>
1712                   <or>
1713                     <equal>
1714                       <clip pos="2" side="sl" part="gen"/>
1715                       <clip pos="1" side="sl" part="gen"/>
1716                     </equal>
1717                     <equal>
1718                       <clip pos="2" side="sl" part="gen"/>
1719                       <lit-tag v="mf"/>
1720                     </equal>
1721                     <equal>
1722                       <clip pos="1" side="sl" part="gen"/>
1723                       <lit-tag v="mf"/>
1724                     </equal>
1725                   </or>
1726                   <or>
1727                     <equal>
1728                       <clip pos="2" side="sl" part="nbr"/>
1729                       <clip pos="1" side="sl" part="nbr"/>
1730                     </equal>
1731                     <equal>
1732                       <clip pos="2" side="sl" part="nbr"/>
1733                       <lit-tag v="sp"/>
1734                     </equal>
1735                     <equal>
1736                       <clip pos="1" side="sl" part="nbr"/>
1737                       <lit-tag v="sp"/>
1738                     </equal>
1739                   </or>
1740                 </and>
1741               </test>
1742               <let><var n="concPrimero"/><lit v="true"/></let>
1743             </when>
1744             <otherwise> 
1745             <let><var n="concPrimero"/><lit v="false"/></let>
1746             </otherwise>
1747         </choose>
1748         
1749         <choose>
1750             <when>
1751               <test> 
1752                 <and>
1753                   <or>
1754                     <equal>
1755                       <clip pos="3" side="sl" part="gen"/>
1756                       <clip pos="1" side="sl" part="gen"/>
1757                     </equal>
1758                     <equal>
1759                       <clip pos="3" side="sl" part="gen"/>
1760                       <lit-tag v="mf"/>
1761                     </equal>
1762                     <equal>
1763                       <clip pos="1" side="sl" part="gen"/>
1764                       <lit-tag v="mf"/>
1765                     </equal>
1766                   </or>
1767                   <or>
1768                     <equal>
1769                       <clip pos="3" side="sl" part="nbr"/>
1770                       <clip pos="1" side="sl" part="nbr"/>
1771                     </equal>
1772                     <equal>
1773                       <clip pos="3" side="sl" part="nbr"/>
1774                       <lit-tag v="sp"/>
1775                     </equal>
1776                     <equal>
1777                       <clip pos="1" side="sl" part="nbr"/>
1778                       <lit-tag v="sp"/>
1779                     </equal>
1780                   </or>
1781                 </and>
1782               </test>
1783               <let><var n="concSegundo"/><lit v="true"/></let>
1784             </when>      
1785             <otherwise>
1786               <let><var n="concSegundo"/><lit v="false"/></let>
1787             </otherwise>
1788           </choose>
1790          <choose>
1791             <when>
1792               <test> 
1793                 <and>
1794                   <or>
1795                     <equal>
1796                       <clip pos="4" side="sl" part="gen"/>
1797                       <clip pos="1" side="sl" part="gen"/>
1798                     </equal>
1799                     <equal>
1800                       <clip pos="4" side="sl" part="gen"/>
1801                       <lit-tag v="mf"/>
1802                     </equal>
1803                     <equal>
1804                       <clip pos="1" side="sl" part="gen"/>
1805                       <lit-tag v="mf"/>
1806                     </equal>
1807                   </or>
1808                   <or>
1809                     <equal>
1810                       <clip pos="4" side="sl" part="nbr"/>
1811                       <clip pos="1" side="sl" part="nbr"/>
1812                     </equal>
1813                     <equal>
1814                       <clip pos="4" side="sl" part="nbr"/>
1815                       <lit-tag v="sp"/>
1816                     </equal>
1817                     <equal>
1818                       <clip pos="1" side="sl" part="nbr"/>
1819                       <lit-tag v="sp"/>
1820                     </equal>
1821                   </or>
1822                 </and>
1823               </test>
1824               <let><var n="concTercero"/><lit v="true"/></let>
1825             </when>      
1826             <otherwise> 
1827               <let><var n="concTercero"/><lit v="false"/></let>
1828             </otherwise>
1829           </choose>
1830            
1832           <choose>
1833             <when>
1834               <test> 
1835                 <and>
1836                   <not>
1837                     <equal>
1838                       <clip pos="1" side="tl" part="gen"/>
1839                       <clip pos="1" side="sl" part="gen"/>
1840                     </equal>
1841                   </not>
1842                   <not>
1843                     <equal>
1844                       <clip pos="1" side="tl" part="gen"/>
1845                       <lit-tag v="mf"/>
1846                     </equal>
1847                   </not>
1848                   <not>
1849                     <equal>
1850                       <clip pos="1" side="tl" part="gen"/>
1851                       <lit-tag v="GD"/>
1852                     </equal>
1853                   </not>
1854                 </and>
1855               </test>
1856                 <choose>
1857                   <when>
1858                     <test>
1859                       <and>
1860                         <not>
1861                           <equal>
1862                             <clip pos="2" side="tl" part="gen"/>
1863                             <lit-tag v="mf"/>
1864                           </equal>
1865                         </not>
1866                         <not>
1867                           <and>
1868                             <equal>
1869                               <clip pos="2" side="sl" part="gen"/>
1870                               <lit-tag v="mf"/>
1871                             </equal>
1872                             <not>
1873                               <equal>
1874                                 <clip pos="2" side="tl" part="gen"/>
1875                                 <lit-tag v="GD"/>
1876                               </equal>
1877                             </not>
1878                           </and>
1879                         </not>
1880                         <equal>
1881                           <var n="concPrimero"/>
1882                           <lit v="true"/>
1883                         </equal>
1884                       </and>
1885                     </test>
1886                       <let>
1887                         <clip pos="2" side="tl" part="gen"/>
1888                         <clip pos="1" side="tl" part="gen"/> 
1889                       </let>
1890                     </when> 
1891                   </choose>
1892                   <choose>
1893                   <when>
1894                     <test>
1895                       <and>
1896                         <not>
1897                           <equal>
1898                             <clip pos="3" side="tl" part="gen"/>
1899                             <lit-tag v="mf"/>
1900                           </equal>
1901                         </not>
1902                         <not>
1903                           <and>
1904                             <equal>
1905                               <clip pos="3" side="sl" part="gen"/>
1906                               <lit-tag v="mf"/>
1907                             </equal>
1908                             <not>
1909                               <equal>
1910                                 <clip pos="3" side="tl" part="gen"/>
1911                                 <lit-tag v="GD"/>
1912                               </equal>
1913                             </not>
1914                           </and>
1915                         </not>
1916                         <equal>
1917                           <var n="concSegundo"/>
1918                           <lit v="true"/>
1919                         </equal>
1920                       </and>
1921                     </test>
1922                       <let>
1923                         <clip pos="3" side="tl" part="gen"/>
1924                         <clip pos="1" side="tl" part="gen"/> 
1925                       </let>
1926                     </when> 
1927                   </choose>  
1928                   <choose>
1929                     <when>
1930                       <test>  
1931                         <and>
1932                           <not>
1933                             <equal>
1934                               <clip pos="4" side="tl" part="gen"/>
1935                               <lit-tag v="mf"/>
1936                             </equal>
1937                           </not>
1938                           <not>
1939                             <and>
1940                               <equal>
1941                                 <clip pos="4" side="sl" part="gen"/>
1942                                 <lit-tag v="mf"/>
1943                               </equal>
1944                               <not>
1945                                 <equal>
1946                                   <clip pos="4" side="tl" part="gen"/>
1947                                   <lit-tag v="GD"/>
1948                                 </equal>
1949                               </not>
1950                             </and>
1951                           </not>
1952                           <equal>
1953                             <var n="concTercero"/>
1954                             <lit v="true"/>
1955                           </equal>
1956                         </and>
1957                       </test>
1958                        <let>
1959                          <clip pos="4" side="tl" part="gen"/>
1960                          <clip pos="1" side="tl" part="gen"/> 
1961                        </let> 
1962                     </when> 
1963                   </choose>
1964                 </when>
1965               </choose>
1967             <choose>
1968               <when>
1969                 <test> 
1970                   <and>
1971                     <not>
1972                       <equal>
1973                         <clip pos="1" side="tl" part="nbr"/>
1974                         <clip pos="1" side="sl" part="nbr"/>
1975                       </equal>
1976                     </not>
1977                     <not>
1978                       <equal>
1979                         <clip pos="1" side="tl" part="nbr"/>
1980                         <lit-tag v="sp"/>
1981                       </equal>
1982                     </not>
1983                     <not>
1984                       <equal>
1985                         <clip pos="1" side="tl" part="nbr"/>
1986                         <lit-tag v="ND"/>
1987                       </equal>
1988                     </not>
1989                   </and>
1990                 </test>
1991                   <choose>
1992                     <when>
1993                       <test>
1994                         <and>
1995                           <not>
1996                             <equal>
1997                               <clip pos="2" side="tl" part="nbr"/>
1998                               <lit-tag v="sp"/>
1999                             </equal>
2000                           </not>
2001                           <not>
2002                             <and>
2003                               <equal>
2004                                 <clip pos="2" side="sl" part="nbr"/>
2005                                 <lit-tag v="sp"/>
2006                               </equal>
2007                               <not>
2008                                 <equal>
2009                                   <clip pos="2" side="tl" part="nbr"/>
2010                                   <lit-tag v="ND"/>
2011                                 </equal>
2012                               </not>
2013                             </and>
2014                           </not>
2015                           <equal>
2016                             <var n="concPrimero"/>
2017                             <lit v="true"/>
2018                           </equal>
2019                         </and>
2020                       </test>
2021                       <let>
2022                         <clip pos="2" side="tl" part="nbr"/>
2023                         <clip pos="1" side="tl" part="nbr"/> 
2024                       </let>
2025                     </when>
2026                   </choose>
2027                   <choose>
2028                     <when>
2029                       <test>
2030                         <and>
2031                           <not>
2032                             <equal>
2033                               <clip pos="3" side="tl" part="nbr"/>
2034                               <lit-tag v="sp"/>
2035                             </equal>
2036                           </not>
2037                           <not>
2038                             <and>
2039                               <equal>
2040                                 <clip pos="3" side="sl" part="nbr"/>
2041                                 <lit-tag v="sp"/>
2042                               </equal>
2043                               <not>
2044                                 <equal>
2045                                   <clip pos="3" side="tl" part="nbr"/>
2046                                   <lit-tag v="ND"/>
2047                                 </equal>
2048                               </not>
2049                             </and>
2050                           </not>
2051                           <equal>
2052                             <var n="concSegundo"/>
2053                             <lit v="true"/>
2054                           </equal>
2055                         </and>
2056                       </test>
2057                       <let>
2058                         <clip pos="3" side="tl" part="nbr"/>
2059                         <clip pos="1" side="tl" part="nbr"/> 
2060                      </let>
2061                    </when>
2062                  </choose>
2063                  <choose>
2064                    <when>
2065                      <test>
2066                        <and>
2067                          <not>
2068                            <equal>
2069                              <clip pos="4" side="tl" part="nbr"/>
2070                              <lit-tag v="sp"/>
2071                            </equal>
2072                          </not>
2073                          <not>
2074                            <and>
2075                              <equal>
2076                                <clip pos="4" side="sl" part="nbr"/>
2077                                <lit-tag v="sp"/>
2078                              </equal>
2079                              <not>
2080                                <equal>
2081                                  <clip pos="4" side="tl" part="nbr"/>
2082                                  <lit-tag v="ND"/>
2083                                </equal>
2084                              </not>
2085                            </and>
2086                          </not>
2087                          <equal>
2088                            <var n="concTercero"/>
2089                            <lit v="true"/>
2090                          </equal>
2091                        </and>
2092                      </test>
2093                      <let>
2094                        <clip pos="4" side="tl" part="nbr"/>
2095                        <clip pos="1" side="tl" part="nbr"/> 
2096                      </let>
2097                    </when>
2098                  </choose>
2099               </when>
2100             </choose>
2101            
2102         <choose>
2103           <when>
2104             <test> 
2105               <equal>
2106                 <clip pos="1" side="tl" part="gen"/>
2107                 <lit-tag v="m"/>
2108               </equal>
2109             </test>
2110             <let>
2111               <var n="genero"/>
2112               <lit-tag v="m"/>
2113             </let>
2114           </when>
2115           <when>
2116             <test>
2117               <equal>
2118                 <clip pos="1" side="tl" part="gen"/>
2119                 <lit-tag v="f"/>
2120               </equal>
2121             </test>
2122             <let>
2123               <var n="genero"/>
2124               <lit-tag v="f"/>
2125             </let>
2126           </when>
2127           <when>
2128             <test>
2129               <equal>
2130                 <clip pos="2" side="tl" part="gen"/>
2131                 <lit-tag v="m"/>
2132               </equal>
2133             </test>
2134             <let>
2135               <var n="genero"/>
2136               <lit-tag v="m"/>
2137             </let>
2138           </when>
2139           <when>
2140             <test>
2141               <equal>
2142                 <clip pos="2" side="tl" part="gen"/>
2143                 <lit-tag v="f"/>
2144               </equal>
2145             </test>
2146             <let>
2147               <var n="genero"/>
2148               <lit-tag v="f"/>
2149             </let>
2150           </when>
2151           <when>
2152             <test>
2153               <equal>
2154                 <clip pos="3" side="tl" part="gen"/>
2155                 <lit-tag v="m"/>
2156               </equal>
2157             </test>
2158             <let>
2159               <var n="genero"/>
2160               <lit-tag v="m"/>
2161             </let>
2162           </when>
2163           <when>
2164             <test>
2165               <equal>
2166                 <clip pos="3" side="tl" part="gen"/>
2167                 <lit-tag v="f"/>
2168               </equal>
2169             </test>
2170             <let>
2171               <var n="genero"/>
2172               <lit-tag v="f"/>
2173             </let>
2174           </when> 
2175           <when>
2176             <test>
2177               <equal>
2178                 <clip pos="4" side="tl" part="gen"/>
2179                 <lit-tag v="m"/>
2180               </equal>
2181             </test>
2182             <let>
2183               <var n="genero"/>
2184               <lit-tag v="m"/>
2185             </let>
2186           </when>
2187           <when>
2188             <test>
2189               <equal>
2190                 <clip pos="4" side="tl" part="gen"/>
2191                 <lit-tag v="f"/>
2192               </equal>
2193             </test>
2194             <let>
2195               <var n="genero"/>
2196               <lit-tag v="f"/>
2197             </let>
2198           </when>
2199           <otherwise>
2200             <let>
2201               <var n="genero"/>
2202               <lit-tag v="m"/>
2203             </let>
2204           </otherwise>
2206         </choose>
2207         
2208         <choose>
2209           <when>
2210             <test> 
2211               <equal>
2212                 <clip pos="1" side="tl" part="nbr"/>
2213                 <lit-tag v="sg"/>
2214               </equal>
2215             </test>
2216             <let>
2217               <var n="numero"/>
2218               <lit-tag v="sg"/>
2219             </let>
2220           </when>
2221           <when>
2222             <test>
2223               <equal>
2224                 <clip pos="1" side="tl" part="nbr"/>
2225                 <lit-tag v="pl"/>
2226               </equal>
2227             </test>
2228             <let>
2229               <var n="numero"/>
2230               <lit-tag v="pl"/>
2231             </let>
2232           </when>
2233           <when>
2234             <test>
2235               <equal>
2236                 <clip pos="2" side="tl" part="nbr"/>
2237                 <lit-tag v="sg"/>
2238               </equal>
2239             </test>
2240             <let>
2241               <var n="numero"/>
2242               <lit-tag v="sg"/>
2243             </let>
2244           </when>
2245           <when>
2246             <test>
2247               <equal>
2248                 <clip pos="2" side="tl" part="nbr"/>
2249                 <lit-tag v="pl"/>
2250               </equal>
2251             </test>
2252             <let>
2253               <var n="numero"/>
2254               <lit-tag v="pl"/>
2255             </let>
2256           </when>
2257           <when>
2258             <test>
2259               <equal>
2260                 <clip pos="3" side="tl" part="nbr"/>
2261                 <lit-tag v="sg"/>
2262               </equal>
2263             </test>
2264             <let>
2265               <var n="numero"/>
2266               <lit-tag v="sg"/>
2267             </let>
2268           </when>
2269           <when>
2270             <test>
2271               <equal>
2272                 <clip pos="3" side="tl" part="nbr"/>
2273                 <lit-tag v="pl"/>
2274               </equal>
2275             </test>
2276             <let>
2277               <var n="numero"/>
2278               <lit-tag v="pl"/>
2279             </let>
2280           </when>
2281           <when>
2282             <test>
2283               <equal>
2284                 <clip pos="4" side="tl" part="nbr"/>
2285                 <lit-tag v="sg"/>
2286               </equal>
2287             </test>
2288             <let>
2289               <var n="numero"/>
2290               <lit-tag v="sg"/>
2291             </let>
2292           </when>
2293           <when>
2294             <test>
2295               <equal>
2296                 <clip pos="4" side="tl" part="nbr"/>
2297                 <lit-tag v="pl"/>
2298               </equal>
2299             </test>
2300             <let>
2301               <var n="numero"/>
2302               <lit-tag v="pl"/>
2303             </let>
2304           </when> 
2305           <otherwise>
2306             <let>
2307               <var n="numero"/>
2308               <lit-tag v="sg"/>
2309             </let>
2310           </otherwise>
2311         </choose>
2313         <choose> 
2314           <when>
2315             <test>
2316               <equal>
2317                 <clip pos="1" side="tl" part="gen"/>
2318                 <lit-tag v="GD"/>
2319               </equal>
2320             </test>
2321             <let>
2322               <clip pos="1" side="tl" part="gen"/>
2323               <var n="genero"/>
2324             </let>
2325           </when>
2326         </choose>
2327         <choose>
2328           <when>
2329             <test>
2330               <equal>
2331                 <clip pos="2" side="tl" part="gen"/>
2332                 <lit-tag v="GD"/>
2333               </equal>
2334             </test>
2335             <let>
2336               <clip pos="2" side="tl" part="gen"/>
2337               <var n="genero"/>
2338             </let>
2339           </when>
2340         </choose>
2341         <choose>
2342           <when>
2343             <test>
2344               <equal>
2345                 <clip pos="3" side="tl" part="gen"/>
2346                 <lit-tag v="GD"/>
2347               </equal>
2348             </test>
2349             <let>
2350               <clip pos="3" side="tl" part="gen"/>
2351               <var n="genero"/>
2352             </let>
2353           </when>
2354         </choose>
2355         <choose>
2356           <when>
2357             <test>
2358               <equal>
2359                 <clip pos="4" side="tl" part="gen"/>
2360                 <lit-tag v="GD"/>
2361               </equal>
2362             </test>
2363             <let>
2364               <clip pos="4" side="tl" part="gen"/>
2365               <var n="genero"/>
2366             </let>
2367           </when> 
2368         </choose>
2369         <choose>
2370           <when>
2371             <test>
2372               <equal>
2373                 <clip pos="1" side="tl" part="nbr"/>
2374                 <lit-tag v="ND"/>
2375               </equal>
2376             </test>
2377             <let>
2378               <clip pos="1" side="tl" part="nbr"/>
2379               <var n="numero"/>
2380             </let>
2381           </when>
2382         </choose>
2383         <choose>
2384           <when>
2385             <test>
2386               <equal>
2387                 <clip pos="2" side="tl" part="nbr"/>
2388                 <lit-tag v="ND"/>
2389               </equal>
2390             </test>
2391             <let>
2392               <clip pos="2" side="tl" part="nbr"/>
2393               <var n="numero"/>
2394             </let>
2395           </when>
2396         </choose>
2397         <choose>
2398           <when>
2399             <test>
2400               <equal>
2401                 <clip pos="3" side="tl" part="nbr"/>
2402                 <lit-tag v="ND"/>
2403               </equal>
2404             </test>
2405             <let>
2406               <clip pos="3" side="tl" part="nbr"/>
2407               <var n="numero"/>
2408             </let>
2409           </when>
2410         </choose>
2411         <choose>
2412           <when>
2413             <test>
2414               <equal>
2415                 <clip pos="4" side="tl" part="nbr"/>
2416                 <lit-tag v="ND"/>
2417               </equal>
2418             </test>
2419             <let>
2420               <clip pos="4" side="tl" part="nbr"/>
2421               <var n="numero"/>
2422             </let>
2423           </when>
2424         </choose>      
2425       </def-macro> 
2426                 
2427                 <def-macro n="f_lexverb" npar="1"> <!-- això és per donar etiqueta lèxica  a alguns verbs -->
2428                         <choose>
2429                                 <when>
2430                                         <test>
2431                                                 <or>
2432                                                         <equal>
2433                                                                 <clip pos="1" side="sl" part="lem"/>
2434                                                                 <lit v="anar"/>
2435                                                         </equal>
2436                                                         <equal>
2437                                                                 <clip pos="1" side="sl" part="lem"/>
2438                                                                 <lit v="dirigir"/>
2439                                                         </equal>
2440                                                         <equal>
2441                                                                 <clip pos="1" side="sl" part="lem"/>
2442                                                                 <lit v="córrer"/>
2443                                                         </equal>
2444                                                         <equal>
2445                                                                 <clip pos="1" side="sl" part="lem"/>
2446                                                                 <lit v="traslladar"/>
2447                                                         </equal>
2448                                                         <equal>
2449                                                                 <clip pos="1" side="sl" part="lem"/>
2450                                                                 <lit v="viatjar"/>
2451                                                         </equal>
2452                                                         <equal>
2453                                                                 <clip pos="1" side="sl" part="lem"/>
2454                                                                 <lit v="emigrar"/>
2455                                                         </equal>
2456                                                         <equal>
2457                                                                 <clip pos="1" side="sl" part="lem"/>
2458                                                                 <lit v="inmigrar"/>
2459                                                         </equal>
2460                                                         <equal>
2461                                                                 <clip pos="1" side="sl" part="lem"/>
2462                                                                 <lit v="moure"/>
2463                                                         </equal>
2464                                                         <equal>
2465                                                                 <clip pos="1" side="sl" part="lem"/>
2466                                                                 <lit v="venir"/>
2467                                                         </equal>
2468                                                         <equal>
2469                                                                 <clip pos="1" side="sl" part="lem"/>
2470                                                                 <lit v="vindre"/>
2471                                                         </equal>
2472                                                         <equal>
2473                                                                 <clip pos="1" side="sl" part="lem"/>
2474                                                                 <lit v="eixir"/>
2475                                                         </equal>
2476                                                         <equal>
2477                                                                 <clip pos="1" side="sl" part="lem"/>
2478                                                                 <lit v="sortir"/>
2479                                                         </equal>
2480                                                         <equal>
2481                                                                 <clip pos="1" side="sl" part="lem"/>
2482                                                                 <lit v="entrar"/>
2483                                                         </equal>
2484                                                         <equal>
2485                                                                 <clip pos="1" side="sl" part="lem"/>
2486                                                                 <lit v="pujar"/>
2487                                                         </equal>
2488                                                         <equal>
2489                                                                 <clip pos="1" side="sl" part="lem"/>
2490                                                                 <lit v="baixar"/>
2491                                                         </equal>
2492                                                         <equal>
2493                                                                 <clip pos="1" side="sl" part="lem"/>
2494                                                                 <lit v="apropar"/>
2495                                                         </equal>
2496                                                         <equal>
2497                                                                 <clip pos="1" side="sl" part="lem"/>
2498                                                                 <lit v="portar"/>
2499                                                         </equal>
2500                                                         <equal>
2501                                                                 <clip pos="1" side="sl" part="lem"/>
2502                                                                 <lit v="passar"/>
2503                                                         </equal>
2504                                                         <equal>
2505                                                                 <clip pos="1" side="sl" part="lem"/>
2506                                                                 <lit v="tornar"/>
2507                                                         </equal>
2508                                                         <equal>
2509                                                                 <clip pos="1" side="sl" part="lem"/>
2510                                                                 <lit v="arribar"/>
2511                                                         </equal>
2512                                                         <equal>
2513                                                                 <clip pos="1" side="sl" part="lem"/>
2514                                                                 <lit v="marxar"/>
2515                                                         </equal>
2516                                                         <equal>
2517                                                                 <clip pos="1" side="sl" part="lem"/>
2518                                                                 <lit v="enviar"/>
2519                                                         </equal>
2520                                                         <equal>
2521                                                                 <clip pos="1" side="sl" part="lem"/>
2522                                                                 <lit v="Anar"/>
2523                                                         </equal>
2524                                                         <equal>
2525                                                                 <clip pos="1" side="sl" part="lem"/>
2526                                                                 <lit v="Dirigir"/>
2527                                                         </equal>
2528                                                         <equal>
2529                                                                 <clip pos="1" side="sl" part="lem"/>
2530                                                                 <lit v="Córrer"/>
2531                                                         </equal>
2532                                                         <equal>
2533                                                                 <clip pos="1" side="sl" part="lem"/>
2534                                                                 <lit v="Traslladar"/>
2535                                                         </equal>
2536                                                         <equal>
2537                                                                 <clip pos="1" side="sl" part="lem"/>
2538                                                                 <lit v="Viatjar"/>
2539                                                         </equal>
2540                                                         <equal>
2541                                                                 <clip pos="1" side="sl" part="lem"/>
2542                                                                 <lit v="Emigrar"/>
2543                                                         </equal>
2544                                                         <equal>
2545                                                                 <clip pos="1" side="sl" part="lem"/>
2546                                                                 <lit v="Inmigrar"/>
2547                                                         </equal>
2548                                                         <equal>
2549                                                                 <clip pos="1" side="sl" part="lem"/>
2550                                                                 <lit v="Moure"/>
2551                                                         </equal>
2552                                                         <equal>
2553                                                                 <clip pos="1" side="sl" part="lem"/>
2554                                                                 <lit v="Venir"/>
2555                                                         </equal>
2556                                                         <equal>
2557                                                                 <clip pos="1" side="sl" part="lem"/>
2558                                                                 <lit v="Vindre"/>
2559                                                         </equal>
2560                                                         <equal>
2561                                                                 <clip pos="1" side="sl" part="lem"/>
2562                                                                 <lit v="Eixir"/>
2563                                                         </equal>
2564                                                         <equal>
2565                                                                 <clip pos="1" side="sl" part="lem"/>
2566                                                                 <lit v="Sortir"/>
2567                                                         </equal>
2568                                                         <equal>
2569                                                                 <clip pos="1" side="sl" part="lem"/>
2570                                                                 <lit v="Entrar"/>
2571                                                         </equal>
2572                                                         <equal>
2573                                                                 <clip pos="1" side="sl" part="lem"/>
2574                                                                 <lit v="Pujar"/>
2575                                                         </equal>
2576                                                         <equal>
2577                                                                 <clip pos="1" side="sl" part="lem"/>
2578                                                                 <lit v="Baixar"/>
2579                                                         </equal>
2580                                                         <equal>
2581                                                                 <clip pos="1" side="sl" part="lem"/>
2582                                                                 <lit v="Apropar"/>
2583                                                         </equal>
2584                                                         <equal>
2585                                                                 <clip pos="1" side="sl" part="lem"/>
2586                                                                 <lit v="Portar"/>
2587                                                         </equal>
2588                                                         <equal>
2589                                                                 <clip pos="1" side="sl" part="lem"/>
2590                                                                 <lit v="Passar"/>
2591                                                         </equal>
2592                                                         <equal>
2593                                                                 <clip pos="1" side="sl" part="lem"/>
2594                                                                 <lit v="Tornar"/>
2595                                                         </equal>
2596                                                         <equal>
2597                                                                 <clip pos="1" side="sl" part="lem"/>
2598                                                                 <lit v="Arribar"/>
2599                                                         </equal>
2600                                                         <equal>
2601                                                                 <clip pos="1" side="sl" part="lem"/>
2602                                                                 <lit v="Marxar"/>
2603                                                         </equal>
2604                                                         <equal>
2605                                                                 <clip pos="1" side="sl" part="lem"/>
2606                                                                 <lit v="Enviar"/>
2607                                                         </equal>
2608                                                 </or>
2609                                         </test>
2610                                         <let>
2611                                                 <var n="tipusverb"/>
2612                                                 <lit-tag v="mov"/>
2613                                         </let>
2614                                 </when>
2615                                 <otherwise>
2616                                         <choose>
2617                                                 <when>
2618                                                         <test>
2619                                                                 <or>
2620                                                                         <equal>
2621                                                                                 <clip pos="1" side="sl" part="lem"/>
2622                                                                                 <lit v="ser"/>
2623                                                                         </equal>
2624                                                                         <equal>
2625                                                                                 <clip pos="1" side="sl" part="lem"/>
2626                                                                                 <lit v="estar"/>
2627                                                                         </equal>
2628                                                                         <equal>
2629                                                                                 <clip pos="1" side="sl" part="lem"/>
2630                                                                                 <lit v="Ser"/>
2631                                                                         </equal>
2632                                                                         <equal>
2633                                                                                 <clip pos="1" side="sl" part="lem"/>
2634                                                                                 <lit v="Estar"/>
2635                                                                         </equal>
2636                                                                 </or>
2637                                                         </test>
2638                                                         <let>
2639                                                                 <var n="tipusverb"/>
2640                                                                 <lit-tag v="estat"/>
2641                                                         </let>
2642                                                 </when>
2643                                                 <otherwise>
2644                                                         <let>
2645                                                                 <var n="tipusverb"/>
2646                                                                 <lit-tag v="no"/>
2647                                                         </let>
2648                                                 </otherwise>
2649                                         </choose>
2650                                 </otherwise>
2651                         </choose>
2652                 </def-macro>
2653                 
2654                 <def-macro n="f_lexprep" npar="1">
2655                         <choose>
2656                                 <when>
2657                                         <test>
2658                                                 <equal>
2659                                                         <clip pos="1" side="sl" part="lem"/>
2660                                                         <lit v="a"/>
2661                                                 </equal>
2662                                         </test>
2663                                         <choose>
2664                                                 <when>
2665                                                         <test>
2666                                                                 <equal>
2667                                                                         <var n="tipusverb"/>
2668                                                                         <lit-tag v="mov"/>
2669                                                                 </equal>
2670                                                         </test>
2671                                                         <let>
2672                                                                 <clip pos="1" side="tl" part="lem"/>
2673                                                                 <lit v="tà"/>
2674                                                         </let>
2675                                                 </when>
2676                                                 <otherwise>
2677                                         <!--            <choose>
2678                                                                 <when>
2679                                                                         <test>
2680                                                                                 <equal>
2681                                                                                         <var n="tipusverb"/>
2682                                                                                         <lit-tag v="estat"/>
2683                                                                                 </equal>
2684                                                                         </test>-->
2685                                                                         <let>
2686                                                                                 <clip pos="1" side="tl" part="lem"/>
2687                                                                                 <lit v="en"/>
2688                                                                         </let>
2689                                         <!--                    </when>
2690                                                         </choose>-->
2691                                                 </otherwise>
2692                                         </choose>
2693                                 </when>
2694                         </choose>
2695                 
2696          </def-macro>
2697    
2698 </section-def-macros>
2700 <section-rules>
2701         
2702         <rule> <!-- REGLA: DETERMINANT -->
2703                 <pattern>
2704                         <pattern-item n="det"/>
2705                 </pattern>
2706                 <action>
2707                         <call-macro n="f_concord1">
2708                                 <with-param pos="1"/>
2709                         </call-macro>     
2710                         <out> 
2711                                 <lu>    
2712                                         <clip pos="1" side="tl" part="whole"/>
2713                                 </lu> 
2714                         </out>
2715                 </action>
2716         </rule>
2717         
2718         
2719         
2720         <rule> <!-- REGLA: NOM -->
2721                 <pattern>
2722                         <pattern-item n="nom"/>
2723                 </pattern>
2724                 <action>        
2725                         <call-macro n="f_concord1">
2726                                 <with-param pos="1"/>
2727                         </call-macro>     
2728                         <out>  
2729                                 <lu> 
2730                                         <clip pos="1" side="tl" part="whole"/>
2731                                 </lu>
2732                         </out>
2733                 </action>
2734         </rule>
2735         
2736         <rule> <!-- REGLA: ADJECTIU -->
2737                 <pattern>
2738                         <pattern-item n="adj"/>
2739                 </pattern>
2740                 <action>        
2741                         <call-macro n="f_concord1">
2742                                 <with-param pos="1"/>
2743                         </call-macro>     
2744                         <out>   
2745                                 <lu>
2746                                         <clip pos="1" side="tl" part="whole"/>
2747                                 </lu>
2748                         </out>
2749                 </action>
2750         </rule>
2751         
2752         <rule> <!-- REGLA: PRONOM -->
2753                 <pattern>
2754                         <pattern-item n="prn"/>
2755                 </pattern>
2756                 <action>
2757                         <choose>
2758                                 <when>
2759                                         <test> 
2760                                                 <equal>
2761                                                         <clip pos="1" side="tl" part="gen"/>
2762                                                         <lit-tag v="GD"/>
2763                                                 </equal>
2764                                         </test>
2765                                         <let>
2766                                                 <clip pos="1" side="tl" part="gen"/>
2767                                                 <lit-tag v="m"/>
2768                                         </let>
2769                                 </when>
2770                         </choose>
2771                         <choose>
2772                                 <when>
2773                                         <test> 
2774                                                 <equal>
2775                                                         <clip pos="1" side="tl" part="nbr"/>
2776                                                         <lit-tag v="ND"/>
2777                                                 </equal>
2778                                         </test>
2779                                         <let>
2780                                                 <clip pos="1" side="tl" part="nbr"/>
2781                                                 <lit-tag v="sg"/>
2782                                         </let>
2783                                 </when>
2784                         </choose>       
2785                         <out>   
2786                                 <lu>
2787                                         <clip pos="1" side="tl" part="whole"/>
2788                                 </lu>
2789                         </out>
2790                 </action>
2791         </rule>
2792         
2793         <rule> <!-- REGLA: DETERMINANT NOM -->
2794                 <pattern>
2795                         <pattern-item n="det"/>
2796                         <pattern-item n="nom"/>
2797                 </pattern>
2798                 <action>
2799                         <call-macro n="f_concord2">
2800                                 <with-param pos="2"/>
2801                                 <with-param pos="1"/>
2802                         </call-macro>     
2803                         <out>     
2804                                 <lu>
2805                                         <clip pos="1" side="tl" part="whole"/>
2806                                 </lu>
2807                                 <b pos="1"/> 
2808                                 <lu>
2809                                         <clip pos="2" side="tl" part="whole"/>
2810                                 </lu>  
2811                         </out>
2812                 </action>
2813         </rule>
2814         
2815         <rule> <!-- REGLA: NOM ADJECTIU-->
2816                 <pattern>
2817                         <pattern-item n="nom"/>
2818                         <pattern-item n="adjec"/>
2819                 </pattern>
2820                 <action>
2821                         <call-macro n="f_concord2">
2822                                 <with-param pos="1"/>
2823                                 <with-param pos="2"/>
2824                         </call-macro>     
2825                         <out>   
2826                                 <lu>
2827                                         <clip pos="1" side="tl" part="whole"/>
2828                                 </lu>
2829                                 <b pos="1"/>
2830                                 <lu>
2831                                         <clip pos="2" side="tl" part="lemh"/>
2832                                         <clip pos="2" side="tl" part="a_adjec"/>
2833                                         <clip pos="2" side="tl" part="gen"/>
2834                                         <clip pos="2" side="tl" part="nbr"/>
2835                                         <clip pos="2" side="tl" part="lemq"/>
2836                                 </lu>  
2837                         </out>
2838                 </action>
2839         </rule>
2840         
2841         
2842         <rule> <!-- REGLA: ADJECTIU NOM -->
2843                 <pattern>
2844                         <pattern-item n="adjec"/>
2845                         <pattern-item n="nom"/>
2846                 </pattern>
2847                 <action>
2848                         <call-macro n="f_concord2">
2849                                 <with-param pos="2"/>
2850                                 <with-param pos="1"/>
2851                         </call-macro> 
2852                         <out> 
2853                                 <lu>
2854                                         <clip pos="1" side="tl" part="lemh"/>
2855                                         <clip pos="1" side="tl" part="a_adjec"/>
2856                                         <clip pos="1" side="tl" part="gen"/>
2857                                         <clip pos="1" side="tl" part="nbr"/>
2858                                         <clip pos="1" side="tl" part="lemq"/>
2859                                 </lu>  
2860                                 <b pos="1"/>
2861                                 <lu> 
2862                                         <clip pos="2" side="tl" part="whole"/>
2863                                 </lu>
2864                         </out>
2865                 </action>
2866         </rule>
2867         
2868         <rule> <!-- REGLA: DET NOM ADJECTIU-->
2869                 <pattern>
2870                         <pattern-item n="det"/>
2871                         <pattern-item n="nom"/>
2872                         <pattern-item n="adjec"/>
2873                 </pattern>
2874                 <action>
2875                         <call-macro n="f_concord3">
2876                                 <with-param pos="2"/>
2877                                 <with-param pos="3"/>
2878                                 <with-param pos="1"/>
2879                         </call-macro>     
2880                         <out>    
2881                                 <lu>  
2882                                         <clip pos="1" side="tl" part="whole"/>
2883                                 </lu> 
2884                                 <b pos="1"/>
2885                                 
2886                                 <lu>
2887                                         <clip pos="2" side="tl" part="whole"/>
2888                                 </lu>
2889                                 <b pos="2"/>
2890                                 <lu>
2891                                         <clip pos="3" side="tl" part="lemh"/>
2892                                         <clip pos="3" side="tl" part="a_adjec"/>
2893                                         <clip pos="3" side="tl" part="gen"/>
2894                                         <clip pos="3" side="tl" part="nbr"/>
2895                                         <clip pos="3" side="tl" part="lemq"/>
2896                                 </lu>  
2897                         </out>
2898                 </action>
2899         </rule>
2900         
2901         <rule> <!-- REGLA: DET NOM ADJECTIU ADJECTIU-->
2902                 <pattern>
2903                         <pattern-item n="det"/>
2904                         <pattern-item n="nom"/>
2905                         <pattern-item n="adjec"/>
2906                         <pattern-item n="adjec"/>
2907                 </pattern>
2908                 <action>
2909                         <call-macro n="f_concord4">
2910                                 <with-param pos="2"/>
2911                                 <with-param pos="3"/>
2912                                 <with-param pos="4"/>
2913                                 <with-param pos="1"/>
2914                         </call-macro>     
2915                         <out>    
2916                                 <lu>  
2917                                         <clip pos="1" side="tl" part="whole"/>
2918                                 </lu> 
2919                                 <b pos="1"/>
2920                                 <lu>
2921                                         <clip pos="2" side="tl" part="whole"/>
2922                                 </lu>
2923                                 <b pos="2"/>
2924                                 <lu>
2925                                         <clip pos="3" side="tl" part="lemh"/>
2926                                         <clip pos="3" side="tl" part="a_adjec"/>
2927                                         <clip pos="3" side="tl" part="gen"/>
2928                                         <clip pos="3" side="tl" part="nbr"/>
2929                                         <clip pos="3" side="tl" part="lemq"/>
2930                                 </lu>  
2931                                 <b pos="3"/>
2932                                 <lu>
2933                                         <clip pos="4" side="tl" part="lemh"/>
2934                                         <clip pos="4" side="tl" part="a_adjec"/>
2935                                         <clip pos="4" side="tl" part="gen"/>
2936                                         <clip pos="4" side="tl" part="nbr"/>
2937                                         <clip pos="4" side="tl" part="lemq"/>
2938                                 </lu>  
2939                         </out>
2940                 </action>
2941         </rule>
2942         
2943         <rule> <!-- REGLA: NOM ADJECTIU ADJECTIU-->
2944                 <pattern>
2945                         <pattern-item n="nom"/>
2946                         <pattern-item n="adjec"/>
2947                         <pattern-item n="adjec"/>
2948                 </pattern>
2949                 <action>
2950                         <call-macro n="f_concord3">
2951                                 <with-param pos="1"/>
2952                                 <with-param pos="2"/>
2953                                 <with-param pos="3"/>
2954                         </call-macro>     
2955                         <out>    
2956                                 <lu>  
2957                                         <clip pos="1" side="tl" part="whole"/>
2958                                 </lu> 
2959                                 <b pos="1"/>
2960                                 <lu>
2961                                         <clip pos="2" side="tl" part="lemh"/>
2962                                         <clip pos="2" side="tl" part="a_adjec"/>
2963                                         <clip pos="2" side="tl" part="gen"/>
2964                                         <clip pos="2" side="tl" part="nbr"/>
2965                                         <clip pos="2" side="tl" part="lemq"/>
2966                                 </lu>  
2967                                 <b pos="2"/>
2968                                 <lu>
2969                                         <clip pos="3" side="tl" part="lemh"/>
2970                                         <clip pos="3" side="tl" part="a_adjec"/>
2971                                         <clip pos="3" side="tl" part="gen"/>
2972                                         <clip pos="3" side="tl" part="nbr"/>
2973                                         <clip pos="3" side="tl" part="lemq"/>
2974                                 </lu>  
2975                         </out>
2976                 </action>
2977         </rule>
2978         
2979         
2980         <rule> <!-- REGLA: DET ADJECTIU NOM-->
2981                 <pattern>
2982                         <pattern-item n="det"/>
2983                         <pattern-item n="adjec"/>
2984                         <pattern-item n="nom"/>
2985                 </pattern>
2986                 <action>
2987                         <call-macro n="f_concord3">
2988                                 <with-param pos="3"/>
2989                                 <with-param pos="2"/>
2990                                 <with-param pos="1"/>
2991                         </call-macro>  
2992                         <out>  
2993                                 <lu>    
2994                                         <clip pos="1" side="tl" part="whole"/>
2995                                 </lu>
2996                                 <b pos="1"/>
2997                                 <lu>
2998                                         <clip pos="2" side="tl" part="lemh"/>
2999                                         <clip pos="2" side="tl" part="a_adjec"/>
3000                                         <clip pos="2" side="tl" part="gen"/>
3001                                         <clip pos="2" side="tl" part="nbr"/>
3002                                         <clip pos="2" side="tl" part="lemq"/>
3003                                 </lu>  
3004                                 <b pos="2"/>
3005                                 <lu>
3006                                         <clip pos="3" side="tl" part="whole"/>
3007                                 </lu>
3008                         </out>
3009                 </action>
3010         </rule>
3012         
3013         <rule> <!-- REGLA: PREDET DET NOM-->
3014                 <pattern>
3015                         <pattern-item n="predet"/>
3016                         <pattern-item n="det"/>
3017                         <pattern-item n="nom"/>
3018                 </pattern>
3019                 <action>
3020                         <call-macro n="f_concord3">
3021                                 <with-param pos="3"/>           
3022                                 <with-param pos="2"/>
3023                                 <with-param pos="1"/>
3024                         </call-macro>     
3025                         <out> 
3026                                 <lu>    
3027                                         <clip pos="1" side="tl" part="whole"/>
3028                                 </lu>
3029                                 <b pos="1"/>
3030                                 <lu>
3031                                         <clip pos="2" side="tl" part="whole"/>
3032                                 </lu>
3033                                 <b pos="2"/>
3034                                 <lu>
3035                                         <clip pos="3" side="tl" part="whole"/>
3036                                 </lu>       
3037                         </out>
3038                 </action>
3039         </rule>
3040         
3041         <rule> <!-- REGLA: PREDET DET NOM ADJECTIU-->
3042                 <pattern>
3043                         <pattern-item n="predet"/>
3044                         <pattern-item n="det"/>
3045                         <pattern-item n="nom"/>
3046                         <pattern-item n="adjec"/>
3047                 </pattern>
3048                 <action>
3049                         <call-macro n="f_concord4">
3050                                 <with-param pos="3"/>
3051                                 <with-param pos="4"/>
3052                                 <with-param pos="2"/>
3053                                 <with-param pos="1"/>
3054                         </call-macro>     
3055                         <out> 
3056                                 <lu>    
3057                                         <clip pos="1" side="tl" part="whole"/>
3058                                 </lu>
3059                                 <b pos="1"/>
3060                                 <lu>
3061                                         <clip pos="2" side="tl" part="whole"/>
3062                                 </lu>
3063                                 <b pos="2"/>
3064                                 <lu>
3065                                         <clip pos="3" side="tl" part="whole"/>
3066                                 </lu>
3067                                 <b pos="3"/>
3068                                 <lu>
3069                                         <clip pos="4" side="tl" part="lemh"/>
3070                                         <clip pos="4" side="tl" part="a_adjec"/>
3071                                         <clip pos="4" side="tl" part="gen"/>
3072                                         <clip pos="4" side="tl" part="nbr"/>
3073                                         <clip pos="4" side="tl" part="lemq"/>
3074                                 </lu>  
3075                         </out>
3076                 </action>
3077         </rule>
3078         
3079         <rule> <!-- REGLA: DETERMINANT ADJECTIU-->
3080                 <pattern>
3081                         <pattern-item n="det"/>
3082                         <pattern-item n="adjec"/>
3083                 </pattern>
3084                 <action>
3085                         <call-macro n="f_concord2">
3086                                 <with-param pos="2"/>
3087                                 <with-param pos="1"/>
3088                         </call-macro>     
3089                         <out>     
3090                                 <lu>
3091                                         <clip pos="1" side="tl" part="whole"/>
3092                                 </lu>
3093                                 <b pos="1"/>
3094                                 <lu>
3095                                         <clip pos="2" side="tl" part="lemh"/>
3096                                         <clip pos="2" side="tl" part="a_adjec"/>
3097                                         <clip pos="2" side="tl" part="gen"/>
3098                                         <clip pos="2" side="tl" part="nbr"/>
3099                                         <clip pos="2" side="tl" part="lemq"/>
3100                                 </lu>  
3101                         </out>
3102                 </action>
3103         </rule>
3104         
3105         <rule> <!-- REGLA: ADJECTIU NOM ADJECTIU-->
3106                 <pattern> 
3107                         <pattern-item n="adj"/>
3108                         <pattern-item n="nom"/>
3109                         <pattern-item n="adjec"/>
3110                 </pattern>
3111                 <action>
3112                         <call-macro n="f_concord3">
3113                                 <with-param pos="2"/>
3114                                 <with-param pos="3"/>
3115                                 <with-param pos="1"/>
3116                         </call-macro>  
3117                         <out>  
3118                                 <lu>
3119                                         <clip pos="1" side="tl" part="lemh"/>
3120                                         <clip pos="1" side="tl" part="a_adjec"/>
3121                                         <clip pos="1" side="tl" part="gen"/>
3122                                         <clip pos="1" side="tl" part="nbr"/>
3123                                         <clip pos="1" side="tl" part="lemq"/>
3124                                 </lu>  
3125                                 <b pos="1"/>
3126                                 <lu>
3127                                         <clip pos="2" side="tl" part="whole"/>
3128                                 </lu>
3129                                 <b pos="2"/>
3130                                 <lu>
3131                                         <clip pos="3" side="tl" part="lemh"/>
3132                                         <clip pos="3" side="tl" part="a_adjec"/>
3133                                         <clip pos="3" side="tl" part="gen"/>
3134                                         <clip pos="3" side="tl" part="nbr"/>
3135                                         <clip pos="3" side="tl" part="lemq"/>
3136                                 </lu>  
3137                         </out>
3138                 </action>
3139         </rule>
3140         
3141         <rule> <!-- REGLA: DET ADJECTIU NOM ADJECTIU -->
3142                 <pattern>
3143                         <pattern-item n="det"/>
3144                         <pattern-item n="adjec"/>
3145                         <pattern-item n="nom"/>
3146                         <pattern-item n="adjec"/>
3147                 </pattern>
3148                 <action>
3149                         <call-macro n="f_concord4">
3150                                 <with-param pos="3"/>
3151                                 <with-param pos="4"/>
3152                                 <with-param pos="2"/>
3153                                 <with-param pos="1"/>
3154                         </call-macro>  
3155                         <out> 
3156                                 <lu>    
3157                                         <clip pos="1" side="tl" part="whole"/>
3158                                 </lu>
3159                                 <b pos="1"/>
3160                                 <lu>
3161                                         <clip pos="2" side="tl" part="lemh"/>
3162                                         <clip pos="2" side="tl" part="a_adjec"/>
3163                                         <clip pos="2" side="tl" part="gen"/>
3164                                         <clip pos="2" side="tl" part="nbr"/>
3165                                         <clip pos="2" side="tl" part="lemq"/>
3166                                 </lu>  
3167                                 <b pos="2"/>
3168                                 <lu>
3169                                         <clip pos="3" side="tl" part="whole"/>
3170                                 </lu>
3171                                 <b pos="3"/>
3172                                 <lu>
3173                                         <clip pos="4" side="tl" part="lemh"/>
3174                                         <clip pos="4" side="tl" part="a_adjec"/>
3175                                         <clip pos="4" side="tl" part="gen"/>
3176                                         <clip pos="4" side="tl" part="nbr"/>
3177                                         <clip pos="4" side="tl" part="lemq"/>
3178                                 </lu>  
3179                         </out>
3180                 </action>
3181         </rule>
3182         
3183         
3184         <rule> <!-- REGLA: NOM ADVERBI ADJECTIU-->
3185                 <pattern>
3186                         <pattern-item n="nom"/>
3187                         <pattern-item n="adv"/>
3188                         <pattern-item n="adjec"/>
3189                 </pattern>
3190                 <action>
3191                         <call-macro n="f_concord2">
3192                                 <with-param pos="1"/>
3193                                 <with-param pos="3"/>
3194                         </call-macro>     
3195                         <out>   
3196                                 <lu>
3197                                         <clip pos="1" side="tl" part="whole"/>
3198                                 </lu>
3199                                 <b pos="1"/>
3200                                 <lu>
3201                                         <clip pos="2" side="tl" part="whole"/>
3202                                 </lu>
3203                                 <b pos="2"/>
3204                                 <lu>
3205                                         <clip pos="3" side="tl" part="lemh"/>
3206                                         <clip pos="3" side="tl" part="a_adjec"/>
3207                                         <clip pos="3" side="tl" part="gen"/>
3208                                         <clip pos="3" side="tl" part="nbr"/>
3209                                         <clip pos="3" side="tl" part="lemq"/>
3210                                 </lu>  
3211                         </out>
3212                 </action>
3213         </rule>
3214         
3215         <rule> <!-- REGLA: DET NOM ADVERBI ADJECTIU -->
3216                 <pattern>
3217                         <pattern-item n="det"/>
3218                         <pattern-item n="nom"/>
3219                         <pattern-item n="adv"/>
3220                         <pattern-item n="adjec"/>
3221                 </pattern>
3222                 <action>
3223                         <call-macro n="f_concord3">
3224                                 <with-param pos="2"/>
3225                                 <with-param pos="1"/>
3226                                 <with-param pos="4"/>
3227                         </call-macro>     
3228                         <out>  
3229                                 <lu>    
3230                                         <clip pos="1" side="tl" part="whole"/>
3231                                 </lu>
3232                                 <b pos="1"/>
3233                                 <lu>    
3234                                         <clip pos="2" side="tl" part="whole"/>
3235                                 </lu>
3236                                 <b pos="2"/>
3237                                 <lu>
3238                                         <clip pos="3" side="tl" part="whole"/>
3239                                 </lu>
3240                                 <b pos="3"/>
3241                                 <lu>
3242                                         <clip pos="4" side="tl" part="lemh"/>
3243                                         <clip pos="4" side="tl" part="a_adjec"/>
3244                                         <clip pos="4" side="tl" part="gen"/>
3245                                         <clip pos="4" side="tl" part="nbr"/>
3246                                         <clip pos="4" side="tl" part="lemq"/>
3247                                 </lu>  
3248                         </out>
3249                 </action>
3250         </rule>
3251         
3252         
3253         <rule> <!-- REGLA: DET ADVERBI NOM-->
3254                 <pattern>
3255                         <pattern-item n="det"/>
3256                         <pattern-item n="adv"/>
3257                         <pattern-item n="nom"/>
3258                 </pattern>
3259                 <action>
3260                         <call-macro n="f_concord2">
3261                                 <with-param pos="3"/>
3262                                 <with-param pos="1"/>
3263                         </call-macro>     
3264                         <out>   
3265                                 <lu>
3266                                         <clip pos="1" side="tl" part="whole"/>
3267                                 </lu>
3268                                 <b pos="1"/>
3269                                 <lu>
3270                                         <clip pos="2" side="tl" part="whole"/>
3271                                 </lu>
3272                                 <b pos="2"/>
3273                                 <lu>
3274                                         <clip pos="3" side="tl" part="whole"/>
3275                                 </lu>  
3276                         </out>
3277                 </action>
3278         </rule>
3279         
3280         
3281         <rule> <!-- REGLA: NUMERAL NOM -->
3282                 <pattern>
3283                         <pattern-item n="num"/>
3284                         <pattern-item n="nom"/>
3285                 </pattern>
3286                 <action>
3287                         <call-macro n="f_concord2">
3288                                 <with-param pos="2"/>
3289                                 <with-param pos="1"/>
3290                         </call-macro>     
3291                         <out>     
3292                                 <lu>
3293                                         <clip pos="1" side="tl" part="whole"/>
3294                                 </lu>
3295                                 <b pos="1"/>
3296                                 
3297                                 <lu>
3298                                         <clip pos="2" side="tl" part="whole"/>
3299                                 </lu>  
3300                         </out>
3301                 </action>
3302         </rule>
3303         
3304         <rule> <!-- REGLA: NUMERAL ADJECTIU -->
3305                 <pattern>
3306                         <pattern-item n="num"/>
3307                         <pattern-item n="adjec"/>
3308                 </pattern>
3309                 <action>
3310                         <call-macro n="f_concord2">
3311                                 <with-param pos="2"/>
3312                                 <with-param pos="1"/>
3313                         </call-macro>     
3314                         <out>     
3315                                 <lu>
3316                                         <clip pos="1" side="tl" part="whole"/>
3317                                 </lu>
3318                                 <b pos="1"/>
3319                                 <lu>
3320                                         <clip pos="2" side="tl" part="lemh"/>
3321                                         <clip pos="2" side="tl" part="a_adjec"/>
3322                                         <clip pos="2" side="tl" part="gen"/>
3323                                         <clip pos="2" side="tl" part="nbr"/>
3324                                         <clip pos="2" side="tl" part="lemq"/>
3325                                 </lu>  
3326                         </out>
3327                 </action>
3328         </rule>
3329         
3330         
3331         <rule> <!-- REGLA: NUMERAL NOM ADJECTIU -->
3332                 <pattern>
3333                         <pattern-item n="num"/>
3334                         <pattern-item n="nom"/>
3335                         <pattern-item n="adjec"/>
3336                 </pattern>
3337                 <action>
3338                         <call-macro n="f_concord3">
3339                                 <with-param pos="2"/>
3340                                 <with-param pos="1"/>
3341                                 <with-param pos="3"/>
3342                         </call-macro>     
3343                         <out>     
3344                                 <lu>
3345                                         <clip pos="1" side="tl" part="whole"/>
3346                                 </lu>
3347                                 <b pos="1"/>
3348                                 
3349                                 <lu>
3350                                         <clip pos="2" side="tl" part="whole"/>
3351                                 </lu>  
3352                                 <b pos="2"/>
3353                                 <lu>
3354                                         <clip pos="3" side="tl" part="lemh"/>
3355                                         <clip pos="3" side="tl" part="a_adjec"/>
3356                                         <clip pos="3" side="tl" part="gen"/>
3357                                         <clip pos="3" side="tl" part="nbr"/>
3358                                         <clip pos="3" side="tl" part="lemq"/>
3359                                 </lu>  
3360                         </out>
3361                 </action>
3362         </rule>
3363         
3364         <rule> <!-- REGLA: NUMERAL ADJECTIU NOM -->
3365                 <pattern>
3366                         <pattern-item n="num"/>
3367                         <pattern-item n="adjec"/>
3368                         <pattern-item n="nom"/>
3369                 </pattern>
3370                 <action>
3371                         <call-macro n="f_concord3">
3372                                 <with-param pos="3"/>
3373                                 <with-param pos="2"/>
3374                                 <with-param pos="1"/>
3375                         </call-macro> 
3376                         <out>     
3377                                 <lu>
3378                                         <clip pos="1" side="tl" part="whole"/>
3379                                 </lu>
3380                                 <b pos="1"/>
3381                                 <lu>
3382                                         <clip pos="2" side="tl" part="lemh"/>
3383                                         <clip pos="2" side="tl" part="a_adjec"/>
3384                                         <clip pos="2" side="tl" part="gen"/>
3385                                         <clip pos="2" side="tl" part="nbr"/>
3386                                         <clip pos="2" side="tl" part="lemq"/>
3387                                 </lu>  
3388                                 <b pos="2"/>
3389                                 <lu>
3390                                         <clip pos="3" side="tl" part="whole"/>
3391                                 </lu>
3392                         </out>
3393                 </action>
3394         </rule>
3395         
3396         <rule> <!-- REGLA: NUMERAL ADJECTIU NOM -->
3397                 <pattern>
3398                         <pattern-item n="num"/>
3399                         <pattern-item n="adjec"/>
3400                         <pattern-item n="nom"/>
3401                 </pattern>
3402                 <action>
3403                         <call-macro n="f_concord3">
3404                                 <with-param pos="3"/>
3405                                 <with-param pos="2"/>
3406                                 <with-param pos="1"/>
3407                         </call-macro> 
3408                         <out>     
3409                                 <lu>
3410                                         <clip pos="1" side="tl" part="whole"/>
3411                                 </lu>
3412                                 <b pos="1"/>
3413                                 <lu>
3414                                         <clip pos="2" side="tl" part="lemh"/>
3415                                         <clip pos="2" side="tl" part="a_adjec"/>
3416                                         <clip pos="2" side="tl" part="gen"/>
3417                                         <clip pos="2" side="tl" part="nbr"/>
3418                                         <clip pos="2" side="tl" part="lemq"/>
3419                                 </lu>  
3420                                 <b pos="2"/>
3421                                 <lu>
3422                                         <clip pos="3" side="tl" part="whole"/>
3423                                 </lu>
3424                         </out>
3425                 </action>
3426         </rule>
3427         
3428         <rule> <!-- REGLA: NUMERAL prep det NOM -->
3429                 <pattern>
3430                         <pattern-item n="num"/>
3431                         <pattern-item n="prep"/>
3432                         <pattern-item n="det"/>
3433                         <pattern-item n="nom"/>
3434                 </pattern>
3435                 <action>
3436                         <call-macro n="f_concord3">
3437                                 <with-param pos="4"/>
3438                                 <with-param pos="3"/>
3439                                 <with-param pos="1"/>
3440                         </call-macro> 
3441                         <out>     
3442                                 <lu>
3443                                         <clip pos="1" side="tl" part="whole"/>
3444                                 </lu>
3445                                 <b pos="1"/>
3446                                 <lu>
3447                                         <clip pos="2" side="tl" part="whole"/>
3448                                 </lu>  
3449                                 <b pos="2"/>
3450                                 <lu>
3451                                         <clip pos="3" side="tl" part="whole"/>
3452                                 </lu>  
3453                                 <b pos="3"/>
3454                                 <lu>
3455                                         <clip pos="4" side="tl" part="whole"/>
3456                                 </lu>
3457                         </out>
3458                 </action>
3459         </rule>
3460         
3461         <rule> <!-- REGLA: NUMERAL prep det NOM adj-->
3462                 <pattern>
3463                         <pattern-item n="num"/>
3464                         <pattern-item n="prep"/>
3465                         <pattern-item n="det"/>
3466                         <pattern-item n="nom"/>
3467                         <pattern-item n="adjec"/>
3468                 </pattern>
3469                 <action>
3470                         <call-macro n="f_concord4">
3471                                 <with-param pos="4"/>
3472                                 <with-param pos="3"/>
3473                                 <with-param pos="5"/>
3474                                 <with-param pos="1"/>
3475                         </call-macro> 
3476                         <out>     
3477                                 <lu>
3478                                         <clip pos="1" side="tl" part="whole"/>
3479                                 </lu>
3480                                 <b pos="1"/>
3481                                 <lu>
3482                                         <clip pos="2" side="tl" part="whole"/>
3483                                 </lu>  
3484                                 <b pos="2"/>
3485                                 <lu>
3486                                         <clip pos="3" side="tl" part="whole"/>
3487                                 </lu>  
3488                                 <b pos="3"/>
3489                                 <lu>
3490                                         <clip pos="4" side="tl" part="whole"/>
3491                                 </lu>
3492                                 <b pos="4"/>
3493                                 <lu>
3494                                         <clip pos="5" side="tl" part="lemh"/>
3495                                         <clip pos="5" side="tl" part="a_adjec"/>
3496                                         <clip pos="5" side="tl" part="gen"/>
3497                                         <clip pos="5" side="tl" part="nbr"/>
3498                                         <clip pos="5" side="tl" part="lemq"/>
3499                                 </lu>  
3500                         </out>
3501                 </action>
3502         </rule>
3503         
3504         <rule> <!-- REGLA: NUMERAL prep det adj NOM -->
3505                 <pattern>
3506                         <pattern-item n="num"/>
3507                         <pattern-item n="prep"/>
3508                         <pattern-item n="det"/>
3509                         <pattern-item n="adjec"/>
3510                         <pattern-item n="nom"/>
3511                 </pattern>
3512                 <action>
3513                         <call-macro n="f_concord4">
3514                                 <with-param pos="4"/>
3515                                 <with-param pos="5"/>
3516                                 <with-param pos="3"/>
3517                                 <with-param pos="1"/>
3518                         </call-macro> 
3519                         <out>     
3520                                 <lu>
3521                                         <clip pos="1" side="tl" part="whole"/>
3522                                 </lu>
3523                                 <b pos="1"/>
3524                                 <lu>
3525                                         <clip pos="2" side="tl" part="whole"/>
3526                                 </lu>  
3527                                 <b pos="2"/>
3528                                 <lu>
3529                                         <clip pos="3" side="tl" part="whole"/>
3530                                 </lu>  
3531                                 <b pos="3"/>
3532                                 <lu>
3533                                         <clip pos="4" side="tl" part="lemh"/>
3534                                         <clip pos="4" side="tl" part="a_adjec"/>
3535                                         <clip pos="4" side="tl" part="gen"/>
3536                                         <clip pos="4" side="tl" part="nbr"/>
3537                                         <clip pos="4" side="tl" part="lemq"/>
3538                                 </lu>  
3539                                 <b pos="4"/>
3540                                 <lu>
3541                                         <clip pos="5" side="tl" part="whole"/>
3542                                 </lu>
3543                         </out>
3544                 </action>
3545         </rule>
3546         
3547         <rule> <!-- REGLA: DET NUMERAL NOM -->
3548                 <pattern>
3549                         <pattern-item n="det"/>
3550                         <pattern-item n="num"/>
3551                         <pattern-item n="nom"/>
3552                 </pattern>
3553                 <action>
3554                         <call-macro n="f_concord3">
3555                                 <with-param pos="3"/>
3556                                 <with-param pos="2"/>
3557                                 <with-param pos="1"/>
3558                         </call-macro>     
3559                         <out>     
3560                                 <lu>
3561                                         <clip pos="1" side="tl" part="whole"/>
3562                                 </lu>
3563                                 <b pos="1"/>
3564                                 
3565                                 <lu>
3566                                         <clip pos="2" side="tl" part="whole"/>
3567                                 </lu>  
3568                                 <b pos="2"/>
3569                                 <lu>
3570                                         <clip pos="3" side="tl" part="whole"/>
3571                                 </lu>
3572                         </out>
3573                 </action>
3574         </rule>
3575         <rule> <!-- REGLA: RELAT --> <!-- revisar què fa aquesta regla!!!! : qui <ND>?-->
3576                         <pattern>
3577                                 <pattern-item n="relat"/>
3578                         </pattern>
3579                         <action>
3580                                 <call-macro n="f_concord1">
3581                                         <with-param pos="1"/>
3582                                 </call-macro>     
3583                                 <out>  
3584                                         <lu> 
3585                                                 <clip pos="1" side="tl" part="whole"/>
3586                                         </lu>
3587                                 </out>
3588                         </action>
3589    </rule>
3590         
3591         <rule> <!-- REGLA: PRETÈRIT INDEFINIT --><!-- tradueix "vaig dormir" per "dormí" -->
3592                 <pattern>
3593                         <pattern-item n="anar"/>
3594                         <pattern-item n="inf"/>
3595                 </pattern>
3596                 <action>
3597                         <call-macro n="f_lexverb">
3598                                 <with-param pos="2"/>
3599                         </call-macro>   
3600                         <out>
3601                                 <lu>
3602                                         <get-case-from pos="1">            
3603                                                 <clip pos="2" side="tl" part="lemh"/>
3604                                         </get-case-from>
3605                                         <clip pos="2" side="tl" part="a_verb"/>
3606                                         <lit-tag v="ifi"/>
3607                                         <clip pos="1" side="tl" part="persona"/>
3608                                         <clip pos="1" side="tl" part="nbr"/>
3609                                         <clip pos="2" side="tl" part="lemq"/>                  
3610                                 </lu>  
3611                         </out>  
3612                         <call-macro n="f_bcond">
3613                                 <with-param pos="1"/>
3614                         </call-macro>
3615                 </action>
3616         </rule>
3617         
3618          <rule> <!-- REGLA: PRETÈRIT INDEFINIT + ENCLÍTIC --><!-- Per traduir "van acabar-se" por "s'acabèren" -->
3619                  <pattern>
3620                          <pattern-item n="anar"/>
3621                          <pattern-item n="inf"/>
3622                          <pattern-item n="prnenc"/>
3623                  </pattern>
3624                  <action>
3625                          <call-macro n="f_lexverb">
3626                                  <with-param pos="2"/>
3627                          </call-macro>   
3628                          <out>
3629                                  <lu>
3630                                          <get-case-from pos="1">
3631                                                  <clip pos="3" side="tl" part="lem"/>
3632                                          </get-case-from> 
3633                                          <lit-tag v="prn.pro"/>
3634                                          <clip pos="3" side="sl" part="tipoenc_pro"/>
3635                                  </lu>
3636                                  <b pos="1"/>
3637                                  <lu>
3638                                          <clip pos="2" side="tl" part="lemh"/>
3639                                          <clip pos="2" side="tl" part="a_verb"/>
3640                                          <lit-tag v="ifi"/>
3641                                          <clip pos="1" side="tl" part="persona"/>
3642                                          <clip pos="1" side="tl" part="nbr"/>
3643                                          <clip pos="2" side="tl" part="lemq"/>                  
3644                                  </lu> 
3645                          </out>
3646                          
3647                  </action>
3648          </rule>
3650          
3651          <rule> <!-- REGLA: PRETÈRIT INDEFINIT + ENCLÍTIC + ENCLÍTIC --><!-- Per traduir "vam acabar-nos-els" por "mos les acabèrem"-->
3652                  <pattern>
3653                          <pattern-item n="anar"/>
3654                          <pattern-item n="inf"/>
3655                          <pattern-item n="prnenc"/>
3656                          <pattern-item n="prnenc"/>
3657                  </pattern>
3658                  <action>
3659                          <call-macro n="f_lexverb">
3660                                  <with-param pos="2"/>
3661                          </call-macro>   
3662                          <out>
3663                                  <lu>
3664                                          <get-case-from pos="1">
3665                                                  <clip pos="3" side="tl" part="lem"/>
3666                                          </get-case-from> 
3667                                          <lit-tag v="prn.pro"/>
3668                                          <clip pos="3" side="sl" part="tipoenc_pro"/>
3669                                  </lu>
3670                                  <b pos="1"/>
3671                                  <lu>           
3672                                          <clip pos="4" side="tl" part="lem"/>                
3673                                          <lit-tag v="prn.pro"/>
3674                                          <clip pos="4" side="sl" part="tipoenc_pro"/>
3675                                  </lu>
3676                                  <b/>                   
3677                                  
3678                                  <lu>
3679                                          <clip pos="2" side="tl" part="lemh"/>
3680                                          <clip pos="2" side="tl" part="a_verb"/>
3681                                          <lit-tag v="ifi"/>
3682                                          <clip pos="1" side="tl" part="persona"/>
3683                                          <clip pos="1" side="tl" part="nbr"/>
3684                                          <clip pos="2" side="tl" part="lemq"/>                  
3685                                  </lu> 
3686                          </out>
3687                          
3688                  </action>
3689         </rule>
3691         <rule> <!--REGLA: VERB (per a multiparaules sense enclítics)-->
3692                 <pattern>
3693                         <pattern-item n="verb"/>
3694                 </pattern>
3695                 <action>        
3696                         <call-macro n="f_gerundi">
3697                                 <with-param pos="1"/>
3698                         </call-macro>
3699                         <call-macro n="f_lexverb">
3700                                 <with-param pos="1"/>
3701                         </call-macro>   
3702                         
3703                         <out>                
3704                                 <lu>
3705                                         <clip pos="1" side="tl" part="lemh"/>
3706                                         <clip pos="1" side="tl" part="a_verb"/>
3707                                         <clip pos="1" side="tl" part="temps"/>
3708                                         <clip pos="1" side="tl" part="persona"/>
3709                                         <clip pos="1" side="tl" part="gen"/>
3710                                         <clip pos="1" side="tl" part="nbr"/>
3711                                         <clip pos="1" side="tl" part="lemq"/>
3712                                 </lu>           
3713                         </out>
3714                 </action>
3715         </rule>
3716         
3717         <rule> <!--REGLA: VERB + ENCLÍTIC-->
3718                 <pattern>
3719                         <pattern-item n="verb"/>
3720                         <pattern-item n="prnenc"/>
3721                 </pattern>
3722                 <action>
3723                         <call-macro n="f_lexverb">
3724                                 <with-param pos="1"/>
3725                         </call-macro>   
3726                         
3727                         <call-macro n="f_gerundi">
3728                                 <with-param pos="1"/>
3729                         </call-macro>
3730                         <out> 
3731                                 <mlu>
3732                                         <lu>
3733                                                 <clip pos="1" side="tl" part="lemh"/>
3734                                                 <clip pos="1" side="tl" part="a_verb"/>
3735                                                 <clip pos="1" side="tl" part="temps"/>
3736                                                 <clip pos="1" side="tl" part="persona"/>
3737                                                 <clip pos="1" side="tl" part="gen"/>
3738                                                 <clip pos="1" side="tl" part="nbr"/>
3739                                         </lu>
3740                                         <lu>
3741                                                 <clip pos="2" side="tl" part="lem"/>
3742                                                 <clip pos="2" side="tl" part="a_prnenc"/>
3743                                                 <clip pos="2" side="tl" part="persona"/>
3744                                                 <clip pos="2" side="tl" part="gen"/>
3745                                                 <clip pos="2" side="tl" part="nbr"/>
3746                                                 <clip pos="1" side="tl" part="lemq"/>
3747                                         </lu>
3748                                 </mlu>
3749                         </out>
3750                 </action>
3751         </rule>
3752         
3753         
3754         <rule> <!--REGLA: VERB + ENCLÍTIC + ENCLÍTIC-->
3755                 <pattern>
3756                         <pattern-item n="verb"/>
3757                         <pattern-item n="prnenc"/>
3758                         <pattern-item n="prnenc"/>
3759                 </pattern>
3760                 <action>
3761                         <call-macro n="f_lexverb">
3762                                 <with-param pos="1"/>
3763                         </call-macro>   
3764                         
3765                         <call-macro n="f_gerundi">
3766                                 <with-param pos="1"/>
3767                         </call-macro>
3768                         <out>
3769                                 <mlu>
3770                                         <lu>
3771                                                 <clip pos="1" side="tl" part="lemh"/>
3772                                                 <clip pos="1" side="tl" part="a_verb"/>
3773                                                 <clip pos="1" side="tl" part="temps"/>
3774                                                 <clip pos="1" side="tl" part="persona"/>
3775                                                 <clip pos="1" side="tl" part="nbr"/>
3776                                         </lu>
3777                                         <lu>
3778                                                 <clip pos="2" side="tl" part="lem"/>
3779                                                 <clip pos="2" side="tl" part="a_prnenc"/>
3780                                                 <clip pos="2" side="tl" part="persona"/>
3781                                                 <clip pos="2" side="tl" part="gen"/>
3782                                                 <clip pos="2" side="tl" part="nbr"/>
3783                                         </lu>  
3784                                         <lu>
3785                                                 <clip pos="3" side="tl" part="lem"/>
3786                                                 <clip pos="3" side="tl" part="a_prnenc"/>
3787                                                 <clip pos="3" side="tl" part="persona"/>
3788                                                 <clip pos="3" side="tl" part="gen"/>
3789                                                 <clip pos="3" side="tl" part="nbr"/>
3790                                                 <clip pos="1" side="tl" part="lemq"/>
3791                                         </lu>  
3792                                 </mlu>
3793                         </out>
3794                 </action>
3795         </rule>
3796         
3797         <rule> <!--REGLA: està cantant-> canta -->
3798                 <pattern>
3799                         <pattern-item n="estar"/>
3800                         <pattern-item n="gerundi"/>
3801                 </pattern>
3802                 <action>        
3803                         <call-macro n="f_lexverb">
3804                                 <with-param pos="2"/>
3805                         </call-macro>   
3806                         <out>
3807                                 <lu>
3808                                         <get-case-from pos="1">            
3809                                                 <clip pos="2" side="tl" part="lemh"/>
3810                                         </get-case-from>
3811                                         <clip pos="2" side="tl" part="a_verb"/>
3812                                         <clip pos="1" side="tl" part="temps"/>
3813                                         <clip pos="1" side="tl" part="persona"/>
3814                                         <clip pos="1" side="tl" part="gen"/>
3815                                         <clip pos="1" side="tl" part="nbr"/>
3816                                         <clip pos="2" side="tl" part="lemq"/>
3817                                 </lu>           
3818                         </out>
3819                         <call-macro n="f_bcond">
3820                                 <with-param pos="1"/>
3821                         </call-macro>
3822                 </action>
3823         </rule>
3824         
3825         <rule> <!--REGLA: està cantant-la -> la cante -->
3826                 <pattern>
3827                         <pattern-item n="estar"/>
3828                         <pattern-item n="gerundi"/>
3829                         <pattern-item n="prnenc"/>
3830                 </pattern>
3831                 <action>
3832                         <call-macro n="f_lexverb">
3833                                 <with-param pos="2"/>
3834                         </call-macro>   
3835                         <out> 
3836                                 <lu>
3837                                         <get-case-from pos="1">
3838                                                 <clip pos="3" side="tl" part="lem"/>
3839                                         </get-case-from>
3840                                         <lit-tag v="prn.pro"/>
3841                                         <clip pos="3" side="tl" part="persona"/>
3842                                         <clip pos="3" side="tl" part="gen"/>
3843                                         <clip pos="3" side="tl" part="nbr"/>
3844                                 </lu>
3845                                 <b pos="1"/>
3846                                 <lu>
3847                                         <clip pos="2" side="tl" part="lemh"/>
3848                                         <clip pos="2" side="tl" part="a_verb"/>
3849                                         <clip pos="1" side="tl" part="temps"/>
3850                                         <clip pos="1" side="tl" part="persona"/>
3851                                         <clip pos="1" side="tl" part="gen"/>
3852                                         <clip pos="1" side="tl" part="nbr"/>
3853                                         <clip pos="2" side="tl" part="lemq"/>
3854                                 </lu>
3855                         </out>
3856                         <call-macro n="f_bcond">
3857                                 <with-param pos="2"/>
3858                         </call-macro>
3859                 </action>
3860         </rule>
3861         
3862         <rule> <!--REGLA: està cantant-nos-la -> mos la cante -->
3863                 <pattern>
3864                         <pattern-item n="estar"/>
3865                         <pattern-item n="gerundi"/>
3866                         <pattern-item n="prnenc"/>
3867                         <pattern-item n="prnenc"/>
3868                 </pattern>
3869                 <action>
3870                         <call-macro n="f_lexverb">
3871                                 <with-param pos="2"/>
3872                         </call-macro>   
3873                         <out> 
3874                                 <lu>
3875                                         <get-case-from pos="1">
3876                                                 <clip pos="3" side="tl" part="lem"/>
3877                                         </get-case-from>
3878                                         <lit-tag v="prn.pro"/>
3879                                         <clip pos="3" side="tl" part="persona"/>
3880                                         <clip pos="3" side="tl" part="gen"/>
3881                                         <clip pos="3" side="tl" part="nbr"/>
3882                                 </lu>
3883                                 <b pos="1"/>
3884                                 <lu>
3885                                         <clip pos="4" side="tl" part="lem"/>
3886                                         <lit-tag v="prn.pro"/>
3887                                         <clip pos="4" side="tl" part="persona"/>
3888                                         <clip pos="4" side="tl" part="gen"/>
3889                                         <clip pos="4" side="tl" part="nbr"/>
3890                                 </lu>
3891                                 <b pos="2"/>
3892                                 <lu>
3893                                         <clip pos="2" side="tl" part="lemh"/>
3894                                         <clip pos="2" side="tl" part="a_verb"/>
3895                                         <clip pos="1" side="tl" part="temps"/>
3896                                         <clip pos="1" side="tl" part="persona"/>
3897                                         <clip pos="1" side="tl" part="gen"/>
3898                                         <clip pos="1" side="tl" part="nbr"/>
3899                                         <clip pos="2" side="tl" part="lemq"/>
3900                                 </lu>
3901                         </out>
3902                         <call-macro n="f_bcond">
3903                                 <with-param pos="3"/>
3904                         </call-macro>
3905                 </action>
3906         </rule>
3908         <rule> <!--REGLA: l'està cantant -> la cante -->
3909                 <pattern>
3910                         <pattern-item n="prnpro"/>
3911                         <pattern-item n="estar"/>
3912                         <pattern-item n="gerundi"/>
3913                         
3914                 </pattern>
3915                 <action>
3916                         <call-macro n="f_lexverb">
3917                                 <with-param pos="3"/>
3918                         </call-macro>   
3919                         <out> 
3920                                 <lu>
3921                                         <clip pos="1" side="tl" part="lem"/>
3922                                         <clip pos="1" side="tl" part="a_prnpro"/>
3923                                         <clip pos="1" side="tl" part="persona"/>
3924                                         <clip pos="1" side="tl" part="gen"/>
3925                                         <clip pos="1" side="tl" part="nbr"/>
3926                                 </lu>
3927                                 <b pos="1"/>
3928                                 <lu>
3929                                         <clip pos="3" side="tl" part="lemh"/>
3930                                         <clip pos="3" side="tl" part="a_verb"/>
3931                                         <clip pos="2" side="tl" part="temps"/>
3932                                         <clip pos="2" side="tl" part="persona"/>
3933                                         <clip pos="2" side="tl" part="gen"/>
3934                                         <clip pos="2" side="tl" part="nbr"/>
3935                                         <clip pos="3" side="tl" part="lemq"/>
3936                                 </lu>
3937                         </out>
3938                         <call-macro n="f_bcond">
3939                                 <with-param pos="2"/>
3940                         </call-macro>
3941                 </action>
3942         </rule>
3943         
3944         <rule> <!--REGLA: Ens l'està cantant -> mos la cante -->
3945                 <pattern>
3946                         <pattern-item n="prnpro"/>
3947                         <pattern-item n="prnpro"/>
3948                         <pattern-item n="estar"/>
3949                         <pattern-item n="gerundi"/>
3950                 </pattern>
3951                 <action>
3952                         <call-macro n="f_lexverb">
3953                                 <with-param pos="2"/>
3954                         </call-macro>   
3955                         <out> 
3956                                 <lu>
3957                                         <clip pos="1" side="tl" part="lem"/>
3958                                         <clip pos="1" side="tl" part="a_prnpro"/>
3959                                         <clip pos="1" side="tl" part="persona"/>
3960                                         <clip pos="1" side="tl" part="gen"/>
3961                                         <clip pos="1" side="tl" part="nbr"/>
3962                                 </lu>
3963                                 <b pos="1"/>
3964                                 <lu>
3965                                         <clip pos="2" side="tl" part="lem"/>
3966                                         <clip pos="2" side="tl" part="a_prnpro"/>
3967                                         <clip pos="2" side="tl" part="persona"/>
3968                                         <clip pos="2" side="tl" part="gen"/>
3969                                         <clip pos="2" side="tl" part="nbr"/>
3970                                 </lu>
3971                                 <b pos="2"/>
3972                                 <lu>
3973                                         <clip pos="4" side="tl" part="lemh"/>
3974                                         <clip pos="4" side="tl" part="a_verb"/>
3975                                         <clip pos="3" side="tl" part="temps"/>
3976                                         <clip pos="3" side="tl" part="persona"/>
3977                                         <clip pos="3" side="tl" part="gen"/>
3978                                         <clip pos="3" side="tl" part="nbr"/>
3979                                         <clip pos="4" side="tl" part="lemq"/>
3980                                 </lu>
3981                         </out>
3982                         <call-macro n="f_bcond">
3983                                 <with-param pos="3"/>
3984                         </call-macro>
3985                 </action>
3986         </rule>
3987         
3989         <rule> <!--REGLA: PRONOM DETERMINANT NOM: "Nosaltres les dones : nosates es el-que-sigui" -->
3990                 <pattern>
3991                         <pattern-item n="nosaltres"/>
3992                         <pattern-item n="det"/>
3993                         <pattern-item n="nom"/>
3994                 </pattern>
3995                 <action>
3996                         <call-macro n="f_concord3">
3997                                 <with-param pos="3"/>
3998                                 <with-param pos="2"/>
3999                                 <with-param pos="1"/>
4000                         </call-macro>     
4001                         <out>  
4002                                 <lu>  
4003                                         <clip pos="1" side="tl" part="lem"/>
4004                                         <clip pos="1" side="tl" part="a_prn"/>
4005                                         <clip pos="1" side="tl" part="gen"/>
4006                                         <clip pos="1" side="tl" part="nbr"/>
4007                                 </lu> 
4008                                 <b pos="1"/>
4009                                 
4010                                 <lu>
4011                                         <clip pos="2" side="tl" part="lem"/>
4012                                         <clip pos="2" side="tl" part="a_det"/>
4013                                         <clip pos="2" side="tl" part="gen"/>
4014                                         <clip pos="2" side="tl" part="nbr"/>
4015                                 </lu>
4016                                 <b pos="2"/>
4017                                 <lu>
4018                                         <clip pos="3" side="tl" part="lem"/>
4019                                         <clip pos="3" side="tl" part="a_nom"/>
4020                                         <clip pos="3" side="tl" part="gen"/>
4021                                         <clip pos="3" side="tl" part="nbr"/>
4022                                 </lu>
4023                         </out>
4024                 </action>
4025         </rule>
4026         
4027         <rule> <!--REGLA: PRONOM DETERMINANT ADJECTIU-->
4028                 <pattern>
4029                         <pattern-item n="nosaltres"/>
4030                         <pattern-item n="det"/>
4031                         <pattern-item n="adjec"/>
4032                 </pattern>
4033                 <action>
4034                         <call-macro n="f_concord3">
4035                                 <with-param pos="3"/>
4036                                 <with-param pos="2"/>
4037                                 <with-param pos="1"/>
4038                         </call-macro>     
4039                         <out>  
4040                                 <lu>  
4041                                         <clip pos="1" side="tl" part="lem"/>
4042                                         <clip pos="1" side="tl" part="a_prn"/>
4043                                         <clip pos="1" side="tl" part="gen"/>
4044                                         <clip pos="1" side="tl" part="nbr"/>
4045                                 </lu> 
4046                                 <b pos="1"/>
4047                                 
4048                                 <lu>
4049                                         <clip pos="2" side="tl" part="lem"/>
4050                                         <clip pos="2" side="tl" part="a_det"/>
4051                                         <clip pos="2" side="tl" part="gen"/>
4052                                         <clip pos="2" side="tl" part="nbr"/>
4053                                 </lu>
4054                                 <b pos="2"/>
4055                                 <lu>
4056                                         <clip pos="3" side="tl" part="lemh"/>
4057                                         <clip pos="3" side="tl" part="a_adjec"/>
4058                                         <clip pos="3" side="tl" part="gen"/>
4059                                         <clip pos="3" side="tl" part="nbr"/>
4060                                         <clip pos="3" side="tl" part="lemq"/>
4061                                 </lu>
4062                         </out>
4063                 </action>
4064         </rule>
4066         <!-- en aranès ens mengem el det davant de nom propi -->
4067 <rule> <!--REGLA: DETDEF + NOM PROPI (antropònim)-->
4068       <pattern>
4069         <pattern-item n="detdef"/>
4070         <pattern-item n="npant"/>
4071     </pattern>
4072     <action>
4073       <call-macro n="f_bcond">
4074                         <with-param pos="1"/>
4075       </call-macro>
4076       <out>
4077                         <lu>
4078                                 <clip pos="2" side="tl" part="lem"/>
4079                                 <clip pos="2" side="tl" part="a_npant"/>
4080                         </lu>
4081       </out>
4082     </action>
4083 </rule> 
4086 <rule> <!-- REGLA: per+inf > entà inf -->
4087         <pattern>
4088                 <pattern-item n="per"/>
4089                 <pattern-item n="inf"/>
4090         </pattern>
4091         <action>
4092                 <out>
4093                         <lu>
4094                                 <get-case-from pos="1">
4095                                         <lit v="entà"/>
4096                                 </get-case-from>
4097                                 <clip pos="1" side="tl" part="a_prep"/>
4098                         </lu> 
4099                         <b pos="1"/>
4100                         <lu>
4101                                 <clip pos="2" side="tl" part="lemh"/>
4102                                 <clip pos="2" side="tl" part="a_inf"/>
4103                                 <clip pos="2" side="tl" part="lemq"/>       
4104                         </lu>
4105         </out>  
4106         </action>
4107 </rule>
4108         
4109         
4110 <rule> <!-- REGLA: per+inf+enc > entà inf+enc -->
4111         <pattern>
4112                 <pattern-item n="per"/>
4113                 <pattern-item n="inf"/>
4114                 <pattern-item n="prnenc"/>
4115         </pattern>
4116         <action>
4117                 <out>
4118                         <lu>
4119                                 <get-case-from pos="1">
4120                                         <lit v="entà"/>
4121                                 </get-case-from>
4122                                 <clip pos="1" side="tl" part="a_prep"/>
4123                         </lu> 
4124                         <b pos="1"/>
4125                         <mlu>
4126                                 <lu>
4127                                         <clip pos="2" side="tl" part="lemh"/>
4128                                         <clip pos="2" side="tl" part="a_inf"/>
4129                                 </lu>
4130                                 <lu>
4131                                         <clip pos="3" side="tl" part="lem"/>
4132                                         <clip pos="3" side="tl" part="a_prnenc"/>
4133                                         <clip pos="3" side="tl" part="persona"/>
4134                                         <clip pos="3" side="tl" part="gen"/>
4135                                         <clip pos="3" side="tl" part="nbr"/>
4136                                         <clip pos="2" side="tl" part="lemq"/>
4137                                 </lu>
4138                         </mlu>
4139                 </out>  
4140         </action>
4141 </rule>
4143 <rule> <!-- REGLA: per+inf+enc+enc > entà inf+enc+enc -->
4144         <pattern>
4145                 <pattern-item n="per"/>
4146                 <pattern-item n="inf"/>
4147                 <pattern-item n="prnenc"/>
4148                 <pattern-item n="prnenc"/>
4149         </pattern>
4150         <action>
4151                 <out>
4152                         <lu>
4153                                 <get-case-from pos="1">
4154                                         <lit v="entà"/>
4155                                 </get-case-from>
4156                                 <clip pos="1" side="tl" part="a_prep"/>
4157                         </lu> 
4158                         <b pos="1"/>
4159                         <mlu>
4160                                 <lu>
4161                                         <clip pos="2" side="tl" part="lemh"/>
4162                                         <clip pos="2" side="tl" part="a_inf"/>
4163                                 </lu>
4164                                 <lu>
4165                                         <clip pos="3" side="tl" part="lem"/>
4166                                         <clip pos="3" side="tl" part="a_prnenc"/>
4167                                         <clip pos="3" side="tl" part="persona"/>
4168                                         <clip pos="3" side="tl" part="gen"/>
4169                                         <clip pos="3" side="tl" part="nbr"/>
4170                                 </lu>
4171                                 <lu>
4172                                         <clip pos="4" side="tl" part="lem"/>
4173                                         <clip pos="4" side="tl" part="a_prnenc"/>
4174                                         <clip pos="4" side="tl" part="persona"/>
4175                                         <clip pos="4" side="tl" part="gen"/>
4176                                         <clip pos="4" side="tl" part="nbr"/>
4177                                         <clip pos="2" side="tl" part="lemq"/>
4178                                 </lu>
4179                         </mlu>
4180                 </out>  
4181         </action>
4182 </rule>
4184         <rule> <!--REGLA: a + nploc = a Barcelona -> en Barcelona-->
4185       <pattern>
4186                         <pattern-item n="prep"/>
4187                         <pattern-item n="nploc"/>
4188       </pattern>
4189       <action>  
4190                         <call-macro n="f_lexprep">
4191                                 <with-param pos="1"/>
4192                         </call-macro>   
4193                         <out>
4194                                 <lu>
4195                                         <clip pos="1" side="tl" part="lem"/>
4196                                         <clip pos="1" side="tl" part="a_prep"/>
4197                                 </lu> 
4198                                 <b pos="1"/>
4199                                 <lu>
4200                                         <clip pos="2" side="tl" part="lem"/>
4201                                         <clip pos="2" side="tl" part="a_nploc"/> 
4202                                 </lu>
4203                         </out>   
4204       </action>
4205         </rule> 
4206         
4207         <rule> <!--REGLA: a + det+ nploc = a Barcelona -> en Barcelona-->
4208                 <pattern>
4209                         <pattern-item n="prep"/>
4210                         <pattern-item n="det"/>
4211                         <pattern-item n="nploc"/>
4212                 </pattern>
4213                 <action>        
4214                         <call-macro n="f_concord1">
4215                                 <with-param pos="2"/>
4216                         </call-macro>  
4217                         <call-macro n="f_lexprep">
4218                                 <with-param pos="1"/>
4219                         </call-macro>   
4220                         <out>
4221                                 <lu>
4222                                         <clip pos="1" side="tl" part="lem"/>
4223                                         <clip pos="1" side="tl" part="a_prep"/>
4224                                 </lu> 
4225                                 <b pos="1"/>
4226                                 <lu>
4227                                         <clip pos="2" side="tl" part="whole"/>
4228                                 </lu>
4229                                 <b pos="2"/>
4230                                 <lu>
4231                                         <clip pos="3" side="tl" part="lem"/>
4232                                         <clip pos="3" side="tl" part="a_nploc"/> 
4233                                 </lu>
4234                         </out>   
4235                 </action>
4236         </rule> 
4238 <rule> <!--REGLA: a + nploc = a ciutat -> en ciutat-->
4239         <pattern>
4240                 <pattern-item n="prep"/>
4241                 <pattern-item n="nloc"/>
4242         </pattern>
4243         <action>         
4244                 <call-macro n="f_lexprep">
4245                         <with-param pos="1"/>
4246                 </call-macro>   
4247                 <out>
4248                         <lu>
4249                                 <clip pos="1" side="tl" part="lem"/>
4250                                 <clip pos="1" side="tl" part="a_prep"/>
4251                         </lu> 
4252                         <b pos="1"/>
4253                         <lu>
4254                                 <clip pos="2" side="tl" part="whole"/>
4255                         </lu>
4256                 </out>   
4257         </action>
4258 </rule> 
4260 <rule> <!--REGLA: a + det + nploc = a la ciutat -> ena ciutat-->
4261         <pattern>
4262                 <pattern-item n="prep"/>
4263                 <pattern-item n="det"/>
4264                 <pattern-item n="nloc"/>
4265         </pattern>
4266         <action>          
4267                 <call-macro n="f_concord2">
4268                         <with-param pos="3"/>
4269                         <with-param pos="2"/>
4270                 </call-macro> 
4271                 <call-macro n="f_lexprep">
4272                         <with-param pos="1"/>
4273                 </call-macro>   
4274                         
4275                 <out>
4276                         <lu>
4277                                 <clip pos="1" side="tl" part="lem"/>
4278                                 <clip pos="1" side="tl" part="a_prep"/>
4279                         </lu> 
4280                         <b pos="1"/>
4281                         <lu>
4282                                 <clip pos="2" side="tl" part="whole"/>
4283                         </lu>
4284                         <b pos="2"/>
4285                         <lu>
4286                                 <clip pos="3" side="tl" part="whole"/>
4287                         </lu>
4288                 </out>   
4289         </action>
4290 </rule> 
4293 <rule> <!--REGLA: a + det + adj + nloc = a la bonica ciutat -> ena adj ciutat-->
4294         <pattern>
4295                 <pattern-item n="prep"/>
4296                 <pattern-item n="det"/>
4297                 <pattern-item n="adj"/>
4298                 <pattern-item n="nloc"/>
4299         </pattern>
4300         <action>          
4301                 <call-macro n="f_lexprep">
4302                         <with-param pos="1"/>
4303                 </call-macro>   
4304                 <call-macro n="f_concord3">
4305                         <with-param pos="4"/>
4306                         <with-param pos="3"/>
4307                         <with-param pos="2"/>
4308                 </call-macro> 
4309                 <out>
4310                         <lu>
4311                                 <clip pos="1" side="tl" part="lem"/>
4312                                 <clip pos="1" side="tl" part="a_prep"/>
4313                         </lu> 
4314                         <b pos="1"/>
4315                         <lu>
4316                                 <clip pos="2" side="tl" part="whole"/>
4317                         </lu>
4318                         <b pos="2"/>
4319                         <lu>
4320                                 <clip pos="3" side="tl" part="whole"/>
4321                         </lu>
4322                         <b pos="3"/>
4323                         <lu>
4324                                 <clip pos="4" side="tl" part="whole"/>
4325                         </lu>
4326                 </out>   
4327         </action>
4328 </rule> 
4330 <rule> <!--REGLA: a + det + nloc + adj = a la bonica ciutat -> ena adj ciutat-->
4331         <pattern>
4332                 <pattern-item n="prep"/>
4333                 <pattern-item n="det"/>
4334                 <pattern-item n="nloc"/>
4335                 <pattern-item n="adj"/>
4336         </pattern>
4337         <action>          
4338                 <call-macro n="f_lexprep">
4339                         <with-param pos="1"/>
4340                 </call-macro>   
4341                 <call-macro n="f_concord3">
4342                         <with-param pos="3"/>
4343                         <with-param pos="4"/>
4344                         <with-param pos="2"/>
4345                 </call-macro> 
4346                 <out>
4347                         <lu>
4348                                 <clip pos="1" side="tl" part="lem"/>
4349                                 <clip pos="1" side="tl" part="a_prep"/>
4350                         </lu> 
4351                         <b pos="1"/>
4352                         <lu>
4353                                 <clip pos="2" side="tl" part="whole"/>
4354                         </lu>
4355                         <b pos="2"/>
4356                         <lu>
4357                                 <clip pos="3" side="tl" part="whole"/>
4358                         </lu>
4359                         <b pos="3"/>
4360                         <lu>
4361                                 <clip pos="4" side="tl" part="whole"/>
4362                         </lu>
4363                 </out>   
4364         </action>
4365 </rule> 
4367 <rule> <!--REGLA: a + det + partdia = al matí -> peth maitin-->
4368         <pattern>
4369                 <pattern-item n="a"/>
4370                 <pattern-item n="det"/>
4371                 <pattern-item n="partdia"/>
4372         </pattern>
4373         <action>          
4374                 <call-macro n="f_concord2">
4375                         <with-param pos="3"/>
4376                         <with-param pos="2"/>
4377                 </call-macro> 
4378                 
4379                 <out>
4380                         <lu>
4381                                 <get-case-from pos="1">
4382                                                 <lit v="per"/>
4383                                         </get-case-from>
4384                                 <clip pos="1" side="tl" part="a_prep"/>
4385                         </lu> 
4386                         <b pos="1"/>
4387                         <lu>
4388                                 <clip pos="2" side="tl" part="whole"/>
4389                         </lu>
4390                         <b pos="2"/>
4391                         <lu>
4392                                 <clip pos="3" side="tl" part="whole"/>
4393                         </lu>
4394                 </out>   
4395         </action>
4396 </rule> 
4398 <rule> <!--REGLA: a + det + mes= al desembre -> en deseme-->
4399         <pattern>
4400                 <pattern-item n="a"/>
4401                 <pattern-item n="det"/>
4402                 <pattern-item n="mes"/>
4403         </pattern>
4404         <action>          
4405                 <out>
4406                         <lu>
4407                                 <get-case-from pos="1">
4408                                         <lit v="en"/>
4409                                 </get-case-from>
4410                                 <clip pos="1" side="tl" part="a_prep"/>
4411                         </lu> 
4412                         <b pos="1"/>
4413                         <lu>
4414                                 <clip pos="2" side="tl" part="whole"/>
4415                         </lu>
4416                         <b pos="2"/>
4417                         <lu>
4418                                 <clip pos="3" side="tl" part="whole"/>
4419                         </lu>
4420                 </out>   
4421         </action>
4422 </rule> 
4425 <rule> <!-- REGLA: reset variables-->
4426         <pattern>
4427                 <pattern-item n="sent"/>
4428         </pattern>
4429         <action>
4430                 <let>
4431                         <var n="numero"/>
4432                         <lit-tag v="sg"/>
4433                 </let>
4434                 <let>
4435                         <var n="genero"/>
4436                         <lit-tag v="m"/>
4437                 </let>
4438                 <let>
4439                         <var n="tipusverb"/>
4440                         <lit v="no"/>
4441                 </let>
4442                 <out>
4443                         <lu>
4444                                 <clip pos="1" side="tl" part="whole"/>
4445                         </lu>
4446                 </out>
4447         </action>
4448 </rule>
4449     
4450         </section-rules>
4452 </transfer>