Few more
[apertium.git] / apertium-en-ca / apertium-en-ca.en-ca.t1x
blob3e6505f97876e9e608a275947ee3c5f6a103e640
1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
2 <transfer default="chunk">
3 <section-def-cats>
5 <def-cat n="to"><!--BCN-->
6 <cat-item lemma="to" tags="pr"/>
7 </def-cat>
9 <def-cat n="enough"><!--BCN-->
10 <cat-item lemma="enough" tags="adv"/>
11 </def-cat>
13 <def-cat n="detquant"><!--BCN-->
14 <cat-item tags="det.qnt.*"/>
15 </def-cat>
17 <def-cat n="all"><!--BCN-->
18 <cat-item lemma="all" tags="predet.sp"/>
19 </def-cat>
21 <def-cat n="nomplural"><!--BCN-->
22 <cat-item tags="n.pl"/>
23 </def-cat>
25 <def-cat n="nom">
26 <cat-item tags="n.*"/>
27 <cat-item tags="np.*"/>
28 </def-cat>
30 <def-cat n="nploc">
31 <cat-item tags="np.loc.*"/>
32 </def-cat>
34 <def-cat n="adj">
35 <cat-item tags="adj"/>
36 <cat-item tags="adj.comp"/>
37 <cat-item tags="adj.sup"/>
38 <cat-item tags="adj.pos"/>
39 <cat-item tags="adj.sint"/>
40 <cat-item tags="adj.sint.*"/>
41 <cat-item tags="vblex.pp"/> <!-- BCN ok implica tocar les regles per la concordança-->
42 <cat-item tags="vbmod.pp"/> <!-- BCN ok implica tocar les regles per la concordança-->
43 </def-cat>
45 <def-cat n="adj2"><!--revisar regles amb 'adj' i 'adj2' -->
46 <cat-item tags="adj"/>
47 <cat-item tags="adj.sint"/>
48 <cat-item tags="adj.sint.*"/>
49 <cat-item tags="adj.comp"/>
50 <cat-item tags="adj.sup"/>
51 </def-cat>
53 <def-cat n="num">
54 <cat-item tags="num.*"/>
55 <cat-item tags="num"/>
57 </def-cat>
59 <def-cat n="det"><!--Determinants i predeterminants, van anteposats en català -->
60 <cat-item tags="det.dem.*"/>
61 <cat-item tags="det.ind.*"/>
62 <cat-item tags="det.def.*"/>
63 <cat-item tags="det.pos.*"/>
64 <cat-item tags="det.qnt.*"/>
65 <cat-item tags="det.itg.*"/>
66 <cat-item tags="det.ord.*"/>
67 <cat-item tags="predet.*"/>
68 </def-cat>
70 <def-cat n="det2"><!--Poden anar precedits d'un altre determinant i anar després d'un genitiu saxó -->
71 <cat-item tags="det.qnt.*"/>
72 <cat-item tags="det.ord.*"/>
73 </def-cat>
76 <def-cat n="prep">
77 <cat-item tags="pr"/>
78 </def-cat>
80 <def-cat n="prep_cnjadv">
81 <cat-item tags="pr"/>
82 <cat-item lemma="before" tags="cnjadv"/><!--MG: solució provisional, caldria que el tagger triés <pr> o que el t2x fes alguna cosa amb acnjadv + frase en gerundi o + frase conjugada. -->
83 <cat-item lemma="after" tags="cnjadv"/>
84 </def-cat>
86 <def-cat n="probj">
87 <cat-item tags="prn.obj.*"/>
88 </def-cat>
90 <def-cat n="prnsubj">
91 <cat-item tags="prn.subj.*"/>
92 </def-cat>
94 <def-cat n="tn_itg_pos">
95 <cat-item tags="prn.tn.*"/>
96 <cat-item tags="prn.itg.*"/>
97 <cat-item tags="prn.pos.*"/>
98 </def-cat>
100 <def-cat n="verbcj">
101 <!-- <cat-item tags="vblex.inf"/>-->
102 <cat-item tags="vblex.pres"/>
103 <cat-item tags="vblex.past"/>
104 <cat-item tags="vblex.past.*"/><!--Per a la forma 'was' en el verb lèxic -->
105 <cat-item tags="vblex.pri.*"/>
107 <cat-item tags="vblex.sep.pres"/>
108 <cat-item tags="vblex.sep.past"/>
109 <cat-item tags="vblex.sep.past.*"/>
110 <cat-item tags="vblex.sep.pri.*"/>
112 <!-- <cat-item tags="vbser.inf"/> -->
113 <cat-item tags="vbser.pres"/>
114 <cat-item tags="vbser.past"/>
115 <cat-item tags="vbser.past.*"/>
116 <cat-item tags="vbser.pri.*"/>
117 <!-- <cat-item tags="vbhaver.inf"/> -->
118 <cat-item tags="vbhaver.pres"/><!--afegit 29/08, per quan es cola per aquesta regla un vbhaver mal desambiguat -->
119 <cat-item tags="vbhaver.past"/>
120 <cat-item tags="vbhaver.pri.*"/>
121 <cat-item lemma="can" tags="vaux.*"/><!--perquè quan vagi sol entri per aquesta regla (I can, workers can) -->
122 <!-- <cat-item tags="vbhaver.*"/> -->
124 </def-cat>
127 <def-cat n="verbcjnoser"> <!-- BCN -->
128 <cat-item tags="vblex.inf"/>
129 <cat-item tags="vblex.pres"/>
130 <cat-item tags="vblex.past"/>
131 <cat-item tags="vblex.pri.*"/>
133 <cat-item tags="vblex.sep.pres"/>
134 <cat-item tags="vblex.sep.past"/>
135 <cat-item tags="vblex.sep.past.*"/>
136 <cat-item tags="vblex.sep.pri.*"/>
137 </def-cat>
139 <def-cat n="controlverb">
140 <cat-item lemma="desire" tags="vblex.inf"/>
141 <cat-item lemma="need" tags="vblex.inf"/>
142 <cat-item lemma="wish" tags="vblex.inf"/>
143 <cat-item lemma="hope" tags="vblex.inf"/>
144 <cat-item lemma="choose" tags="vblex.inf"/>
145 <cat-item lemma="expect" tags="vblex.inf"/>
146 <cat-item lemma="pretend" tags="vblex.inf"/>
147 <cat-item lemma="prefer" tags="vblex.inf"/>
148 <cat-item lemma="promise" tags="vblex.inf"/>
149 <cat-item lemma="recommend" tags="vblex.inf"/>
150 <cat-item lemma="decide" tags="vblex.inf"/>
151 <cat-item lemma="manage" tags="vblex.inf"/>
152 <cat-item lemma="refuse" tags="vblex.inf"/>
153 <cat-item lemma="agree" tags="vblex.inf"/>
154 <cat-item lemma="avoid" tags="vblex.inf"/>
155 <cat-item lemma="enjoy" tags="vblex.inf"/>
156 <cat-item lemma="hate" tags="vblex.inf"/>
157 <cat-item lemma="intend" tags="vblex.inf"/>
158 <cat-item lemma="plan" tags="vblex.inf"/>
159 <cat-item lemma="continue" tags="vblex.inf"/>
160 <cat-item lemma="resolve" tags="vblex.inf"/>
161 <cat-item lemma="try" tags="vblex.inf"/>
164 <cat-item lemma="desire" tags="vblex.pres"/>
165 <cat-item lemma="need" tags="vblex.pres"/>
166 <cat-item lemma="wish" tags="vblex.pres"/>
167 <cat-item lemma="hope" tags="vblex.pres"/>
168 <cat-item lemma="choose" tags="vblex.pres"/>
169 <cat-item lemma="expect" tags="vblex.pres"/>
170 <cat-item lemma="pretend" tags="vblex.pres"/>
171 <cat-item lemma="prefer" tags="vblex.pres"/>
172 <cat-item lemma="promise" tags="vblex.pres"/>
173 <cat-item lemma="recommend" tags="vblex.pres"/>
174 <cat-item lemma="decide" tags="vblex.pres"/>
175 <cat-item lemma="manage" tags="vblex.pres"/>
176 <cat-item lemma="refuse" tags="vblex.pres"/>
177 <cat-item lemma="agree" tags="vblex.pres"/>
178 <cat-item lemma="avoid" tags="vblex.pres"/>
179 <cat-item lemma="enjoy" tags="vblex.pres"/>
180 <cat-item lemma="hate" tags="vblex.pres"/>
181 <cat-item lemma="intend" tags="vblex.pres"/>
182 <cat-item lemma="plan" tags="vblex.pres"/>
183 <cat-item lemma="continue" tags="vblex.pres"/>
184 <cat-item lemma="resolve" tags="vblex.pres"/>
185 <cat-item lemma="try" tags="vblex.pres"/>
189 <cat-item lemma="desire" tags="vblex.past"/>
190 <cat-item lemma="need" tags="vblex.past"/>
191 <cat-item lemma="wish" tags="vblex.past"/>
192 <cat-item lemma="hope" tags="vblex.past"/>
193 <cat-item lemma="choose" tags="vblex.past"/>
194 <cat-item lemma="expect" tags="vblex.past"/>
195 <cat-item lemma="pretend" tags="vblex.past"/>
196 <cat-item lemma="prefer" tags="vblex.past"/>
197 <cat-item lemma="promise" tags="vblex.past"/>
198 <cat-item lemma="recommend" tags="vblex.past"/>
199 <cat-item lemma="decide" tags="vblex.past"/>
200 <cat-item lemma="manage" tags="vblex.past"/>
201 <cat-item lemma="refuse" tags="vblex.past"/>
202 <cat-item lemma="agree" tags="vblex.past"/>
203 <cat-item lemma="avoid" tags="vblex.past"/>
204 <cat-item lemma="enjoy" tags="vblex.past"/>
205 <cat-item lemma="hate" tags="vblex.past"/>
206 <cat-item lemma="intend" tags="vblex.past"/>
207 <cat-item lemma="plan" tags="vblex.past"/>
208 <cat-item lemma="continue" tags="vblex.past"/>
209 <cat-item lemma="resolve" tags="vblex.past"/>
210 <cat-item lemma="try" tags="vblex.past"/>
213 <cat-item lemma="desire" tags="vblex.pri.*"/>
214 <cat-item lemma="need" tags="vblex.pri.*"/>
215 <cat-item lemma="wish" tags="vblex.pri.*"/>
216 <cat-item lemma="hope" tags="vblex.pri.*"/>
217 <cat-item lemma="choose" tags="vblex.pri.*"/>
218 <cat-item lemma="expect" tags="vblex.pri.*"/>
219 <cat-item lemma="pretend" tags="vblex.pri.*"/>
220 <cat-item lemma="prefer" tags="vblex.pri.*"/>
221 <cat-item lemma="promise" tags="vblex.pri.*"/>
222 <cat-item lemma="recommend" tags="vblex.pri.*"/>
223 <cat-item lemma="decide" tags="vblex.pri.*"/>
224 <cat-item lemma="manage" tags="vblex.pri.*"/>
225 <cat-item lemma="refuse" tags="vblex.pri.*"/>
226 <cat-item lemma="agree" tags="vblex.pri.*"/>
227 <cat-item lemma="avoid" tags="vblex.pri.*"/>
228 <cat-item lemma="enjoy" tags="vblex.pri.*"/>
229 <cat-item lemma="hate" tags="vblex.pri.*"/>
230 <cat-item lemma="intend" tags="vblex.pri.*"/>
231 <cat-item lemma="plan" tags="vblex.pri.*"/>
232 <cat-item lemma="continue" tags="vblex.pri.*"/>
233 <cat-item lemma="resolve" tags="vblex.pri.*"/>
234 <cat-item lemma="try" tags="vblex.pri.*"/>
237 <cat-item lemma="desire" tags="vblex.ger"/>
238 <cat-item lemma="need" tags="vblex.ger"/>
239 <cat-item lemma="wish" tags="vblex.ger"/>
240 <cat-item lemma="hope" tags="vblex.ger"/>
241 <cat-item lemma="choose" tags="vblex.ger"/>
242 <cat-item lemma="expect" tags="vblex.ger"/>
243 <cat-item lemma="pretend" tags="vblex.ger"/>
244 <cat-item lemma="prefer" tags="vblex.ger"/>
245 <cat-item lemma="promise" tags="vblex.ger"/>
246 <cat-item lemma="recommend" tags="vblex.ger"/>
247 <cat-item lemma="decide" tags="vblex.ger"/>
248 <cat-item lemma="manage" tags="vblex.ger"/>
249 <cat-item lemma="refuse" tags="vblex.ger"/>
250 <cat-item lemma="agree" tags="vblex.ger"/>
251 <cat-item lemma="avoid" tags="vblex.ger"/>
252 <cat-item lemma="enjoy" tags="vblex.ger"/>
253 <cat-item lemma="hate" tags="vblex.ger"/>
254 <cat-item lemma="intend" tags="vblex.ger"/>
255 <cat-item lemma="plan" tags="vblex.ger"/>
256 <cat-item lemma="continue" tags="vblex.ger"/>
257 <cat-item lemma="resolve" tags="vblex.ger"/>
258 <cat-item lemma="try" tags="vblex.ger"/>
259 </def-cat>
262 <def-cat n="controlverbger"> <!-- BCN -->
263 <cat-item lemma="desire" tags="vblex.ger"/>
264 <cat-item lemma="need" tags="vblex.ger"/>
265 <cat-item lemma="wish" tags="vblex.ger"/>
266 <cat-item lemma="hope" tags="vblex.ger"/>
267 <cat-item lemma="choose" tags="vblex.ger"/>
268 <cat-item lemma="expect" tags="vblex.ger"/>
269 <cat-item lemma="pretend" tags="vblex.ger"/>
270 <cat-item lemma="prefer" tags="vblex.ger"/>
271 <cat-item lemma="promise" tags="vblex.ger"/>
272 <cat-item lemma="recommend" tags="vblex.ger"/>
273 <cat-item lemma="decide" tags="vblex.ger"/>
274 <cat-item lemma="manage" tags="vblex.ger"/>
275 <cat-item lemma="refuse" tags="vblex.ger"/>
276 <cat-item lemma="agree" tags="vblex.ger"/>
277 <cat-item lemma="avoid" tags="vblex.ger"/>
278 <cat-item lemma="enjoy" tags="vblex.ger"/>
279 <cat-item lemma="hate" tags="vblex.ger"/>
280 <cat-item lemma="intend" tags="vblex.ger"/>
281 <cat-item lemma="plan" tags="vblex.ger"/>
282 <cat-item lemma="continue" tags="vblex.ger"/>
283 <cat-item lemma="resolve" tags="vblex.ger"/>
284 <cat-item lemma="try" tags="vblex.ger"/>
285 </def-cat>
288 <def-cat n="controlverbpp"> <!-- BCN -->
289 <cat-item lemma="desire" tags="vblex.pp"/>
290 <cat-item lemma="need" tags="vblex.pp"/>
291 <cat-item lemma="wish" tags="vblex.pp"/>
292 <cat-item lemma="hope" tags="vblex.pp"/>
293 <cat-item lemma="choose" tags="vblex.pp"/>
294 <cat-item lemma="expect" tags="vblex.pp"/>
295 <cat-item lemma="pretend" tags="vblex.pp"/>
296 <cat-item lemma="prefer" tags="vblex.pp"/>
297 <cat-item lemma="promise" tags="vblex.pp"/>
298 <cat-item lemma="recommend" tags="vblex.pp"/>
299 <cat-item lemma="decide" tags="vblex.pp"/>
300 <cat-item lemma="manage" tags="vblex.pp"/>
301 <cat-item lemma="refuse" tags="vblex.pp"/>
302 <cat-item lemma="agree" tags="vblex.pp"/>
303 <cat-item lemma="avoid" tags="vblex.pp"/>
304 <cat-item lemma="enjoy" tags="vblex.pp"/>
305 <cat-item lemma="hate" tags="vblex.pp"/>
306 <cat-item lemma="intend" tags="vblex.pp"/>
307 <cat-item lemma="plan" tags="vblex.pp"/>
308 <cat-item lemma="continue" tags="vblex.pp"/>
309 <cat-item lemma="resolve" tags="vblex.pp"/>
310 <cat-item lemma="try" tags="vblex.pp"/>
311 </def-cat>
313 <def-cat n="copulatiu">
314 <cat-item tags="vbser.pres"/>
315 <cat-item tags="vbser.past"/>
316 <cat-item tags="vbser.past.*"/>
317 <cat-item tags="vbser.pri.*"/>
318 <cat-item lemma="look" tags="vblex.pres"/>
319 <cat-item lemma="look" tags="vblex.past"/>
320 <cat-item lemma="look" tags="vblex.pri.*"/>
321 <cat-item lemma="seem" tags="vblex.pres"/>
322 <cat-item lemma="seem" tags="vblex.past"/>
323 <cat-item lemma="seem" tags="vblex.pri.*"/>
324 <cat-item lemma="become" tags="vblex.pres"/>
325 <cat-item lemma="become" tags="vblex.past"/>
326 <cat-item lemma="become" tags="vblex.pri.*"/>
327 <cat-item lemma="feel" tags="vblex.pres"/>
328 <cat-item lemma="feel" tags="vblex.past"/>
329 <cat-item lemma="feel" tags="vblex.pri.*"/>
330 <cat-item lemma="get" tags="vblex.pres"/>
331 <cat-item lemma="get" tags="vblex.past"/>
332 <cat-item lemma="get" tags="vblex.pri.*"/>
333 </def-cat>
336 <def-cat n="inf">
337 <cat-item tags="vblex.inf"/>
338 <cat-item tags="vblex.sep.inf"/>
339 <cat-item tags="vbser.inf"/>
340 <cat-item tags="vbmod.inf"/>
341 <cat-item tags="vaux.inf"/>
342 </def-cat>
344 <def-cat n="infpres">
345 <cat-item tags="vblex.inf"/>
346 <cat-item tags="vblex.pres"/><!--De moment detectem tb aquest a l'espera de veure si el tagger els distingeix. Canviar-ho més endavant si de cas. -->
347 <cat-item tags="vblex.sep.inf"/>
348 <cat-item tags="vblex.sep.pres"/>
349 <cat-item tags="vbser.inf"/><!--afegit 4/08 -->
350 <cat-item tags="vbser.pres"/><!--afegit 4/08 -->
351 </def-cat>
354 <def-cat n="modinf"><!--Verbs modals (have to, want to, be able to), que van seguits d'infinitiu (com els auxiliars) i es conjuguen (will have to, will be able to). A diferència, els auxiliars no poden portar altres aux davant (*I will can, I do not can) : 'have to', 'want to'-->
355 <cat-item tags="vbmod.inf"/>
356 <cat-item tags="vbmod.pres"/><!--De moment detectem tb aquest a l'espera de veure si el tagger els distingeix -->
357 </def-cat>
359 <def-cat n="mod"><!--Verbs modals (have to, want to, be able to), que van seguits d'infinitiu (com els auxiliars) i es conjuguen (will have to, will be able to). A diferència, els auxiliars no poden portar altres aux davant (*I will can, I do not can). Per això els poso en categories diferents, perquè funcionen diferent amb negacions, adverbis intercalats, preguntes, etc. -->
360 <cat-item tags="vbmod.*"/>
361 </def-cat>
363 <def-cat n="ger">
364 <cat-item tags="vblex.ger"/>
365 <cat-item tags="reporting.ger"/><!-- BCN-->
366 <cat-item tags="vblex.sep.ger"/>
367 <cat-item tags="vbser.ger"/>
368 </def-cat>
370 <def-cat n="haveger">
371 <cat-item tags="vbhaver.ger"/>
372 </def-cat>
374 <def-cat n="auxtemps">
375 <cat-item lemma="will" tags="vaux.*"/>
376 <cat-item lemma="would" tags="vaux.*"/>
377 <cat-item lemma="shall" tags="vaux.*"/>
378 </def-cat>
380 <def-cat n="auxmod"><!-- Falten: ought to, shall -->
381 <cat-item lemma="can" tags="vaux.*"/>
382 <cat-item lemma="must" tags="vaux.*"/>
383 <cat-item lemma="should" tags="vaux.*"/>
384 <cat-item lemma="may" tags="vaux.*"/>
385 <cat-item lemma="might" tags="vaux.*"/>
386 </def-cat>
388 <def-cat n="auxnocan"><!-- Falten: (must?, should?, ought to, shall) -->
389 <cat-item lemma="will" tags="vaux.*"/>
390 <cat-item lemma="would" tags="vaux.*"/>
391 <cat-item lemma="shall" tags="vaux.*"/>
392 <cat-item lemma="may" tags="vaux.*"/>
393 <cat-item lemma="might" tags="vaux.*"/>
394 <cat-item lemma="do" tags="vbdo.*"/>
395 <cat-item lemma="do" tags="vblex.*"/><!-- ATENCIÓ, només per ara perquè el tagger s'equivoca. -->
396 </def-cat>
399 <def-cat n="do">
400 <cat-item lemma="do" tags="vbdo.*"/>
401 <cat-item lemma="do" tags="vblex.pri.*"/><!--ATENCIÓ, només per ara perquè el tagger s'equivoca. -->
402 <cat-item lemma="do" tags="vblex.pres"/>
403 <cat-item lemma="do" tags="vblex.past"/>
404 <cat-item lemma="do" tags="vblex.inf"/>
405 </def-cat>
407 <def-cat n="apos">
408 <cat-item tags="apos"/>
409 </def-cat>
411 <def-cat n="coma">
412 <cat-item tags="cm"/>
413 </def-cat>
415 <def-cat n="have_aux">
416 <cat-item tags="vbhaver.*"/>
417 </def-cat>
419 <def-cat n="have_aux_inf">
420 <cat-item tags="vbhaver.inf"/>
421 <cat-item tags="vbhaver.pres"/>
422 </def-cat>
424 <def-cat n="ppadj"><!--Participis que poden actuar com a adjectius (el verb 'ser' va aquí?) -->
425 <cat-item tags="vblex.pp"/>
426 <cat-item tags="vblex.sep.pp"/>
427 <cat-item tags="vbser.pp"/>
428 </def-cat>
430 <def-cat n="pp">
431 <cat-item tags="vblex.pp"/>
432 <cat-item tags="vblex.sep.pp"/>
433 <cat-item tags="vbser.pp"/>
434 <cat-item tags="vbmod.pp"/>
435 </def-cat>
437 <def-cat n="pprs">
438 <cat-item tags="vblex.pprs"/>
439 <cat-item tags="vblex.sep.pprs"/>
440 <cat-item tags="vbhaver.pprs"/>
441 <cat-item tags="vbser.pprs"/>
442 <cat-item tags="vbmod.pprs"/>
443 </def-cat>
445 <def-cat n="vbsubs">
446 <cat-item tags="vblex.subs"/>
447 <cat-item tags="vblex.sep.subs"/>
448 <cat-item tags="vbhaver.subs"/>
449 <cat-item tags="vbser.subs"/>
450 <cat-item tags="vbmod.subs"/>
451 </def-cat>
453 <def-cat n="adv_preadv">
454 <cat-item tags="preadv"/>
455 <cat-item tags="adv"/>
456 </def-cat>
458 <def-cat n="adv">
459 <cat-item tags="adv"/>
460 </def-cat>
462 <def-cat n="adv_not"><!--BCN-->
463 <cat-item lemma="not" tags="adv"/>
464 <cat-item lemma="never" tags="adv"/>
465 </def-cat>
467 <def-cat n="preadv">
468 <cat-item tags="preadv"/>
469 </def-cat>
471 <def-cat n="advitg">
472 <cat-item tags="adv.itg"/>
473 </def-cat>
475 <def-cat n="cnj">
476 <cat-item tags="cnjcoo"/>
477 <cat-item tags="cnjsub"/>
478 <cat-item tags="cnjadv"/>
479 </def-cat>
481 <def-cat n="cnjcoo">
482 <cat-item lemma="and" tags="cnjcoo"/>
483 <cat-item lemma="or" tags="cnjcoo"/>
484 </def-cat>
486 <def-cat n="such_a">
487 <cat-item lemma="such a" tags="det.ind.sg"/>
488 </def-cat>
490 <def-cat n="yearmonth">
491 <cat-item lemma="year" tags="n.sg"/>
492 <cat-item lemma="year" tags="n.pl"/>
493 <cat-item lemma="month" tags="n.sg"/>
494 <cat-item lemma="month" tags="n.pl"/>
495 </def-cat>
497 <def-cat n="old">
498 <cat-item lemma="old" tags="adj.sint"/>
499 </def-cat>
501 <def-cat n="there">
502 <cat-item lemma="there" tags="adv"/>
503 </def-cat>
505 <def-cat n="genitiu">
506 <cat-item tags="gen"/>
507 </def-cat>
509 <def-cat n="be">
510 <cat-item lemma="be" tags="vbser.*"/>
511 </def-cat>
513 <def-cat n="relnom">
514 <cat-item tags="rel.nn.*"/>
515 </def-cat>
517 <def-cat n="reladj">
518 <cat-item tags="rel.an.*"/>
519 </def-cat>
521 <def-cat n="which">
522 <cat-item lemma="which" tags="prn.itg.*"/><!-- BCN-->
523 <cat-item lemma="which" tags="rel.an.*"/>
524 </def-cat>
527 <def-cat n="sent">
528 <cat-item tags="sent"/>
529 </def-cat>
531 <def-cat n="guio">
532 <cat-item tags="guio"/>
533 </def-cat>
535 </section-def-cats>
536 <section-def-attrs>
537 <def-attr n="a_nom">
538 <attr-item tags="n"/>
539 <attr-item tags="n.acr"/>
540 <attr-item tags="np.loc"/>
541 <attr-item tags="np.ant"/>
542 <attr-item tags="np.cog"/>
543 <attr-item tags="np.al"/>
544 </def-attr>
546 <def-attr n="a_np">
547 <attr-item tags="np"/>
548 </def-attr>
550 <def-attr n="a_np_acr">
551 <attr-item tags="np"/>
552 <attr-item tags="acr"/>
553 </def-attr>
555 <def-attr n="a_adj">
556 <attr-item tags="adj"/>
557 <attr-item tags="adj.pos"/>
558 <attr-item tags="vblex.pp"/> <!-- BCN ok-->
559 <attr-item tags="vbmod.pp"/> <!-- BCN ok-->
560 <attr-item tags="vblex.pron.pp"/> <!-- BCN ok-->
561 </def-attr>
564 <def-attr n="grau_adj">
565 <attr-item tags="comp"/>
566 <attr-item tags="sup"/>
567 </def-attr>
569 <def-attr n="a_det">
570 <attr-item tags="det.dem"/>
571 <attr-item tags="det.ind"/>
572 <attr-item tags="det.def"/>
573 <attr-item tags="det.pos"/>
574 <attr-item tags="det.qnt"/>
575 <attr-item tags="det.itg"/>
576 <attr-item tags="det.ord"/>
577 <attr-item tags="adj.pos"/>
578 <attr-item tags="num"/>
579 <attr-item tags="predet"/>
580 </def-attr>
582 <def-attr n="a_prnpro">
583 <attr-item tags="prn.pro"/>
584 </def-attr>
585 <def-attr n="a_prnenc">
586 <attr-item tags="prn.enc"/>
587 </def-attr>
588 <def-attr n="a_num">
589 <attr-item tags="num"/>
590 </def-attr>
592 <def-attr n="a_verb">
593 <attr-item tags="vblex"/>
594 <attr-item tags="vblex.pron"/>
595 <attr-item tags="vbhaver"/>
596 <attr-item tags="vbser"/>
597 <attr-item tags="vbmod"/>
598 </def-attr>
600 <def-attr n="a_have_aux">
601 <attr-item tags="vbhaver"/>
602 </def-attr>
604 <def-attr n="a_pp">
605 <attr-item tags="vblex.pp"/>
606 <attr-item tags="vblex.pron.pp"/>
607 <attr-item tags="vbser.pp"/>
608 <attr-item tags="vbmod.pp"/>
609 </def-attr>
612 <def-attr n="a_aux">
613 <attr-item tags="vaux"/>
614 </def-attr>
616 <def-attr n="a_prn">
617 <attr-item tags="prn"/>
618 </def-attr>
620 <def-attr n="a_adv">
621 <attr-item tags="adv"/>
622 <attr-item tags="preadv"/>
623 <attr-item tags="adv.itg"/>
624 <attr-item tags="cnjadv"/>
625 </def-attr>
627 <def-attr n="a_rel">
628 <attr-item tags="rel.nn"/>
629 <attr-item tags="rel.an"/>
630 <attr-item tags="rel.adv"/>
631 </def-attr>
633 <def-attr n="tipus_rel">
634 <attr-item tags="nn"/>
635 <attr-item tags="an"/>
636 <attr-item tags="adv"/>
637 </def-attr>
639 <def-attr n="tipus_prn">
640 <attr-item tags="tn"/>
641 <attr-item tags="obj"/>
642 <attr-item tags="enc"/>
643 <attr-item tags="itg"/>
644 <attr-item tags="pos"/>
645 </def-attr>
647 <def-attr n="pers">
648 <attr-item tags="p1"/>
649 <attr-item tags="p2"/>
650 <attr-item tags="p3"/>
651 <attr-item tags="PD"/>
652 </def-attr>
654 <def-attr n="gen">
655 <attr-item tags="m"/>
656 <attr-item tags="f"/>
657 <attr-item tags="mf"/>
658 <attr-item tags="GD"/>
659 <attr-item tags="nt"/>
660 </def-attr>
663 <def-attr n="nbr">
664 <attr-item tags="sg"/>
665 <attr-item tags="pl"/>
666 <attr-item tags="sp"/>
667 <attr-item tags="ND"/>
668 </def-attr>
670 <def-attr n="temps">
671 <attr-item tags="cni"/>
672 <attr-item tags="fti"/>
673 <attr-item tags="ifi"/>
674 <attr-item tags="imp"/>
675 <attr-item tags="pii"/>
676 <attr-item tags="pis"/>
677 <attr-item tags="inf"/>
678 <attr-item tags="prs"/>
679 <attr-item tags="pres"/>
680 <attr-item tags="past"/>
681 <attr-item tags="pri"/>
682 <attr-item tags="pp"/>
683 <attr-item tags="ger"/>
684 <attr-item tags="pprs"/>
685 <attr-item tags="subs"/>
686 </def-attr>
688 <def-attr n="neg">
689 <attr-item tags="NEG"/>
690 </def-attr>
692 </section-def-attrs>
693 <section-def-vars>
694 <def-var n="uno"/>
695 <def-var n="genere" v="&amp;lt;m&amp;gt;"/>
696 <def-var n="nombre" v="&amp;lt;sg&amp;gt;"/>
697 <def-var n="interrogativa"/>
698 <def-var n="exclamativa"/>
699 <def-var n="adjectiu1"/>
700 <def-var n="adjectiu2"/>
701 <def-var n="auxiliar"/>
702 <def-var n="caseFirstWord"/>
703 <def-var n="EOS" v="true"/>
704 <def-var n="lema"/>
705 <def-var n="pronom"/>
706 <def-var n="pronom2"/>
707 <def-var n="pronomenc"/>
708 <def-var n="paraula1"/>
709 <def-var n="paraula2"/>
710 <def-var n="tipus_verb"/>
711 <def-var n="tipus_verb2"/>
712 <def-var n="tipus_det"/> <!-- BCN-->
713 </section-def-vars>
715 <section-def-lists>
717 <def-list n="reportingverb"> <!-- BCN verbs que poden no portar el THAT -->
718 <list-item v="say"/>
719 <list-item v="admit"/>
720 <list-item v="agree"/>
721 <list-item v="decide"/>
722 <list-item v="deny"/>
723 <list-item v="explain"/>
724 <list-item v="insist"/>
725 <list-item v="promise"/>
726 <list-item v="recommend"/>
727 <list-item v="suggest"/>
728 <list-item v="point"/>
729 <list-item v="think"/>
730 <list-item v="believe"/>
731 <list-item v="hope"/>
732 <list-item v="fear"/>
733 <list-item v="suppose"/>
734 </def-list>
736 <def-list n="controlnouns"> <!-- BCN -->
737 <list-item v="desire"/>
738 <list-item v="order"/>
739 <list-item v="need"/>
740 <list-item v="right"/>
741 <list-item v="duty"/>
742 <list-item v="failure"/>
743 <list-item v="power"/>
744 <list-item v="wish"/>
745 <list-item v="capacity"/>
746 <list-item v="ability"/>
747 <list-item v="hope"/>
748 <list-item v="chance"/>
749 <list-item v="honour"/>
750 <list-item v="compulsion"/>
751 <list-item v="responsibility"/>
752 <list-item v="opportunity"/>
753 <list-item v="idea"/>
754 <list-item v="record"/>
755 <list-item v="way"/>
756 <list-item v="attempt"/>
757 <list-item v="obligation"/>
758 <list-item v="impulse"/>
759 <list-item v="surprise"/>
760 <list-item v="will"/>
761 <list-item v="mean"/>
762 </def-list>
766 <def-list n="adv_neg">
767 <list-item v="not"/>
768 <list-item v="never"/>
769 </def-list>
770 </section-def-lists>
772 <section-def-macros>
774 <def-macro n="genere_nombre" npar="1">
775 <choose><!--To determine value of variables of gender and
776 number and propagate to other rules. Variables are
777 not used again in this rule .
778 MG: ara aquí no es fa sevir, sinó en t2x, eliminar i passar tot a 12x-->
779 <when>
780 <test>
781 <equal>
782 <clip pos="1" side="tl" part="gen"/>
783 <lit-tag v="m"/>
784 </equal>
785 </test>
786 <let><var n="genere"/><lit-tag v="m"/></let>
787 </when>
788 <when>
789 <test>
790 <equal>
791 <clip pos="1" side="tl" part="gen"/>
792 <lit-tag v="f"/>
793 </equal>
794 </test>
795 <let><var n="genere"/><lit-tag v="f"/></let>
796 </when>
797 </choose>
798 <choose>
799 <when>
800 <test>
801 <equal>
802 <clip pos="1" side="tl" part="nbr"/>
803 <lit-tag v="sg"/>
804 </equal>
805 </test>
806 <let><var n="nombre"/><lit-tag v="sg"/></let>
807 </when>
808 <when>
809 <test>
810 <equal>
811 <clip pos="1" side="tl" part="nbr"/>
812 <lit-tag v="pl"/>
813 </equal>
814 </test>
815 <let><var n="nombre"/><lit-tag v="pl"/></let>
816 </when>
817 </choose>
818 </def-macro>
820 <def-macro n="pron" npar="1">
821 <let>
822 <var n="pronom"/>
823 <lit v=""/>
824 </let>
825 <choose><!--envia el pronom en els verbs pronominals -->
826 <when>
827 <test>
828 <equal>
829 <var n="tipus_verb"/>
830 <lit-tag v="pron"/>
831 </equal>
832 </test>
833 <let>
834 <var n="pronom"/>
835 <lit v="prpers"/>
836 </let>
837 <append n="pronom">
838 <lit-tag v="prn.pro"/>
839 <lit-tag v="4"/>
840 <lit-tag v="mf"/>
841 <lit-tag v="5"/>
842 <lit v="$ ^"/>
843 </append>
844 </when>
845 </choose>
846 </def-macro>
848 <def-macro n="pronenc" npar="1"><!-- fa el mateix que la funció 'pron' però crea un enclític reflexiu (per a verbs en formes no personals). Funciona només si abans s'ha cridat la macro 'tipus_verbs2' per al verb que ha de portar l'enclític -->
849 <let>
850 <var n="pronomenc"/>
851 <lit v=""/>
852 </let>
853 <choose><!--envia el pronom en els verbs pronominals -->
854 <when>
855 <test>
856 <equal>
857 <var n="tipus_verb2"/>
858 <lit-tag v="pron"/>
859 </equal>
860 </test>
861 <let>
862 <var n="pronomenc"/>
863 <lit v="+prpers"/>
864 </let>
865 <append n="pronomenc">
866 <lit-tag v="prn.enc"/>
867 <lit-tag v="4"/>
868 <lit-tag v="mf"/>
869 <lit-tag v="5"/>
870 </append>
871 </when>
872 </choose>
873 </def-macro>
876 <def-macro n="f_bcond" npar="1"><!--Per mirar si el blanc conté o no format. Cal posar aquesta funció en les regles en què desaparegui alguna paraula, per tal de decidir si el blanc de la paraula eliminada s'ha d'eliminar o conservar. Si conté format cal conservar-la, si no en conté cal eliminar-la perquè no apareguin dos espais seguits. -->
877 <choose>
878 <when>
879 <test>
880 <not>
881 <equal>
882 <b pos="1"/>
883 <lit v=" "/>
884 </equal>
885 </not>
886 </test>
887 <out>
888 <b pos="1"/>
889 </out>
890 </when>
891 </choose>
892 </def-macro>
895 <def-macro n="million" npar="1">
896 <choose>
897 <when>
898 <test>
899 <equal caseless="yes">
900 <clip pos="1" side="tl" part="lem"/>
901 <lit v="milió"/>
902 </equal>
903 </test>
904 <let>
905 <clip pos="1" side="tl" part="lem"/>
906 <lit v="milió de"/>
907 </let>
908 </when>
909 <when>
910 <test>
911 <equal caseless="yes">
912 <clip pos="1" side="tl" part="lem"/>
913 <lit v="un milió"/>
914 </equal>
915 </test>
916 <let>
917 <clip pos="1" side="tl" part="lem"/>
918 <lit v="un milió de"/>
919 </let>
920 </when>
921 </choose>
923 </def-macro>
926 <def-macro n="flexio_numerals" npar="2">
927 <choose>
928 <when>
929 <test>
930 <equal>
931 <clip pos="1" side="tl" part="gen"/>
932 <lit-tag v="GD"/>
933 </equal>
934 </test>
935 <let>
936 <clip pos="1" side="tl" part="gen"/>
937 <clip pos="2" side="tl" part="gen"/>
938 </let>
939 </when>
940 </choose>
941 </def-macro>
944 <def-macro n="det_no" npar="2"><!--No cars -> cap cotxe (canvia nombre del nom de pl a sg) -->
946 <choose>
947 <when>
948 <test>
949 <and>
950 <equal caseless="yes">
951 <clip pos="1" side="sl" part="lem"/>
952 <lit v="no"/>
953 </equal>
954 <equal>
955 <clip pos="2" side="sl" part="nbr"/>
956 <lit-tag v="pl"/>
957 </equal>
958 </and>
959 </test>
960 <let>
961 <clip pos="2" side="tl" part="nbr"/>
962 <lit-tag v="sg"/>
963 </let>
964 <let> <!-- BCN -->
965 <var n="tipus_det"/>
966 <lit-tag v="negacio"/>
967 </let>
968 </when>
971 <when>
972 <test>
973 <and>
974 <equal caseless="yes">
975 <clip pos="1" side="sl" part="lem"/>
976 <lit v="no"/>
977 </equal>
978 <equal>
979 <clip pos="2" side="sl" part="nbr"/>
980 <lit-tag v="sg"/>
981 </equal>
982 </and>
983 </test>
984 <let> <!-- BCN -->
985 <var n="tipus_det"/>
986 <lit-tag v="negacio"/>
987 </let>
988 </when>
989 <otherwise>
990 <let>
991 <var n="tipus_det"/>
992 <lit v=""/>
993 </let>
994 </otherwise>
995 </choose>
997 </def-macro>
1001 <def-macro n="comparatiu_adj1" npar="1"><!--per a afegir adverbi 'més' en adjs comparatius. -->
1002 <let>
1003 <var n="adjectiu1"/>
1004 <lit v=""/>
1005 </let>
1006 <choose>
1007 <when>
1008 <test>
1009 <or>
1010 <equal>
1011 <clip pos="1" side="sl" part="grau_adj"/>
1012 <lit-tag v="comp"/>
1013 </equal>
1014 <equal>
1015 <clip pos="1" side="sl" part="grau_adj"/>
1016 <lit-tag v="sup"/>
1017 </equal>
1018 </or>
1019 </test>
1020 <choose>
1021 <when>
1022 <test>
1023 <not>
1024 <or>
1025 <equal caseless="yes">
1026 <clip pos="1" side="sl" part="lem"/>
1027 <lit v="good"/>
1028 </equal>
1029 <equal caseless="yes">
1030 <clip pos="1" side="sl" part="lem"/>
1031 <lit v="bad"/>
1032 </equal>
1033 </or>
1034 </not>
1035 </test>
1036 <append n="adjectiu1">
1037 <lit v="més"/>
1038 <lit-tag v="preadv"/>
1039 <lit v="$ ^"/>
1040 </append>
1041 </when>
1042 </choose>
1043 </when>
1044 <otherwise>
1045 <append n="adjectiu1">
1046 <lit v=""/>
1047 </append>
1048 </otherwise>
1049 </choose>
1050 </def-macro>
1053 <def-macro n="comparatiu_adj2" npar="1"><!--per a afegir adverbi 'més' en adjs comparatius. Per a regles amb 2 adjectius. -->
1054 <let>
1055 <var n="adjectiu2"/>
1056 <lit v=""/>
1057 </let>
1058 <choose>
1059 <when>
1060 <test>
1061 <or>
1062 <equal>
1063 <clip pos="1" side="sl" part="grau_adj"/>
1064 <lit-tag v="comp"/>
1065 </equal>
1066 <equal>
1067 <clip pos="1" side="sl" part="grau_adj"/>
1068 <lit-tag v="sup"/>
1069 </equal>
1070 </or>
1071 </test>
1072 <choose>
1073 <when>
1074 <test>
1075 <not>
1076 <or>
1077 <equal caseless="yes">
1078 <clip pos="1" side="sl" part="lem"/>
1079 <lit v="good"/>
1080 </equal>
1081 <equal caseless="yes">
1082 <clip pos="1" side="sl" part="lem"/>
1083 <lit v="bad"/>
1084 </equal>
1085 </or>
1086 </not>
1087 </test>
1088 <append n="adjectiu2">
1089 <lit v="més"/>
1090 <lit-tag v="preadv"/>
1091 <lit v="$ ^"/>
1092 </append>
1093 </when>
1094 </choose>
1095 </when>
1096 <otherwise>
1097 <append n="adjectiu2">
1098 <lit v=""/>
1099 </append>
1100 </otherwise>
1101 </choose>
1102 </def-macro>
1105 <def-macro n="firstWord" npar="1">
1106 <choose>
1107 <when>
1108 <test>
1109 <equal>
1110 <clip pos="1" side="sl" part="a_np_acr"/>
1111 <lit v=""/>
1112 </equal>
1113 </test>
1114 <choose>
1115 <when>
1116 <test>
1117 <equal>
1118 <var n="EOS"/>
1119 <lit v="true"/>
1120 </equal>
1121 </test>
1122 <modify-case>
1123 <clip pos="1" side="tl" part="lem"/>
1124 <lit v="aa"/>
1125 </modify-case>
1126 <let>
1127 <var n="caseFirstWord"/>
1128 <lit v="Aa"/>
1129 </let>
1130 </when>
1131 </choose>
1132 </when>
1133 <otherwise>
1134 <let>
1135 <var n="caseFirstWord"/>
1136 <lit v="aa"/>
1137 </let>
1138 </otherwise>
1139 </choose>
1140 <let>
1141 <var n="EOS"/>
1142 <lit v="false"/>
1143 </let>
1144 </def-macro>
1148 <def-macro n="tipus_verbs" npar="1">
1149 <choose>
1150 <when>
1151 <test>
1152 <equal>
1153 <clip pos="1" side="tl" part="a_verb"/>
1154 <lit-tag v="vblex.pron"/>
1155 </equal>
1156 </test>
1157 <let>
1158 <var n="tipus_verb"/>
1159 <lit-tag v="pron"/>
1160 </let>
1161 </when>
1162 <when>
1163 <test>
1164 <or>
1165 <equal caseless="yes">
1166 <clip pos="1" side="sl" part="lemh"/>
1167 <lit v="like"/>
1168 </equal>
1169 <equal caseless="yes">
1170 <clip pos="1" side="tl" part="lemh"/>
1171 <lit v="encantar"/>
1172 </equal>
1173 </or>
1174 </test>
1175 <let>
1176 <var n="tipus_verb"/>
1177 <lit-tag v="like"/>
1178 </let>
1179 </when>
1180 <when><!-- (BCN)-->
1181 <test>
1182 <in caseless="yes">
1183 <clip pos="1" side="sl" part="lemh"/>
1184 <list n="reportingverb"/>
1185 </in>
1186 </test>
1187 <let>
1188 <var n="tipus_verb"/>
1189 <lit-tag v="reporting"/>
1190 </let>
1191 </when>
1192 <otherwise>
1193 <let>
1194 <var n="tipus_verb"/>
1195 <clip pos="1" side="tl" part="a_verb"/>
1196 </let>
1197 </otherwise>
1198 </choose>
1199 </def-macro>
1202 <def-macro n="tipus_verbs2" npar="1"><!--per quan hi ha dos verbs en una regla, cal utilitzar dues variables diferents -->
1203 <choose>
1204 <when>
1205 <test>
1206 <equal>
1207 <clip pos="1" side="tl" part="a_verb"/>
1208 <lit-tag v="vblex.pron"/>
1209 </equal>
1210 </test>
1211 <let>
1212 <var n="tipus_verb2"/>
1213 <lit-tag v="pron"/>
1214 </let>
1215 </when>
1216 <when>
1217 <test>
1218 <or>
1219 <equal caseless="yes">
1220 <clip pos="1" side="sl" part="lemh"/>
1221 <lit v="like"/>
1222 </equal>
1223 <equal caseless="yes">
1224 <clip pos="1" side="tl" part="lemh"/>
1225 <lit v="encantar"/>
1226 </equal>
1227 </or>
1228 </test>
1229 <let>
1230 <var n="tipus_verb2"/>
1231 <lit-tag v="like"/>
1232 </let>
1233 </when>
1234 <when><!-- (BCN)-->
1235 <test>
1236 <in caseless="yes">
1237 <clip pos="1" side="sl" part="lemh"/>
1238 <list n="reportingverb"/>
1239 </in>
1240 </test>
1241 <let>
1242 <var n="tipus_verb2"/>
1243 <lit-tag v="reporting"/>
1244 </let>
1245 </when>
1246 <otherwise>
1247 <let>
1248 <var n="tipus_verb2"/>
1249 <clip pos="1" side="tl" part="a_verb"/>
1250 </let>
1251 </otherwise>
1252 </choose>
1253 </def-macro>
1255 </section-def-macros>
1257 <section-rules>
1259 <!--********************************* REGLES DE SN ***************************************************** -->
1262 <rule comment="REGLA: ALL NOUNplural (BCN: per afegir l'article definit en català 'all students' :: 'tots els estudiants'.Chunk de sortida: det_nom_plural">
1264 <pattern>
1265 <pattern-item n="all"/>
1266 <pattern-item n="nomplural"/>
1267 </pattern>
1268 <action>
1269 <call-macro n="genere_nombre">
1270 <with-param pos="2"/>
1271 </call-macro>
1272 <call-macro n="det_no">
1273 <with-param pos="1"/>
1274 <with-param pos="2"/>
1275 </call-macro>
1276 <call-macro n="firstWord">
1277 <with-param pos="1"/>
1278 </call-macro>
1279 <choose>
1280 <when>
1281 <test>
1282 <equal>
1283 <clip pos="2" side="tl" part="gen"/>
1284 <lit-tag v="m"/>
1285 </equal>
1286 </test>
1287 <out>
1288 <chunk name="all_noun_plural" case="caseFirstWord">
1289 <tags>
1290 <tag><lit-tag v="SN.DET"/></tag>
1291 <tag><clip pos="2" side="tl" part="gen"/></tag>
1292 <tag><clip pos="2" side="tl" part="nbr"/></tag>
1293 </tags>
1294 <lu>
1295 <clip pos="1" side="tl" part="lem"/>
1296 <clip pos="1" side="tl" part="a_det"/>
1297 <clip pos="2" side="tl" part="gen" link-to="3"/>
1298 <clip pos="2" side="tl" part="nbr" link-to="4"/>
1299 </lu>
1300 <b/>
1301 <lu>
1302 <lit v="el"/>
1303 <lit-tag v="det.def.m.pl"/>
1304 </lu>
1305 <b/>
1306 <b pos="2"/>
1307 <lu>
1308 <clip pos="2" side="tl" part="lemh"/>
1309 <clip pos="2" side="tl" part="a_nom"/>
1310 <clip pos="2" side="tl" part="gen" link-to="3"/>
1311 <clip pos="2" side="tl" part="nbr" link-to="4"/>
1312 </lu>
1313 </chunk>
1314 </out>
1315 <let>
1316 <var n="caseFirstWord"/>
1317 <lit v="aa"/>
1318 </let>
1319 </when> <!-- femenins -->
1321 <when>
1322 <test>
1323 <equal>
1324 <clip pos="2" side="tl" part="gen"/>
1325 <lit-tag v="f"/>
1326 </equal>
1327 </test>
1328 <out>
1329 <chunk name="all_noun_plural" case="caseFirstWord">
1330 <tags>
1331 <tag><lit-tag v="SN.DET"/></tag>
1332 <tag><clip pos="2" side="tl" part="gen"/></tag>
1333 <tag><clip pos="2" side="tl" part="nbr"/></tag>
1334 </tags>
1335 <lu>
1336 <clip pos="1" side="tl" part="lem"/>
1337 <clip pos="1" side="tl" part="a_det"/>
1338 <clip pos="2" side="tl" part="gen" link-to="3"/>
1339 <clip pos="2" side="tl" part="nbr" link-to="4"/>
1340 </lu>
1341 <b/>
1342 <lu>
1343 <lit v="el"/>
1344 <lit-tag v="det.def.f.pl"/>
1345 </lu>
1346 <b/>
1347 <b pos="2"/>
1348 <lu>
1349 <clip pos="2" side="tl" part="lemh"/>
1350 <clip pos="2" side="tl" part="a_nom"/>
1351 <clip pos="2" side="tl" part="gen" link-to="3"/>
1352 <clip pos="2" side="tl" part="nbr" link-to="4"/>
1353 </lu>
1354 </chunk>
1355 </out>
1356 <let>
1357 <var n="caseFirstWord"/>
1358 <lit v="aa"/>
1359 </let>
1360 </when>
1361 </choose>
1362 </action>
1363 </rule>
1365 <rule comment="REGLA: ALL ADJ NOUNplural (BCN: per afegir l'article definit en català 'all legal states' :: 'tots els estats legals'. Chunk de sortida: det_nom_plural">
1367 <pattern>
1368 <pattern-item n="all"/>
1369 <pattern-item n="adj"/>
1370 <pattern-item n="nomplural"/>
1371 </pattern>
1372 <action>
1373 <call-macro n="genere_nombre">
1374 <with-param pos="3"/>
1375 </call-macro>
1376 <call-macro n="det_no">
1377 <with-param pos="1"/>
1378 <with-param pos="3"/>
1379 </call-macro>
1380 <call-macro n="firstWord">
1381 <with-param pos="1"/>
1382 </call-macro>
1383 <call-macro n="comparatiu_adj1">
1384 <with-param pos="2"/>
1385 </call-macro>
1387 <choose>
1388 <when>
1389 <test>
1390 <equal>
1391 <clip pos="3" side="tl" part="gen"/>
1392 <lit-tag v="m"/>
1393 </equal>
1394 </test>
1395 <out>
1396 <chunk name="all_noun_plural" case="caseFirstWord">
1397 <tags>
1398 <tag><lit-tag v="SN.DET"/></tag>
1399 <tag><clip pos="3" side="tl" part="gen"/></tag>
1400 <tag><clip pos="3" side="tl" part="nbr"/></tag>
1401 </tags>
1402 <lu>
1403 <clip pos="1" side="tl" part="lem"/>
1404 <clip pos="1" side="tl" part="a_det"/>
1405 <clip pos="3" side="tl" part="gen" link-to="3"/>
1406 <clip pos="3" side="tl" part="nbr" link-to="4"/>
1407 </lu>
1408 <b/>
1409 <lu>
1410 <lit v="el"/>
1411 <lit-tag v="det.def.m.pl"/>
1412 </lu>
1413 <b pos="2"/>
1414 <lu>
1415 <clip pos="3" side="tl" part="lemh"/>
1416 <clip pos="3" side="tl" part="a_nom"/>
1417 <clip pos="3" side="tl" part="gen" link-to="3"/>
1418 <clip pos="3" side="tl" part="nbr" link-to="4"/>
1419 </lu>
1420 <b/>
1421 <b pos="3"/>
1422 <lu>
1423 <var n="adjectiu1"/>
1424 <clip pos="2" side="tl" part="lemh"/>
1425 <clip pos="2" side="tl" part="a_adj"/>
1426 <clip pos="3" side="tl" part="gen" link-to="3"/>
1427 <clip pos="3" side="tl" part="nbr" link-to="4"/>
1428 </lu>
1430 </chunk>
1431 </out>
1432 <let>
1433 <var n="caseFirstWord"/>
1434 <lit v="aa"/>
1435 </let>
1436 </when> <!-- femenins -->
1438 <when>
1439 <test>
1440 <equal>
1441 <clip pos="3" side="tl" part="gen"/>
1442 <lit-tag v="f"/>
1443 </equal>
1444 </test>
1445 <out>
1446 <chunk name="all_noun_plural" case="caseFirstWord">
1447 <tags>
1448 <tag><lit-tag v="SN.DET"/></tag>
1449 <tag><clip pos="3" side="tl" part="gen"/></tag>
1450 <tag><clip pos="3" side="tl" part="nbr"/></tag>
1451 </tags>
1452 <lu>
1453 <clip pos="1" side="tl" part="lem"/>
1454 <clip pos="1" side="tl" part="a_det"/>
1455 <clip pos="3" side="tl" part="gen" link-to="3"/>
1456 <clip pos="3" side="tl" part="nbr" link-to="4"/>
1457 </lu>
1458 <b/>
1459 <lu>
1460 <lit v="el"/>
1461 <lit-tag v="det.def.f.pl"/>
1462 </lu>
1463 <b pos="2"/>
1464 <lu>
1465 <clip pos="3" side="tl" part="lemh"/>
1466 <clip pos="3" side="tl" part="a_nom"/>
1467 <clip pos="3" side="tl" part="gen" link-to="3"/>
1468 <clip pos="3" side="tl" part="nbr" link-to="4"/>
1469 <clip pos="3" side="tl" part="lemq"/>
1470 </lu>
1471 <b/>
1472 <b pos="3"/>
1473 <lu>
1474 <var n="adjectiu1"/>
1475 <clip pos="2" side="tl" part="lemh"/> <!-- per a les possibles cues dels PPs -->
1476 <clip pos="2" side="tl" part="a_adj"/>
1477 <clip pos="3" side="tl" part="gen" link-to="3"/>
1478 <clip pos="3" side="tl" part="nbr" link-to="4"/>
1479 <clip pos="2" side="tl" part="lemq"/> <!-- per a les possibles cues dels PPs -->
1480 </lu>
1482 </chunk>
1483 </out>
1484 <let>
1485 <var n="caseFirstWord"/>
1486 <lit v="aa"/>
1487 </let>
1488 </when>
1489 </choose>
1490 </action>
1491 </rule>
1495 <rule comment="REGLA: DET NOM TO INF (BCN: Regla que canvia la preposició TO de l'anglès per DE del català per A noms de control i per PER per als altres ('the need to work' - 'la necessitat de treballr' vs. 'a book to read' - 'un llibre per llegir'. Com que és d'aplicació general es codifica via regla i no al lèxic. Els noms de control (o equi nouns) es llisten sota la marca equinouns. Amb això evitem duplicar entrades. Les excepcions que hi pugui haver s'han de codificar al lèxic).
1496 EN principi la regla es justifica per evitar que la prep TO es tradueixi per A.">
1498 <pattern>
1499 <pattern-item n="det"/>
1500 <pattern-item n="nom"/>
1501 <pattern-item n="to"/>
1502 <pattern-item n="inf"/>
1503 </pattern>
1504 <action>
1505 <choose>
1506 <when>
1507 <test>
1508 <in caseless="yes">
1509 <clip pos="2" side="sl" part="lem"/>
1510 <list n="controlnouns"/>
1511 </in>
1512 </test>
1513 <let>
1514 <clip pos="3" side="tl" part="lem"/>
1515 <lit v ="de"/>
1516 </let>
1517 </when>
1518 <otherwise>
1519 <let>
1520 <clip pos="3" side="tl" part="lem"/>
1521 <lit v ="per"/>
1522 </let>
1523 </otherwise>
1524 </choose>
1525 <call-macro n="genere_nombre">
1526 <with-param pos="2"/>
1527 </call-macro>
1528 <call-macro n="det_no">
1529 <with-param pos="1"/>
1530 <with-param pos="2"/>
1531 </call-macro>
1532 <call-macro n="tipus_verbs"> <!-- per tractar la cua en verbs multiparaula -->
1533 <with-param pos="4"/>
1534 </call-macro>
1535 <call-macro n="firstWord">
1536 <with-param pos="1"/>
1537 </call-macro>
1539 <choose> <!-- la part del INF per a tractar la cua si enté-->
1540 <when>
1541 <test>
1542 <not>
1543 <or>
1544 <equal caseless="yes">
1545 <clip pos="4" side="sl" part="lem"/>
1546 <lit v="will"/>
1547 </equal>
1548 <equal caseless="yes">
1549 <clip pos="4" side="sl" part="lem"/>
1550 <lit v="shall"/>
1551 </equal>
1552 <equal caseless="yes">
1553 <clip pos="4" side="sl" part="lem"/>
1554 <lit v="would"/>
1555 </equal>
1556 </or>
1557 </not>
1558 </test>
1559 <choose>
1560 <when>
1561 <test>
1562 <equal>
1563 <var n="tipus_verb"/>
1564 <lit-tag v="pron"/>
1565 </equal>
1566 </test>
1567 <out>
1569 <chunk name="det_nom_to_inf" case="caseFirstWord">
1570 <tags>
1571 <tag><lit-tag v="SN.DET"/></tag>
1572 <tag><clip pos="2" side="tl" part="gen"/></tag>
1573 <tag><clip pos="2" side="tl" part="nbr"/></tag>
1574 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
1575 </tags>
1576 <lu>
1577 <clip pos="1" side="tl" part="lem"/>
1578 <clip pos="1" side="tl" part="a_det"/>
1579 <clip pos="2" side="tl" part="gen" link-to="3"/>
1580 <clip pos="2" side="tl" part="nbr" link-to="4"/>
1581 </lu>
1582 <b pos="1"/>
1583 <lu>
1584 <clip pos="2" side="tl" part="lemh"/>
1585 <clip pos="2" side="tl" part="a_nom"/>
1586 <clip pos="2" side="tl" part="gen" link-to="3"/>
1587 <clip pos="2" side="tl" part="nbr" link-to="4"/>
1588 <clip pos="2" side="tl" part="lemq"/>
1589 </lu>
1590 <b pos="2"/>
1591 <lu>
1592 <clip pos="3" side="tl" part="whole"/>
1593 </lu>
1594 <b pos="3"/>
1595 <mlu>
1596 <lu>
1597 <clip pos="4" side="tl" part="lemh"/>
1598 <clip pos="4" side="tl" part="a_verb"/>
1599 <clip pos="4" side="tl" part="temps" link-to="5"/>
1601 </lu>
1602 <lu>
1603 <lit v="es"/>
1604 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
1605 <clip pos="4" side="tl" part="lemq"/>
1606 </lu>
1607 </mlu>
1608 </chunk>
1609 </out>
1610 </when>
1611 <otherwise>
1612 <out>
1613 <chunk name="det_nom_to_inf" case="caseFirstWord">
1614 <tags>
1615 <tag><lit-tag v="SN.DET"/></tag>
1616 <tag><clip pos="2" side="tl" part="gen"/></tag>
1617 <tag><clip pos="2" side="tl" part="nbr"/></tag>
1618 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
1619 </tags>
1620 <lu>
1621 <clip pos="1" side="tl" part="lem"/>
1622 <clip pos="1" side="tl" part="a_det"/>
1623 <clip pos="2" side="tl" part="gen" link-to="3"/>
1624 <clip pos="2" side="tl" part="nbr" link-to="4"/>
1625 </lu>
1626 <b pos="1"/>
1627 <lu>
1628 <clip pos="2" side="tl" part="lemh"/>
1629 <clip pos="2" side="tl" part="a_nom"/>
1630 <clip pos="2" side="tl" part="gen" link-to="3"/>
1631 <clip pos="2" side="tl" part="nbr" link-to="4"/>
1632 <clip pos="2" side="tl" part="lemq"/>
1633 </lu>
1634 <b pos="2"/>
1635 <lu>
1636 <clip pos="3" side="tl" part="whole"/>
1637 </lu>
1638 <b pos="3"/>
1639 <lu>
1640 <clip pos="4" side="tl" part="lemh"/>
1641 <clip pos="4" side="tl" part="a_verb"/>
1642 <clip pos="4" side="tl" part="temps" link-to="5"/>
1643 <clip pos="4" side="tl" part="lemq"/>
1644 </lu>
1645 </chunk>
1646 </out>
1647 </otherwise>
1648 </choose>
1649 </when>
1650 </choose>
1652 <let>
1653 <var n="caseFirstWord"/>
1654 <lit v="aa"/>
1655 </let>
1656 </action>
1657 </rule>
1659 <rule comment="REGLA: DET NOM TO INF+clitic (igual que l'anterior, amb inf + pronom obj= inf+clític)">
1661 <pattern>
1662 <pattern-item n="det"/>
1663 <pattern-item n="nom"/>
1664 <pattern-item n="to"/>
1665 <pattern-item n="inf"/>
1666 <pattern-item n="probj"/>
1667 </pattern>
1668 <action>
1669 <choose>
1670 <when>
1671 <test>
1672 <in caseless="yes">
1673 <clip pos="2" side="sl" part="lem"/>
1674 <list n="controlnouns"/>
1675 </in>
1676 </test>
1677 <let>
1678 <clip pos="3" side="tl" part="lem"/>
1679 <lit v ="de"/>
1680 </let>
1681 </when>
1682 <otherwise>
1683 <let>
1684 <clip pos="3" side="tl" part="lem"/>
1685 <lit v ="per"/>
1686 </let>
1687 </otherwise>
1688 </choose>
1689 <call-macro n="genere_nombre">
1690 <with-param pos="2"/>
1691 </call-macro>
1692 <call-macro n="det_no">
1693 <with-param pos="1"/>
1694 <with-param pos="2"/>
1695 </call-macro>
1696 <call-macro n="tipus_verbs"> <!-- per tractar la cua en verbs multiparaula -->
1697 <with-param pos="4"/>
1698 </call-macro>
1699 <call-macro n="firstWord">
1700 <with-param pos="1"/>
1701 </call-macro>
1703 <choose> <!-- la part del INF per a tractar la cua si enté-->
1704 <when>
1705 <test>
1706 <not>
1707 <or>
1708 <equal caseless="yes">
1709 <clip pos="4" side="sl" part="lem"/>
1710 <lit v="will"/>
1711 </equal>
1712 <equal caseless="yes">
1713 <clip pos="4" side="sl" part="lem"/>
1714 <lit v="shall"/>
1715 </equal>
1716 <equal caseless="yes">
1717 <clip pos="4" side="sl" part="lem"/>
1718 <lit v="would"/>
1719 </equal>
1720 </or>
1721 </not>
1722 </test>
1723 <choose>
1724 <when>
1725 <test>
1726 <equal>
1727 <var n="tipus_verb"/>
1728 <lit-tag v="pron"/>
1729 </equal>
1730 </test>
1731 <out>
1733 <chunk name="det_nom_to_inf" case="caseFirstWord">
1734 <tags>
1735 <tag><lit-tag v="SN.DET"/></tag>
1736 <tag><clip pos="2" side="tl" part="gen"/></tag>
1737 <tag><clip pos="2" side="tl" part="nbr"/></tag>
1738 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
1739 </tags>
1740 <lu>
1741 <clip pos="1" side="tl" part="lem"/>
1742 <clip pos="1" side="tl" part="a_det"/>
1743 <clip pos="2" side="tl" part="gen" link-to="3"/>
1744 <clip pos="2" side="tl" part="nbr" link-to="4"/>
1745 </lu>
1746 <b pos="1"/>
1747 <lu>
1748 <clip pos="2" side="tl" part="lemh"/>
1749 <clip pos="2" side="tl" part="a_nom"/>
1750 <clip pos="2" side="tl" part="gen" link-to="3"/>
1751 <clip pos="2" side="tl" part="nbr" link-to="4"/>
1752 <clip pos="2" side="tl" part="lemq"/>
1753 </lu>
1754 <b pos="2"/>
1755 <lu>
1756 <clip pos="3" side="tl" part="whole"/>
1757 </lu>
1758 <b pos="3"/>
1759 <mlu>
1760 <lu>
1761 <clip pos="4" side="tl" part="lemh"/>
1762 <clip pos="4" side="tl" part="a_verb"/>
1763 <clip pos="4" side="tl" part="temps" link-to="5"/>
1764 </lu>
1765 <lu>
1766 <lit v="es"/>
1767 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
1768 </lu>
1769 <lu>
1770 <clip pos="5" side="tl" part="lem"/>
1771 <lit-tag v="prn.enc"/>
1772 <clip pos="5" side="tl" part="pers"/>
1773 <clip pos="5" side="tl" part="gen"/>
1774 <clip pos="5" side="tl" part="nbr"/>
1775 <clip pos="4" side="tl" part="lemq"/>
1776 </lu>
1777 </mlu>
1778 </chunk>
1779 </out>
1780 </when>
1781 <otherwise>
1782 <out>
1783 <chunk name="det_nom_to_inf" case="caseFirstWord">
1784 <tags>
1785 <tag><lit-tag v="SN.DET"/></tag>
1786 <tag><clip pos="2" side="tl" part="gen"/></tag>
1787 <tag><clip pos="2" side="tl" part="nbr"/></tag>
1788 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
1789 </tags>
1790 <lu>
1791 <clip pos="1" side="tl" part="lem"/>
1792 <clip pos="1" side="tl" part="a_det"/>
1793 <clip pos="2" side="tl" part="gen" link-to="3"/>
1794 <clip pos="2" side="tl" part="nbr" link-to="4"/>
1795 </lu>
1796 <b pos="1"/>
1797 <lu>
1798 <clip pos="2" side="tl" part="lemh"/>
1799 <clip pos="2" side="tl" part="a_nom"/>
1800 <clip pos="2" side="tl" part="gen" link-to="3"/>
1801 <clip pos="2" side="tl" part="nbr" link-to="4"/>
1802 <clip pos="2" side="tl" part="lemq"/>
1803 </lu>
1804 <b pos="2"/>
1805 <lu>
1806 <clip pos="3" side="tl" part="whole"/>
1807 </lu>
1808 <b pos="3"/>
1809 <mlu>
1810 <lu>
1811 <clip pos="4" side="tl" part="lemh"/>
1812 <clip pos="4" side="tl" part="a_verb"/>
1813 <clip pos="4" side="tl" part="temps" link-to="5"/>
1814 </lu>
1815 <lu>
1816 <clip pos="5" side="tl" part="lem"/>
1817 <lit-tag v="prn.enc"/>
1818 <clip pos="5" side="tl" part="pers"/>
1819 <clip pos="5" side="tl" part="gen"/>
1820 <clip pos="5" side="tl" part="nbr"/>
1821 <clip pos="4" side="tl" part="lemq"/>
1822 </lu>
1823 </mlu>
1824 </chunk>
1825 </out>
1826 </otherwise>
1827 </choose>
1828 </when>
1829 </choose>
1830 <call-macro n="f_bcond">
1831 <with-param pos="4"/>
1832 </call-macro>
1833 <let>
1834 <var n="caseFirstWord"/>
1835 <lit v="aa"/>
1836 </let>
1837 </action>
1838 </rule>
1841 <rule comment="REGLA: NOM TO INF (BCN: Regla que canvia la preposició TO de l'anglès per DE del català per A noms de control i per PER per als altres ('the need to work' - 'la necessitat de treballr' vs. 'a book to read' - 'un llibre per llegir'. Com que és d'aplicació general es codifica via regla i no al lèxic. Els noms de control (o equi nouns) es llisten sota la marca equinouns. Amb això evitem duplicar entrades. Les exepcions que hi pugui haver s'han de codificar al lèxic).
1842 EN principi la regla es justifica per evitar que la prep TO es tradueixi per A.">
1844 <pattern>
1845 <pattern-item n="nom"/>
1846 <pattern-item n="to"/>
1847 <pattern-item n="inf"/>
1848 </pattern>
1849 <action>
1850 <choose>
1851 <when>
1852 <test>
1853 <in caseless="yes">
1854 <clip pos="1" side="sl" part="lem"/>
1855 <list n="controlnouns"/>
1856 </in>
1857 </test>
1858 <let>
1859 <clip pos="2" side="tl" part="lem"/>
1860 <lit v ="de"/>
1861 </let>
1862 </when>
1863 <otherwise>
1864 <let>
1865 <clip pos="2" side="tl" part="lem"/>
1866 <lit v ="per"/>
1867 </let>
1868 </otherwise>
1869 </choose>
1870 <call-macro n="genere_nombre">
1871 <with-param pos="1"/>
1872 </call-macro>
1873 <call-macro n="tipus_verbs"> <!-- per tractar la cua en verbs multiparaula -->
1874 <with-param pos="3"/>
1875 </call-macro>
1876 <call-macro n="firstWord">
1877 <with-param pos="1"/>
1878 </call-macro>
1880 <choose> <!-- la part del INF per a tractar la cua si enté-->
1881 <when>
1882 <test>
1883 <not>
1884 <or>
1885 <equal caseless="yes">
1886 <clip pos="3" side="sl" part="lem"/>
1887 <lit v="will"/>
1888 </equal>
1889 <equal caseless="yes">
1890 <clip pos="3" side="sl" part="lem"/>
1891 <lit v="shall"/>
1892 </equal>
1893 <equal caseless="yes">
1894 <clip pos="3" side="sl" part="lem"/>
1895 <lit v="would"/>
1896 </equal>
1897 </or>
1898 </not>
1899 </test>
1900 <choose>
1901 <when>
1902 <test>
1903 <equal>
1904 <var n="tipus_verb"/>
1905 <lit-tag v="pron"/>
1906 </equal>
1907 </test>
1908 <out>
1910 <chunk name="nom_to_inf" case="caseFirstWord">
1911 <tags>
1912 <tag><lit-tag v="SN.UNDET"/></tag>
1913 <tag><clip pos="1" side="tl" part="gen"/></tag>
1914 <tag><clip pos="1" side="tl" part="nbr"/></tag>
1915 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
1916 </tags>
1917 <lu>
1918 <clip pos="1" side="tl" part="lemh"/>
1919 <clip pos="1" side="tl" part="a_nom"/>
1920 <clip pos="1" side="tl" part="gen" link-to="3"/>
1921 <clip pos="1" side="tl" part="nbr" link-to="4"/>
1922 <clip pos="1" side="tl" part="lemq"/>
1923 </lu>
1924 <b pos="1"/>
1925 <lu>
1926 <clip pos="2" side="tl" part="whole"/>
1927 </lu>
1928 <b pos="2"/>
1929 <mlu>
1930 <lu>
1931 <clip pos="3" side="tl" part="lemh"/>
1932 <clip pos="3" side="tl" part="a_verb"/>
1933 <clip pos="3" side="tl" part="temps" link-to="5"/>
1935 </lu>
1936 <lu>
1937 <lit v="es"/>
1938 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
1939 <clip pos="3" side="tl" part="lemq"/>
1940 </lu>
1941 </mlu>
1942 </chunk>
1943 </out>
1944 </when>
1945 <otherwise>
1946 <out>
1947 <chunk name="nom_to_inf" case="caseFirstWord">
1948 <tags>
1949 <tag><lit-tag v="SN.UNDET"/></tag>
1950 <tag><clip pos="1" side="tl" part="gen"/></tag>
1951 <tag><clip pos="1" side="tl" part="nbr"/></tag>
1952 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
1953 </tags>
1954 <lu>
1955 <clip pos="1" side="tl" part="lemh"/>
1956 <clip pos="1" side="tl" part="a_nom"/>
1957 <clip pos="1" side="tl" part="gen" link-to="3"/>
1958 <clip pos="1" side="tl" part="nbr" link-to="4"/>
1959 <clip pos="1" side="tl" part="lemq"/>
1960 </lu>
1961 <b pos="1"/>
1962 <lu>
1963 <clip pos="2" side="tl" part="whole"/>
1964 </lu>
1965 <b pos="2"/>
1966 <lu>
1967 <clip pos="3" side="tl" part="lemh"/>
1968 <clip pos="3" side="tl" part="a_verb"/>
1969 <clip pos="3" side="tl" part="temps" link-to="5"/>
1970 <clip pos="3" side="tl" part="lemq"/>
1971 </lu>
1972 </chunk>
1973 </out>
1974 </otherwise>
1975 </choose>
1976 </when>
1977 </choose>
1979 <let>
1980 <var n="caseFirstWord"/>
1981 <lit v="aa"/>
1982 </let>
1983 </action>
1984 </rule>
1986 <rule comment="REGLA: NOM TO INF + PRNobj">
1988 <pattern>
1989 <pattern-item n="nom"/>
1990 <pattern-item n="to"/>
1991 <pattern-item n="inf"/>
1992 <pattern-item n="probj"/>
1993 </pattern>
1994 <action>
1995 <choose>
1996 <when>
1997 <test>
1998 <in caseless="yes">
1999 <clip pos="1" side="sl" part="lem"/>
2000 <list n="controlnouns"/>
2001 </in>
2002 </test>
2003 <let>
2004 <clip pos="2" side="tl" part="lem"/>
2005 <lit v ="de"/>
2006 </let>
2007 </when>
2008 <otherwise>
2009 <let>
2010 <clip pos="2" side="tl" part="lem"/>
2011 <lit v ="per"/>
2012 </let>
2013 </otherwise>
2014 </choose>
2015 <call-macro n="genere_nombre">
2016 <with-param pos="1"/>
2017 </call-macro>
2018 <call-macro n="tipus_verbs"> <!-- per tractar la cua en verbs multiparaula -->
2019 <with-param pos="3"/>
2020 </call-macro>
2021 <call-macro n="firstWord">
2022 <with-param pos="1"/>
2023 </call-macro>
2025 <choose> <!-- la part del INF per a tractar la cua si enté-->
2026 <when>
2027 <test>
2028 <not>
2029 <or>
2030 <equal caseless="yes">
2031 <clip pos="3" side="sl" part="lem"/>
2032 <lit v="will"/>
2033 </equal>
2034 <equal caseless="yes">
2035 <clip pos="3" side="sl" part="lem"/>
2036 <lit v="shall"/>
2037 </equal>
2038 <equal caseless="yes">
2039 <clip pos="3" side="sl" part="lem"/>
2040 <lit v="would"/>
2041 </equal>
2042 </or>
2043 </not>
2044 </test>
2045 <choose>
2046 <when>
2047 <test>
2048 <equal>
2049 <var n="tipus_verb"/>
2050 <lit-tag v="pron"/>
2051 </equal>
2052 </test>
2053 <out>
2055 <chunk name="nom_to_inf" case="caseFirstWord">
2056 <tags>
2057 <tag><lit-tag v="SN.UNDET"/></tag>
2058 <tag><clip pos="1" side="tl" part="gen"/></tag>
2059 <tag><clip pos="1" side="tl" part="nbr"/></tag>
2060 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
2061 </tags>
2062 <lu>
2063 <clip pos="1" side="tl" part="lemh"/>
2064 <clip pos="1" side="tl" part="a_nom"/>
2065 <clip pos="1" side="tl" part="gen" link-to="3"/>
2066 <clip pos="1" side="tl" part="nbr" link-to="4"/>
2067 <clip pos="1" side="tl" part="lemq"/>
2068 </lu>
2069 <b pos="1"/>
2070 <lu>
2071 <clip pos="2" side="tl" part="whole"/>
2072 </lu>
2073 <b pos="2"/>
2074 <mlu>
2075 <lu>
2076 <clip pos="3" side="tl" part="lemh"/>
2077 <clip pos="3" side="tl" part="a_verb"/>
2078 <clip pos="3" side="tl" part="temps" link-to="5"/>
2079 </lu>
2080 <lu>
2081 <lit v="es"/>
2082 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
2083 </lu>
2084 <lu>
2085 <clip pos="4" side="tl" part="lem"/>
2086 <lit-tag v="prn.enc"/>
2087 <clip pos="4" side="tl" part="pers"/>
2088 <clip pos="4" side="tl" part="gen"/>
2089 <clip pos="4" side="tl" part="nbr"/>
2090 <clip pos="3" side="tl" part="lemq"/>
2091 </lu>
2092 </mlu>
2093 </chunk>
2094 </out>
2095 </when>
2096 <otherwise>
2097 <out>
2098 <chunk name="nom_to_inf" case="caseFirstWord">
2099 <tags>
2100 <tag><lit-tag v="SN.UNDET"/></tag>
2101 <tag><clip pos="1" side="tl" part="gen"/></tag>
2102 <tag><clip pos="1" side="tl" part="nbr"/></tag>
2103 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
2104 </tags>
2105 <lu>
2106 <clip pos="1" side="tl" part="lemh"/>
2107 <clip pos="1" side="tl" part="a_nom"/>
2108 <clip pos="1" side="tl" part="gen" link-to="3"/>
2109 <clip pos="1" side="tl" part="nbr" link-to="4"/>
2110 <clip pos="1" side="tl" part="lemq"/>
2111 </lu>
2112 <b pos="1"/>
2113 <lu>
2114 <clip pos="2" side="tl" part="whole"/>
2115 </lu>
2116 <b pos="2"/>
2117 <mlu>
2118 <lu>
2119 <clip pos="3" side="tl" part="lemh"/>
2120 <clip pos="3" side="tl" part="a_verb"/>
2121 <clip pos="3" side="tl" part="temps" link-to="5"/>
2122 </lu>
2123 <lu>
2124 <clip pos="4" side="tl" part="lem"/>
2125 <lit-tag v="prn.enc"/>
2126 <clip pos="4" side="tl" part="pers"/>
2127 <clip pos="4" side="tl" part="gen"/>
2128 <clip pos="4" side="tl" part="nbr"/>
2129 <clip pos="3" side="tl" part="lemq"/>
2130 </lu>
2131 </mlu>
2132 </chunk>
2133 </out>
2134 </otherwise>
2135 </choose>
2136 </when>
2137 </choose>
2138 <call-macro n="f_bcond">
2139 <with-param pos="3"/>
2140 </call-macro>
2141 <let>
2142 <var n="caseFirstWord"/>
2143 <lit v="aa"/>
2144 </let>
2145 </action>
2146 </rule>
2148 <rule comment="REGLA: DET ADJ NOM TO INF (BCN: Regla que canvia la preposició TO de l'anglès per DE del català per A noms de control i per PER per als altres ('the need to work' - 'la necessitat de treballr' vs. 'a book to read' - 'un llibre per llegir'. Com que és d'aplicació general es codifica via regla i no al lèxic. Els noms de control (o equi nouns) es llisten sota la marca equinouns. Amb això evitem duplicar entrades. Les exepcions que hi pugui haver s'han de codificar al lèxic).
2149 EN principi la regla es justifica per evitar que la prep TO es tradueixi per A.">
2151 <pattern>
2152 <pattern-item n="det"/>
2153 <pattern-item n="adj"/>
2154 <pattern-item n="nom"/>
2155 <pattern-item n="to"/>
2156 <pattern-item n="inf"/>
2157 </pattern>
2158 <action>
2159 <choose>
2160 <when>
2161 <test>
2162 <in caseless="yes">
2163 <clip pos="3" side="sl" part="lem"/>
2164 <list n="controlnouns"/>
2165 </in>
2166 </test>
2167 <let>
2168 <clip pos="4" side="tl" part="lem"/>
2169 <lit v ="de"/>
2170 </let>
2171 </when>
2172 <otherwise>
2173 <let>
2174 <clip pos="4" side="tl" part="lem"/>
2175 <lit v ="per"/>
2176 </let>
2177 </otherwise>
2178 </choose>
2179 <call-macro n="genere_nombre">
2180 <with-param pos="3"/>
2181 </call-macro>
2182 <call-macro n="det_no">
2183 <with-param pos="1"/>
2184 <with-param pos="3"/>
2185 </call-macro>
2186 <call-macro n="comparatiu_adj1">
2187 <with-param pos="2"/>
2188 </call-macro>
2189 <call-macro n="tipus_verbs"> <!-- per tractar la cua en verbs multiparaula -->
2190 <with-param pos="5"/>
2191 </call-macro>
2192 <call-macro n="firstWord">
2193 <with-param pos="1"/>
2194 </call-macro>
2195 <choose>
2196 <when>
2197 <test>
2198 <not>
2199 <or>
2200 <equal caseless="yes">
2201 <clip pos="5" side="sl" part="lem"/>
2202 <lit v="will"/>
2203 </equal>
2204 <equal caseless="yes">
2205 <clip pos="5" side="sl" part="lem"/>
2206 <lit v="shall"/>
2207 </equal>
2208 <equal caseless="yes">
2209 <clip pos="5" side="sl" part="lem"/>
2210 <lit v="would"/>
2211 </equal>
2212 </or>
2213 </not>
2214 </test>
2215 <choose>
2216 <when>
2217 <test>
2218 <equal>
2219 <var n="tipus_verb"/>
2220 <lit-tag v="pron"/>
2221 </equal>
2222 </test>
2223 <out>
2225 <chunk name="det_adj_nom_to_inf" case="caseFirstWord">
2226 <tags>
2227 <tag><lit-tag v="SN.DET"/></tag>
2228 <tag><clip pos="3" side="tl" part="gen"/></tag>
2229 <tag><clip pos="3" side="tl" part="nbr"/></tag>
2230 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
2231 </tags>
2232 <lu>
2233 <clip pos="1" side="tl" part="lem"/>
2234 <clip pos="1" side="tl" part="a_det"/>
2235 <clip pos="3" side="tl" part="gen" link-to="3"/>
2236 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2237 </lu>
2238 <b pos="1"/>
2239 <lu>
2240 <clip pos="3" side="tl" part="lemh"/>
2241 <clip pos="3" side="tl" part="a_nom"/>
2242 <clip pos="3" side="tl" part="gen" link-to="3"/>
2243 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2244 <clip pos="3" side="tl" part="lemq"/>
2245 </lu>
2246 <b pos="2"/>
2247 <lu>
2248 <var n="adjectiu1"/>
2249 <clip pos="2" side="tl" part="lemh"/> <!-- BCN només el head per evitar la cua dels PP adj-->
2250 <clip pos="2" side="tl" part="a_adj"/>
2251 <clip pos="3" side="tl" part="gen" link-to="3"/>
2252 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2253 <clip pos="2" side="tl" part="lemq"/> <!-- la cua-->
2254 </lu>
2255 <b pos="3"/>
2256 <lu>
2257 <clip pos="4" side="tl" part="whole"/>
2258 </lu>
2259 <b pos="4"/>
2260 <mlu>
2261 <lu>
2262 <clip pos="5" side="tl" part="lemh"/>
2263 <clip pos="5" side="tl" part="a_verb"/>
2264 <clip pos="5" side="tl" part="temps" link-to="5"/>
2266 </lu>
2267 <lu>
2268 <lit v="es"/>
2269 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
2270 <clip pos="5" side="tl" part="lemq"/>
2271 </lu>
2272 </mlu>
2273 </chunk>
2274 </out>
2275 </when>
2276 <otherwise>
2277 <out>
2278 <chunk name="det_adj_nom_to_inf" case="caseFirstWord">
2279 <tags>
2280 <tag><lit-tag v="SN.DET"/></tag>
2281 <tag><clip pos="3" side="tl" part="gen"/></tag>
2282 <tag><clip pos="3" side="tl" part="nbr"/></tag>
2283 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
2284 </tags>
2285 <lu>
2286 <clip pos="1" side="tl" part="lem"/>
2287 <clip pos="1" side="tl" part="a_det"/>
2288 <clip pos="3" side="tl" part="gen" link-to="3"/>
2289 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2290 </lu>
2291 <b pos="1"/>
2292 <lu>
2293 <clip pos="3" side="tl" part="lemh"/>
2294 <clip pos="3" side="tl" part="a_nom"/>
2295 <clip pos="3" side="tl" part="gen" link-to="3"/>
2296 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2297 <clip pos="3" side="tl" part="lemq"/>
2298 </lu>
2299 <b pos="2"/>
2300 <lu>
2301 <var n="adjectiu1"/>
2302 <clip pos="2" side="tl" part="lemh"/> <!-- BCN només el head per evitar la cua dels PPs adj-->
2303 <clip pos="2" side="tl" part="a_adj"/>
2304 <clip pos="3" side="tl" part="gen" link-to="3"/>
2305 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2306 <clip pos="2" side="tl" part="lemq"/> <!-- -->
2307 </lu>
2308 <b pos="3"/>
2309 <lu>
2310 <clip pos="4" side="tl" part="whole"/>
2311 </lu>
2312 <b pos="4"/>
2313 <lu>
2314 <clip pos="5" side="tl" part="lemh"/>
2315 <clip pos="5" side="tl" part="a_verb"/>
2316 <clip pos="5" side="tl" part="temps" link-to="5"/>
2317 <clip pos="5" side="tl" part="lemq"/>
2318 </lu>
2319 </chunk>
2320 </out>
2321 </otherwise>
2322 </choose>
2323 </when>
2324 </choose>
2326 <let>
2327 <var n="caseFirstWord"/>
2328 <lit v="aa"/>
2329 </let>
2330 </action>
2331 </rule>
2334 <rule comment="REGLA: DET ADJ NOM TO INF PRNobj (igual que l'anterior però amb inf + clític).">
2336 <pattern>
2337 <pattern-item n="det"/>
2338 <pattern-item n="adj"/>
2339 <pattern-item n="nom"/>
2340 <pattern-item n="to"/>
2341 <pattern-item n="inf"/>
2342 <pattern-item n="probj"/>
2343 </pattern>
2344 <action>
2345 <choose>
2346 <when>
2347 <test>
2348 <in caseless="yes">
2349 <clip pos="3" side="sl" part="lem"/>
2350 <list n="controlnouns"/>
2351 </in>
2352 </test>
2353 <let>
2354 <clip pos="4" side="tl" part="lem"/>
2355 <lit v ="de"/>
2356 </let>
2357 </when>
2358 <otherwise>
2359 <let>
2360 <clip pos="4" side="tl" part="lem"/>
2361 <lit v ="per"/>
2362 </let>
2363 </otherwise>
2364 </choose>
2365 <call-macro n="genere_nombre">
2366 <with-param pos="3"/>
2367 </call-macro>
2368 <call-macro n="det_no">
2369 <with-param pos="1"/>
2370 <with-param pos="3"/>
2371 </call-macro>
2372 <call-macro n="comparatiu_adj1">
2373 <with-param pos="2"/>
2374 </call-macro>
2375 <call-macro n="tipus_verbs"> <!-- per tractar la cua en verbs multiparaula -->
2376 <with-param pos="5"/>
2377 </call-macro>
2378 <call-macro n="firstWord">
2379 <with-param pos="1"/>
2380 </call-macro>
2381 <choose>
2382 <when>
2383 <test>
2384 <not>
2385 <or>
2386 <equal caseless="yes">
2387 <clip pos="5" side="sl" part="lem"/>
2388 <lit v="will"/>
2389 </equal>
2390 <equal caseless="yes">
2391 <clip pos="5" side="sl" part="lem"/>
2392 <lit v="shall"/>
2393 </equal>
2394 <equal caseless="yes">
2395 <clip pos="5" side="sl" part="lem"/>
2396 <lit v="would"/>
2397 </equal>
2398 </or>
2399 </not>
2400 </test>
2401 <choose>
2402 <when>
2403 <test>
2404 <equal>
2405 <var n="tipus_verb"/>
2406 <lit-tag v="pron"/>
2407 </equal>
2408 </test>
2409 <out>
2411 <chunk name="det_adj_nom_to_inf" case="caseFirstWord">
2412 <tags>
2413 <tag><lit-tag v="SN.DET"/></tag>
2414 <tag><clip pos="3" side="tl" part="gen"/></tag>
2415 <tag><clip pos="3" side="tl" part="nbr"/></tag>
2416 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
2417 </tags>
2418 <lu>
2419 <clip pos="1" side="tl" part="lem"/>
2420 <clip pos="1" side="tl" part="a_det"/>
2421 <clip pos="3" side="tl" part="gen" link-to="3"/>
2422 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2423 </lu>
2424 <b pos="1"/>
2425 <lu>
2426 <clip pos="3" side="tl" part="lemh"/>
2427 <clip pos="3" side="tl" part="a_nom"/>
2428 <clip pos="3" side="tl" part="gen" link-to="3"/>
2429 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2430 <clip pos="3" side="tl" part="lemq"/>
2431 </lu>
2432 <b pos="2"/>
2433 <lu>
2434 <var n="adjectiu1"/>
2435 <clip pos="2" side="tl" part="lemh"/> <!-- BCN només el head per evitar la cua dels PP adj-->
2436 <clip pos="2" side="tl" part="a_adj"/>
2437 <clip pos="3" side="tl" part="gen" link-to="3"/>
2438 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2439 <clip pos="2" side="tl" part="lemq"/> <!-- la cua-->
2440 </lu>
2441 <b pos="3"/>
2442 <lu>
2443 <clip pos="4" side="tl" part="whole"/>
2444 </lu>
2445 <b pos="4"/>
2446 <mlu>
2447 <lu>
2448 <clip pos="5" side="tl" part="lemh"/>
2449 <clip pos="5" side="tl" part="a_verb"/>
2450 <clip pos="5" side="tl" part="temps" link-to="5"/>
2452 </lu>
2453 <lu>
2454 <lit v="es"/>
2455 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
2456 </lu>
2457 <lu>
2458 <clip pos="6" side="tl" part="lem"/>
2459 <lit-tag v="prn.enc"/>
2460 <clip pos="6" side="tl" part="pers"/>
2461 <clip pos="6" side="tl" part="gen"/>
2462 <clip pos="6" side="tl" part="nbr"/>
2463 <clip pos="5" side="tl" part="lemq"/>
2464 </lu>
2465 </mlu>
2466 </chunk>
2467 </out>
2468 </when>
2469 <otherwise>
2470 <out>
2471 <chunk name="det_adj_nom_to_inf" case="caseFirstWord">
2472 <tags>
2473 <tag><lit-tag v="SN.DET"/></tag>
2474 <tag><clip pos="3" side="tl" part="gen"/></tag>
2475 <tag><clip pos="3" side="tl" part="nbr"/></tag>
2476 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
2477 </tags>
2478 <lu>
2479 <clip pos="1" side="tl" part="lem"/>
2480 <clip pos="1" side="tl" part="a_det"/>
2481 <clip pos="3" side="tl" part="gen" link-to="3"/>
2482 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2483 </lu>
2484 <b pos="1"/>
2485 <lu>
2486 <clip pos="3" side="tl" part="lemh"/>
2487 <clip pos="3" side="tl" part="a_nom"/>
2488 <clip pos="3" side="tl" part="gen" link-to="3"/>
2489 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2490 <clip pos="3" side="tl" part="lemq"/>
2491 </lu>
2492 <b pos="2"/>
2493 <lu>
2494 <var n="adjectiu1"/>
2495 <clip pos="2" side="tl" part="lemh"/> <!-- BCN només el head per evitar la cua dels PPs adj-->
2496 <clip pos="2" side="tl" part="a_adj"/>
2497 <clip pos="3" side="tl" part="gen" link-to="3"/>
2498 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2499 <clip pos="2" side="tl" part="lemq"/> <!-- -->
2500 </lu>
2501 <b pos="3"/>
2502 <lu>
2503 <clip pos="4" side="tl" part="whole"/>
2504 </lu>
2505 <b pos="4"/>
2506 <mlu>
2507 <lu>
2508 <clip pos="5" side="tl" part="lemh"/>
2509 <clip pos="5" side="tl" part="a_verb"/>
2510 <clip pos="5" side="tl" part="temps" link-to="5"/>
2511 </lu>
2512 <lu>
2513 <clip pos="6" side="tl" part="lem"/>
2514 <lit-tag v="prn.enc"/>
2515 <clip pos="6" side="tl" part="pers"/>
2516 <clip pos="6" side="tl" part="gen"/>
2517 <clip pos="6" side="tl" part="nbr"/>
2518 <clip pos="5" side="tl" part="lemq"/>
2519 </lu>
2520 </mlu>
2521 </chunk>
2522 </out>
2523 </otherwise>
2524 </choose>
2525 </when>
2526 </choose>
2527 <call-macro n="f_bcond">
2528 <with-param pos="5"/>
2529 </call-macro>
2530 <let>
2531 <var n="caseFirstWord"/>
2532 <lit v="aa"/>
2533 </let>
2534 </action>
2535 </rule>
2537 <!-- SINTAGNES NOMINALS SENSE ADJS-->
2539 <rule comment="REGLA: DET NOM">
2540 <pattern>
2541 <pattern-item n="det"/>
2542 <pattern-item n="nom"/>
2543 </pattern>
2544 <action>
2545 <call-macro n="genere_nombre">
2546 <with-param pos="2"/>
2547 </call-macro>
2548 <call-macro n="det_no">
2549 <with-param pos="1"/>
2550 <with-param pos="2"/>
2551 </call-macro>
2552 <call-macro n="firstWord">
2553 <with-param pos="1"/>
2554 </call-macro>
2555 <out>
2556 <chunk name="det_nom" case="caseFirstWord">
2557 <tags>
2558 <tag><lit-tag v="SN.DET"/></tag>
2559 <tag><clip pos="2" side="tl" part="gen"/></tag>
2560 <tag><clip pos="2" side="tl" part="nbr"/></tag>
2561 <tag><var n="tipus_det"/></tag> <!-- BCN per recollir si es negacio-->
2562 </tags>
2563 <lu>
2564 <clip pos="1" side="tl" part="lem"/>
2565 <clip pos="1" side="tl" part="a_det"/>
2566 <clip pos="2" side="tl" part="gen" link-to="3"/>
2567 <clip pos="2" side="tl" part="nbr" link-to="4"/>
2568 </lu>
2569 <b pos="1"/>
2570 <lu>
2571 <clip pos="2" side="tl" part="lemh"/>
2572 <clip pos="2" side="tl" part="a_nom"/>
2573 <clip pos="2" side="tl" part="gen" link-to="3"/>
2574 <clip pos="2" side="tl" part="nbr" link-to="4"/>
2575 <clip pos="2" side="tl" part="lemq"/>
2576 </lu>
2577 </chunk>
2578 </out>
2579 <let>
2580 <var n="caseFirstWord"/>
2581 <lit v="aa"/>
2582 </let>
2583 </action>
2584 </rule>
2586 <rule comment="REGLA: NUM NOM">
2587 <pattern>
2588 <pattern-item n="num"/>
2589 <pattern-item n="nom"/>
2590 </pattern>
2591 <action>
2592 <call-macro n="genere_nombre">
2593 <with-param pos="2"/>
2594 </call-macro>
2595 <call-macro n="million">
2596 <with-param pos="1"/>
2597 </call-macro>
2598 <call-macro n="flexio_numerals">
2599 <with-param pos="1"/>
2600 <with-param pos="2"/>
2601 </call-macro> <!-- Pensar tema 'teacher' -->
2602 <call-macro n="firstWord">
2603 <with-param pos="1"/>
2604 </call-macro>
2605 <out>
2606 <chunk name="num_nom" case="caseFirstWord">
2607 <tags>
2608 <tag><lit-tag v="SN.NUM"/></tag>
2609 <tag><clip pos="2" side="tl" part="gen"/></tag>
2610 <tag><clip pos="2" side="tl" part="nbr"/></tag>
2611 </tags>
2612 <lu>
2613 <clip pos="1" side="tl" part="lem"/>
2614 <clip pos="1" side="tl" part="a_num"/>
2615 <clip pos="1" side="tl" part="gen"/>
2616 <clip pos="1" side="tl" part="nbr"/>
2617 </lu>
2618 <b pos="1"/>
2619 <lu>
2620 <clip pos="2" side="tl" part="lemh"/>
2621 <clip pos="2" side="tl" part="a_nom"/>
2622 <clip pos="2" side="tl" part="gen" link-to="3"/>
2623 <clip pos="2" side="tl" part="nbr" link-to="4"/>
2624 <clip pos="2" side="tl" part="lemq"/>
2625 </lu>
2626 </chunk>
2627 </out>
2628 <let>
2629 <var n="caseFirstWord"/>
2630 <lit v="aa"/>
2631 </let>
2632 </action>
2633 </rule>
2635 <rule comment="REGLA: DET DET NOM">
2636 <pattern>
2637 <pattern-item n="det"/>
2638 <pattern-item n="det"/>
2639 <pattern-item n="nom"/>
2640 </pattern>
2641 <action>
2642 <call-macro n="genere_nombre">
2643 <with-param pos="3"/>
2644 </call-macro>
2645 <call-macro n="firstWord">
2646 <with-param pos="1"/>
2647 </call-macro>
2648 <out>
2649 <chunk name="det_det_nom" case="caseFirstWord">
2650 <tags>
2651 <tag><lit-tag v="SN.DET"/></tag>
2652 <tag><clip pos="3" side="tl" part="gen"/></tag>
2653 <tag><clip pos="3" side="tl" part="nbr"/></tag>
2654 </tags>
2655 <lu>
2656 <clip pos="1" side="tl" part="lem"/>
2657 <clip pos="1" side="tl" part="a_det"/>
2658 <clip pos="3" side="tl" part="gen" link-to="3"/>
2659 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2660 </lu>
2661 <b pos="1"/>
2662 <lu>
2663 <clip pos="2" side="tl" part="lem"/>
2664 <clip pos="2" side="tl" part="a_det"/>
2665 <clip pos="3" side="tl" part="gen" link-to="3"/>
2666 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2667 </lu>
2668 <b pos="2"/>
2669 <lu>
2670 <clip pos="3" side="tl" part="lemh"/>
2671 <clip pos="3" side="tl" part="a_nom"/>
2672 <clip pos="3" side="tl" part="gen" link-to="3"/>
2673 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2674 <clip pos="3" side="tl" part="lemq"/>
2675 </lu>
2676 </chunk>
2677 </out>
2678 <let>
2679 <var n="caseFirstWord"/>
2680 <lit v="aa"/>
2681 </let>
2682 </action>
2683 </rule>
2685 <rule comment="REGLA: DET NUM NOM">
2686 <pattern>
2687 <pattern-item n="det"/>
2688 <pattern-item n="num"/>
2689 <pattern-item n="nom"/>
2690 </pattern>
2691 <action>
2692 <call-macro n="genere_nombre">
2693 <with-param pos="3"/>
2694 </call-macro>
2695 <call-macro n="million">
2696 <with-param pos="2"/>
2697 </call-macro>
2698 <call-macro n="flexio_numerals">
2699 <with-param pos="2"/>
2700 <with-param pos="3"/>
2701 </call-macro>
2702 <call-macro n="firstWord">
2703 <with-param pos="1"/>
2704 </call-macro>
2705 <out>
2706 <chunk name="det_num_nom" case="caseFirstWord">
2707 <tags>
2708 <tag><lit-tag v="SN.DET"/></tag>
2709 <tag><clip pos="3" side="tl" part="gen"/></tag>
2710 <tag><clip pos="3" side="tl" part="nbr"/></tag>
2711 </tags>
2712 <lu>
2713 <clip pos="1" side="tl" part="lem"/>
2714 <clip pos="1" side="tl" part="a_det"/>
2715 <clip pos="3" side="tl" part="gen" link-to="3"/>
2716 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2717 </lu>
2718 <b pos="1"/>
2719 <lu>
2720 <clip pos="2" side="tl" part="lem"/>
2721 <clip pos="2" side="tl" part="a_num"/>
2722 <clip pos="2" side="tl" part="gen"/>
2723 <clip pos="2" side="tl" part="nbr"/>
2724 </lu>
2725 <b pos="2"/>
2726 <lu>
2727 <clip pos="3" side="tl" part="lemh"/>
2728 <clip pos="3" side="tl" part="a_nom"/>
2729 <clip pos="3" side="tl" part="gen" link-to="3"/>
2730 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2731 <clip pos="3" side="tl" part="lemq"/>
2732 </lu>
2733 </chunk>
2734 </out>
2735 <let>
2736 <var n="caseFirstWord"/>
2737 <lit v="aa"/>
2738 </let>
2739 </action>
2740 </rule>
2743 <rule comment="REGLA: NUM NUM NOM">
2744 <pattern>
2745 <pattern-item n="num"/>
2746 <pattern-item n="num"/>
2747 <pattern-item n="nom"/>
2748 </pattern>
2749 <action>
2750 <call-macro n="genere_nombre">
2751 <with-param pos="3"/>
2752 </call-macro>
2753 <call-macro n="million">
2754 <with-param pos="2"/>
2755 </call-macro>
2756 <choose>
2757 <when>
2758 <test>
2759 <and>
2760 <or>
2761 <equal caseless="yes">
2762 <clip pos="2" side="tl" part="lem"/>
2763 <lit v="milió de"/>
2764 </equal>
2765 <equal caseless="yes">
2766 <clip pos="2" side="tl" part="lem"/>
2767 <lit v="un milió de"/>
2768 </equal>
2769 </or>
2770 <equal>
2771 <clip pos="1" side="tl" part="gen"/>
2772 <lit-tag v="GD"/>
2773 </equal>
2774 </and>
2775 </test>
2776 <let>
2777 <clip pos="1" side="tl" part="gen"/>
2778 <lit-tag v="m"/>
2779 </let>
2780 </when>
2781 <otherwise>
2782 <call-macro n="flexio_numerals">
2783 <with-param pos="1"/>
2784 <with-param pos="3"/>
2785 </call-macro>
2786 </otherwise>
2787 </choose>
2788 <call-macro n="flexio_numerals">
2789 <with-param pos="2"/>
2790 <with-param pos="3"/>
2791 </call-macro>
2792 <call-macro n="firstWord">
2793 <with-param pos="1"/>
2794 </call-macro>
2795 <out>
2796 <chunk name="num_num_nom" case="caseFirstWord">
2797 <tags>
2798 <tag><lit-tag v="SN.NUM"/></tag>
2799 <tag><clip pos="3" side="tl" part="gen"/></tag>
2800 <tag><clip pos="3" side="tl" part="nbr"/></tag>
2801 </tags>
2802 <lu>
2803 <clip pos="1" side="tl" part="lem"/>
2804 <clip pos="1" side="tl" part="a_num"/>
2805 <clip pos="1" side="tl" part="gen"/>
2806 <clip pos="1" side="tl" part="nbr"/>
2807 </lu>
2808 <b pos="1"/>
2809 <lu>
2810 <clip pos="2" side="tl" part="lem"/>
2811 <clip pos="2" side="tl" part="a_num"/>
2812 <clip pos="2" side="tl" part="gen"/>
2813 <clip pos="2" side="tl" part="nbr"/>
2814 </lu>
2815 <b pos="2"/>
2816 <lu>
2817 <clip pos="3" side="tl" part="lemh"/>
2818 <clip pos="3" side="tl" part="a_nom"/>
2819 <clip pos="3" side="tl" part="gen" link-to="3"/>
2820 <clip pos="3" side="tl" part="nbr" link-to="4"/>
2821 <clip pos="3" side="tl" part="lemq"/>
2822 </lu>
2823 </chunk>
2824 </out>
2825 <let>
2826 <var n="caseFirstWord"/>
2827 <lit v="aa"/>
2828 </let>
2829 </action>
2830 </rule>
2833 <rule comment="REGLA: DET DET NUM NOM">
2834 <pattern>
2835 <pattern-item n="det"/>
2836 <pattern-item n="det"/>
2837 <pattern-item n="num"/>
2838 <pattern-item n="nom"/>
2839 </pattern>
2840 <action>
2841 <call-macro n="genere_nombre">
2842 <with-param pos="4"/>
2843 </call-macro>
2844 <call-macro n="million">
2845 <with-param pos="3"/>
2846 </call-macro>
2847 <call-macro n="flexio_numerals">
2848 <with-param pos="3"/>
2849 <with-param pos="4"/>
2850 </call-macro>
2851 <call-macro n="firstWord">
2852 <with-param pos="1"/>
2853 </call-macro>
2854 <out>
2855 <chunk name="det_det_num_nom" case="caseFirstWord">
2856 <tags>
2857 <tag><lit-tag v="SN.DET"/></tag>
2858 <tag><clip pos="4" side="tl" part="gen"/></tag>
2859 <tag><clip pos="4" side="tl" part="nbr"/></tag>
2860 </tags>
2861 <lu>
2862 <clip pos="1" side="tl" part="lem"/>
2863 <clip pos="1" side="tl" part="a_det"/>
2864 <clip pos="4" side="tl" part="gen" link-to="3"/>
2865 <clip pos="4" side="tl" part="nbr" link-to="4"/>
2866 </lu>
2867 <b pos="1"/>
2868 <lu>
2869 <clip pos="2" side="tl" part="lem"/>
2870 <clip pos="2" side="tl" part="a_det"/>
2871 <clip pos="4" side="tl" part="gen" link-to="3"/>
2872 <clip pos="4" side="tl" part="nbr" link-to="4"/>
2873 </lu>
2874 <b pos="2"/>
2875 <lu>
2876 <clip pos="3" side="tl" part="lem"/>
2877 <clip pos="3" side="tl" part="a_num"/>
2878 <clip pos="3" side="tl" part="gen"/>
2879 <clip pos="3" side="tl" part="nbr"/>
2880 </lu>
2881 <b pos="3"/>
2882 <lu>
2883 <clip pos="4" side="tl" part="lemh"/>
2884 <clip pos="4" side="tl" part="a_nom"/>
2885 <clip pos="4" side="tl" part="gen" link-to="3"/>
2886 <clip pos="4" side="tl" part="nbr" link-to="4"/>
2887 <clip pos="4" side="tl" part="lemq"/>
2888 </lu>
2889 </chunk>
2890 </out>
2891 <let>
2892 <var n="caseFirstWord"/>
2893 <lit v="aa"/>
2894 </let>
2895 </action>
2896 </rule>
2898 <rule comment="REGLA: DET NUM NUM NOM">
2899 <pattern>
2900 <pattern-item n="det"/>
2901 <pattern-item n="num"/>
2902 <pattern-item n="num"/>
2903 <pattern-item n="nom"/>
2904 </pattern>
2905 <action>
2906 <call-macro n="genere_nombre">
2907 <with-param pos="4"/>
2908 </call-macro>
2909 <call-macro n="million">
2910 <with-param pos="3"/>
2911 </call-macro>
2912 <choose>
2913 <when>
2914 <test>
2915 <and>
2916 <or>
2917 <equal caseless="yes">
2918 <clip pos="3" side="tl" part="lem"/>
2919 <lit v="milió de"/>
2920 </equal>
2921 <equal caseless="yes">
2922 <clip pos="3" side="tl" part="lem"/>
2923 <lit v="un milió de"/>
2924 </equal>
2925 </or>
2926 <equal>
2927 <clip pos="2" side="tl" part="gen"/>
2928 <lit-tag v="GD"/>
2929 </equal>
2930 </and>
2931 </test>
2932 <let>
2933 <clip pos="2" side="tl" part="gen"/>
2934 <lit-tag v="m"/>
2935 </let>
2936 </when>
2937 <otherwise>
2938 <call-macro n="flexio_numerals">
2939 <with-param pos="2"/>
2940 <with-param pos="4"/>
2941 </call-macro>
2942 </otherwise>
2943 </choose>
2944 <call-macro n="flexio_numerals">
2945 <with-param pos="3"/>
2946 <with-param pos="4"/>
2947 </call-macro>
2948 <call-macro n="firstWord">
2949 <with-param pos="1"/>
2950 </call-macro>
2951 <out>
2952 <chunk name="det_num_num_nom" case="caseFirstWord">
2953 <tags>
2954 <tag><lit-tag v="SN.DET"/></tag>
2955 <tag><clip pos="4" side="tl" part="gen"/></tag>
2956 <tag><clip pos="4" side="tl" part="nbr"/></tag>
2957 </tags>
2958 <lu>
2959 <clip pos="1" side="tl" part="lem"/>
2960 <clip pos="1" side="tl" part="a_det"/>
2961 <clip pos="4" side="tl" part="gen" link-to="3"/>
2962 <clip pos="4" side="tl" part="nbr" link-to="4"/>
2963 </lu>
2964 <b pos="1"/>
2965 <lu>
2966 <clip pos="2" side="tl" part="lem"/>
2967 <clip pos="2" side="tl" part="a_num"/>
2968 <clip pos="2" side="tl" part="gen"/>
2969 <clip pos="2" side="tl" part="nbr"/>
2970 </lu>
2971 <b pos="2"/>
2972 <lu>
2973 <clip pos="3" side="tl" part="lem"/>
2974 <clip pos="3" side="tl" part="a_num"/>
2975 <clip pos="3" side="tl" part="gen"/>
2976 <clip pos="3" side="tl" part="nbr"/>
2977 </lu>
2978 <b pos="3"/>
2979 <lu>
2980 <clip pos="4" side="tl" part="lemh"/>
2981 <clip pos="4" side="tl" part="a_nom"/>
2982 <clip pos="4" side="tl" part="gen" link-to="3"/>
2983 <clip pos="4" side="tl" part="nbr" link-to="4"/>
2984 <clip pos="4" side="tl" part="lemq"/>
2985 </lu>
2986 </chunk>
2987 </out>
2988 <let>
2989 <var n="caseFirstWord"/>
2990 <lit v="aa"/>
2991 </let>
2992 </action>
2993 </rule>
2994 <!-- FI SINTAGNES NOMINALS SENSE ADJS-->
2997 <!-- SINTAGNES NOMINALS AMB UN ADJ -->
2999 <rule comment="REGLA: such a ADJ NOM (afegir tb una regla such a ADJ ADJ NOM?. Aquí no he posat funció 'envia_adj' i per tant desapareix el comparatiu/superlatiu: such a bigger field = un camp tan gran. Pensar-hi">
3000 <pattern>
3001 <pattern-item n="such_a"/>
3002 <pattern-item n="adj"/>
3003 <pattern-item n="nom"/>
3004 </pattern>
3005 <action>
3006 <call-macro n="genere_nombre">
3007 <with-param pos="3"/>
3008 </call-macro>
3009 <call-macro n="firstWord">
3010 <with-param pos="1"/>
3011 </call-macro>
3012 <out>
3013 <chunk name="such_a_adj_nom" case="caseFirstWord">
3014 <tags>
3015 <tag><lit-tag v="SN.DET"/></tag>
3016 <tag><clip pos="3" side="tl" part="gen"/></tag>
3017 <tag><clip pos="3" side="tl" part="nbr"/></tag>
3018 </tags>
3019 <lu>
3020 <lit v="un"/>
3021 <lit-tag v="det.ind"/>
3022 <clip pos="3" side="tl" part="gen" link-to="3"/>
3023 <clip pos="3" side="tl" part="nbr" link-to="4"/>
3024 </lu>
3025 <b pos="1"/>
3026 <lu>
3027 <clip pos="3" side="tl" part="lemh"/>
3028 <clip pos="3" side="tl" part="a_nom"/>
3029 <clip pos="3" side="tl" part="gen" link-to="3"/>
3030 <clip pos="3" side="tl" part="nbr" link-to="4"/>
3031 <clip pos="3" side="tl" part="lemq"/>
3032 </lu>
3033 <b pos="2"/>
3034 <lu>
3035 <lit v="tan"/>
3036 <lit-tag v="preadv"/>
3037 </lu>
3038 <b/>
3039 <lu>
3040 <clip pos="2" side="tl" part="lemh"/> <!-- BCN-->
3041 <clip pos="2" side="tl" part="a_adj"/>
3042 <clip pos="3" side="tl" part="gen" link-to="3"/>
3043 <clip pos="3" side="tl" part="nbr" link-to="4"/>
3044 </lu>
3045 </chunk>
3046 </out>
3047 <let>
3048 <var n="caseFirstWord"/>
3049 <lit v="aa"/>
3050 </let>
3051 </action>
3052 </rule>
3056 <rule comment="REGLA: DET DET ADJ NOM (your many beautiful cats)">
3057 <pattern>
3058 <pattern-item n="det"/>
3059 <pattern-item n="det"/>
3060 <pattern-item n="adj"/>
3061 <pattern-item n="nom"/>
3062 </pattern>
3063 <action>
3064 <call-macro n="genere_nombre">
3065 <with-param pos="4"/>
3066 </call-macro>
3067 <call-macro n="firstWord">
3068 <with-param pos="1"/>
3069 </call-macro>
3070 <call-macro n="comparatiu_adj1">
3071 <with-param pos="3"/>
3072 </call-macro>
3073 <out>
3074 <chunk name="det_det_adj_nom" case="caseFirstWord">
3075 <tags>
3076 <tag><lit-tag v="SN.DET"/></tag>
3077 <tag><clip pos="4" side="tl" part="gen"/></tag>
3078 <tag><clip pos="4" side="tl" part="nbr"/></tag>
3079 </tags>
3080 <lu>
3081 <clip pos="1" side="tl" part="lem"/>
3082 <clip pos="1" side="tl" part="a_det"/>
3083 <clip pos="4" side="tl" part="gen" link-to="3"/>
3084 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3085 </lu>
3086 <b pos="1"/>
3087 <lu>
3088 <clip pos="2" side="tl" part="lemh"/>
3089 <clip pos="2" side="tl" part="a_det"/>
3090 <clip pos="4" side="tl" part="gen" link-to="3"/>
3091 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3092 </lu>
3093 <b pos="2"/>
3094 <lu>
3095 <clip pos="4" side="tl" part="lemh"/>
3096 <clip pos="4" side="tl" part="a_nom"/>
3097 <clip pos="4" side="tl" part="gen" link-to="3"/>
3098 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3099 <clip pos="4" side="tl" part="lemq"/>
3100 </lu>
3101 <b pos="3"/>
3102 <lu>
3103 <var n="adjectiu1"/>
3104 <clip pos="3" side="tl" part="lemh"/>
3105 <clip pos="3" side="tl" part="a_adj"/>
3106 <clip pos="4" side="tl" part="gen" link-to="3"/>
3107 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3108 </lu>
3109 </chunk>
3110 </out>
3111 <let>
3112 <var n="caseFirstWord"/>
3113 <lit v="aa"/>
3114 </let>
3115 </action>
3116 </rule>
3118 <rule comment="REGLA: DET NUM ADJ NOM (your three beautiful cats)">
3119 <pattern>
3120 <pattern-item n="det"/>
3121 <pattern-item n="num"/>
3122 <pattern-item n="adj"/>
3123 <pattern-item n="nom"/>
3124 </pattern>
3125 <action>
3126 <call-macro n="genere_nombre">
3127 <with-param pos="4"/>
3128 </call-macro>
3129 <call-macro n="million">
3130 <with-param pos="2"/>
3131 </call-macro>
3132 <call-macro n="flexio_numerals">
3133 <with-param pos="2"/>
3134 <with-param pos="4"/>
3135 </call-macro>
3136 <call-macro n="firstWord">
3137 <with-param pos="1"/>
3138 </call-macro>
3139 <call-macro n="comparatiu_adj1">
3140 <with-param pos="3"/>
3141 </call-macro>
3142 <out>
3143 <chunk name="det_num_adj_nom" case="caseFirstWord">
3144 <tags>
3145 <tag><lit-tag v="SN.DET"/></tag>
3146 <tag><clip pos="4" side="tl" part="gen"/></tag>
3147 <tag><clip pos="4" side="tl" part="nbr"/></tag>
3148 </tags>
3149 <lu>
3150 <clip pos="1" side="tl" part="lem"/>
3151 <clip pos="1" side="tl" part="a_det"/>
3152 <clip pos="4" side="tl" part="gen" link-to="3"/>
3153 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3154 </lu>
3155 <b pos="1"/>
3156 <lu>
3157 <clip pos="2" side="tl" part="lemh"/>
3158 <clip pos="2" side="tl" part="a_num"/>
3159 <clip pos="2" side="tl" part="gen"/>
3160 <clip pos="2" side="tl" part="nbr"/>
3161 </lu>
3162 <b pos="2"/>
3163 <lu>
3164 <clip pos="4" side="tl" part="lemh"/>
3165 <clip pos="4" side="tl" part="a_nom"/>
3166 <clip pos="4" side="tl" part="gen" link-to="3"/>
3167 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3168 <clip pos="4" side="tl" part="lemq"/>
3169 </lu>
3170 <b pos="3"/>
3171 <lu>
3172 <var n="adjectiu1"/>
3173 <clip pos="3" side="tl" part="lemh"/>
3174 <clip pos="3" side="tl" part="a_adj"/>
3175 <clip pos="4" side="tl" part="gen" link-to="3"/>
3176 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3177 </lu>
3178 </chunk>
3179 </out>
3180 <let>
3181 <var n="caseFirstWord"/>
3182 <lit v="aa"/>
3183 </let>
3184 </action>
3185 </rule>
3187 <rule comment="REGLA: DET DET ADV (incl preadv) ADJ NOM (BCN)">
3188 <pattern>
3189 <pattern-item n="det"/>
3190 <pattern-item n="detquant"/>
3191 <pattern-item n="adv_preadv"/>
3192 <pattern-item n="adj"/>
3193 <pattern-item n="nom"/>
3194 </pattern>
3195 <action>
3196 <call-macro n="genere_nombre">
3197 <with-param pos="5"/>
3198 </call-macro>
3199 <call-macro n="det_no">
3200 <with-param pos="1"/>
3201 <with-param pos="5"/>
3202 </call-macro>
3203 <call-macro n="firstWord">
3204 <with-param pos="1"/>
3205 </call-macro>
3206 <call-macro n="comparatiu_adj1">
3207 <with-param pos="4"/>
3208 </call-macro>
3209 <out>
3210 <chunk name="det_detquant_adv_adj_nom" case="caseFirstWord">
3211 <tags>
3212 <tag><lit-tag v="SN.DET"/></tag>
3213 <tag><clip pos="5" side="tl" part="gen"/></tag>
3214 <tag><clip pos="5" side="tl" part="nbr"/></tag>
3215 </tags>
3216 <lu>
3217 <clip pos="1" side="tl" part="lem"/>
3218 <clip pos="1" side="tl" part="a_det"/>
3219 <clip pos="5" side="tl" part="gen" link-to="3"/>
3220 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3221 </lu>
3222 <b pos="1"/>
3223 <lu>
3224 <clip pos="5" side="tl" part="lemh"/>
3225 <clip pos="5" side="tl" part="a_nom"/>
3226 <clip pos="5" side="tl" part="gen" link-to="3"/>
3227 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3228 <clip pos="5" side="tl" part="lemq"/>
3229 </lu>
3230 <b pos="2"/>
3231 <lu>
3232 <clip pos="2" side="tl" part="lem"/>
3233 <clip pos="2" side="tl" part="a_det"/>
3234 <clip pos="5" side="tl" part="gen" link-to="3"/>
3235 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3236 </lu>
3237 <b pos="3"/>
3238 <lu>
3239 <clip pos="3" side="tl" part="whole"/>
3240 </lu>
3241 <b pos="4"/>
3242 <lu>
3243 <var n="adjectiu1"/>
3244 <clip pos="4" side="tl" part="lemh"/>
3245 <clip pos="4" side="tl" part="a_adj"/>
3246 <clip pos="5" side="tl" part="gen" link-to="3"/>
3247 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3248 <clip pos="4" side="tl" part="lemq"/>
3249 </lu>
3250 </chunk>
3251 </out>
3252 <let>
3253 <var n="caseFirstWord"/>
3254 <lit v="aa"/>
3255 </let>
3256 </action>
3257 </rule>
3259 <rule comment="REGLA: DET NUM ADV (incl preadv) ADJ NOM (BCN)">
3260 <pattern>
3261 <pattern-item n="det"/>
3262 <pattern-item n="num"/>
3263 <pattern-item n="adv_preadv"/>
3264 <pattern-item n="adj"/>
3265 <pattern-item n="nom"/>
3266 </pattern>
3267 <action>
3268 <call-macro n="genere_nombre">
3269 <with-param pos="5"/>
3270 </call-macro>
3271 <call-macro n="million">
3272 <with-param pos="2"/>
3273 </call-macro>
3274 <call-macro n="flexio_numerals">
3275 <with-param pos="2"/>
3276 <with-param pos="5"/>
3277 </call-macro>
3278 <call-macro n="firstWord">
3279 <with-param pos="1"/>
3280 </call-macro>
3281 <call-macro n="comparatiu_adj1">
3282 <with-param pos="4"/>
3283 </call-macro>
3284 <out>
3285 <chunk name="det_num_adv_adj_nom" case="caseFirstWord">
3286 <tags>
3287 <tag><lit-tag v="SN.NUM"/></tag>
3288 <tag><clip pos="5" side="tl" part="gen"/></tag>
3289 <tag><clip pos="5" side="tl" part="nbr"/></tag>
3290 </tags>
3291 <lu>
3292 <clip pos="1" side="tl" part="lem"/>
3293 <clip pos="1" side="tl" part="a_det"/>
3294 <clip pos="5" side="tl" part="gen" link-to="3"/>
3295 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3296 </lu>
3297 <b pos="1"/>
3298 <lu>
3299 <clip pos="2" side="tl" part="lem"/>
3300 <clip pos="2" side="tl" part="a_num"/>
3301 <clip pos="2" side="tl" part="gen"/>
3302 <clip pos="2" side="tl" part="nbr"/>
3303 </lu>
3304 <b pos="2"/>
3305 <lu>
3306 <clip pos="5" side="tl" part="lemh"/>
3307 <clip pos="5" side="tl" part="a_nom"/>
3308 <clip pos="5" side="tl" part="gen" link-to="3"/>
3309 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3310 <clip pos="5" side="tl" part="lemq"/>
3311 </lu>
3312 <b pos="3"/>
3313 <lu>
3314 <clip pos="3" side="tl" part="whole"/>
3315 </lu>
3316 <b pos="4"/>
3317 <lu>
3318 <var n="adjectiu1"/>
3319 <clip pos="4" side="tl" part="lemh"/>
3320 <clip pos="4" side="tl" part="a_adj"/>
3321 <clip pos="5" side="tl" part="gen" link-to="3"/>
3322 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3323 <clip pos="4" side="tl" part="lemq"/>
3324 </lu>
3325 </chunk>
3326 </out>
3327 <let>
3328 <var n="caseFirstWord"/>
3329 <lit v="aa"/>
3330 </let>
3331 </action>
3332 </rule>
3334 <rule comment="REGLA: DET ADV (incl preadv) ADJ NOM">
3335 <pattern>
3336 <pattern-item n="det"/>
3337 <pattern-item n="adv_preadv"/>
3338 <pattern-item n="adj"/>
3339 <pattern-item n="nom"/>
3340 </pattern>
3341 <action>
3342 <call-macro n="genere_nombre">
3343 <with-param pos="4"/>
3344 </call-macro>
3345 <call-macro n="det_no">
3346 <with-param pos="1"/>
3347 <with-param pos="4"/>
3348 </call-macro>
3349 <call-macro n="firstWord">
3350 <with-param pos="1"/>
3351 </call-macro>
3352 <call-macro n="comparatiu_adj1">
3353 <with-param pos="3"/>
3354 </call-macro>
3355 <out>
3356 <chunk name="det_adv_adj_nom" case="caseFirstWord">
3357 <tags>
3358 <tag><lit-tag v="SN.DET"/></tag>
3359 <tag><clip pos="4" side="tl" part="gen"/></tag>
3360 <tag><clip pos="4" side="tl" part="nbr"/></tag>
3361 </tags>
3362 <lu>
3363 <clip pos="1" side="tl" part="lem"/>
3364 <clip pos="1" side="tl" part="a_det"/>
3365 <clip pos="4" side="tl" part="gen" link-to="3"/>
3366 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3367 </lu>
3368 <b pos="1"/>
3369 <lu>
3370 <clip pos="4" side="tl" part="lemh"/>
3371 <clip pos="4" side="tl" part="a_nom"/>
3372 <clip pos="4" side="tl" part="gen" link-to="3"/>
3373 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3374 <clip pos="4" side="tl" part="lemq"/>
3375 </lu>
3376 <b pos="2"/>
3377 <lu>
3378 <clip pos="2" side="tl" part="whole"/>
3379 </lu>
3380 <b pos="3"/>
3381 <lu>
3382 <var n="adjectiu1"/>
3383 <clip pos="3" side="tl" part="lemh"/>
3384 <clip pos="3" side="tl" part="a_adj"/>
3385 <clip pos="4" side="tl" part="gen" link-to="3"/>
3386 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3387 <clip pos="3" side="tl" part="lemq"/>
3388 </lu>
3389 </chunk>
3390 </out>
3391 <let>
3392 <var n="caseFirstWord"/>
3393 <lit v="aa"/>
3394 </let>
3395 </action>
3396 </rule>
3398 <rule comment="REGLA: NUM ADV (incl preadv) ADJ NOM">
3399 <pattern>
3400 <pattern-item n="num"/>
3401 <pattern-item n="adv_preadv"/>
3402 <pattern-item n="adj"/>
3403 <pattern-item n="nom"/>
3404 </pattern>
3405 <action>
3406 <call-macro n="genere_nombre">
3407 <with-param pos="4"/>
3408 </call-macro>
3409 <call-macro n="million">
3410 <with-param pos="1"/>
3411 </call-macro>
3412 <call-macro n="flexio_numerals">
3413 <with-param pos="1"/>
3414 <with-param pos="4"/>
3415 </call-macro>
3416 <call-macro n="firstWord">
3417 <with-param pos="1"/>
3418 </call-macro>
3419 <call-macro n="comparatiu_adj1">
3420 <with-param pos="3"/>
3421 </call-macro>
3422 <out>
3423 <chunk name="num_adv_adj_nom" case="caseFirstWord">
3424 <tags>
3425 <tag><lit-tag v="SN.NUM"/></tag>
3426 <tag><clip pos="4" side="tl" part="gen"/></tag>
3427 <tag><clip pos="4" side="tl" part="nbr"/></tag>
3428 </tags>
3429 <lu>
3430 <clip pos="1" side="tl" part="lem"/>
3431 <clip pos="1" side="tl" part="a_num"/>
3432 <clip pos="1" side="tl" part="gen"/>
3433 <clip pos="1" side="tl" part="nbr"/>
3434 </lu>
3435 <b pos="1"/>
3436 <lu>
3437 <clip pos="4" side="tl" part="lemh"/>
3438 <clip pos="4" side="tl" part="a_nom"/>
3439 <clip pos="4" side="tl" part="gen" link-to="3"/>
3440 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3441 <clip pos="4" side="tl" part="lemq"/>
3442 </lu>
3443 <b pos="2"/>
3444 <lu>
3445 <clip pos="2" side="tl" part="whole"/>
3446 </lu>
3447 <b pos="3"/>
3448 <lu>
3449 <var n="adjectiu1"/>
3450 <clip pos="3" side="tl" part="lemh"/>
3451 <clip pos="3" side="tl" part="a_adj"/>
3452 <clip pos="4" side="tl" part="gen" link-to="3"/>
3453 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3454 <clip pos="3" side="tl" part="lemq"/>
3455 </lu>
3456 </chunk>
3457 </out>
3458 <let>
3459 <var n="caseFirstWord"/>
3460 <lit v="aa"/>
3461 </let>
3462 </action>
3463 </rule>
3466 <rule comment="REGLA: PREADV ADJ NOM">
3467 <pattern>
3468 <pattern-item n="preadv"/>
3469 <pattern-item n="adj"/>
3470 <pattern-item n="nom"/>
3471 </pattern>
3472 <action>
3473 <call-macro n="genere_nombre">
3474 <with-param pos="3"/>
3475 </call-macro>
3476 <call-macro n="firstWord">
3477 <with-param pos="1"/>
3478 </call-macro>
3479 <call-macro n="comparatiu_adj1">
3480 <with-param pos="2"/>
3481 </call-macro>
3482 <out>
3483 <chunk name="adv_adj_nom" case="caseFirstWord">
3484 <tags>
3485 <tag><lit-tag v="SN.UNDET"/></tag>
3486 <tag><clip pos="3" side="tl" part="gen"/></tag>
3487 <tag><clip pos="3" side="tl" part="nbr"/></tag>
3488 </tags>
3489 <lu>
3490 <clip pos="3" side="tl" part="lemh"/>
3491 <clip pos="3" side="tl" part="a_nom"/>
3492 <clip pos="3" side="tl" part="gen" link-to="3"/>
3493 <clip pos="3" side="tl" part="nbr" link-to="4"/>
3494 <clip pos="3" side="tl" part="lemq"/>
3495 </lu>
3496 <b pos="1"/>
3497 <lu>
3498 <clip pos="1" side="tl" part="whole"/>
3499 </lu>
3500 <b pos="2"/>
3501 <lu>
3502 <var n="adjectiu1"/>
3503 <clip pos="2" side="tl" part="lemh"/>
3504 <clip pos="2" side="tl" part="a_adj"/>
3505 <clip pos="3" side="tl" part="gen" link-to="3"/>
3506 <clip pos="3" side="tl" part="nbr" link-to="4"/>
3507 </lu>
3508 </chunk>
3509 </out>
3510 <let>
3511 <var n="caseFirstWord"/>
3512 <lit v="aa"/>
3513 </let>
3514 </action>
3515 </rule>
3518 <rule comment="REGLA: PREADV ADJ NOM (és com la regla anterior, però inclou tb adverbis junt amb pp: 'locally produced materials'. No hi ha cap regla per ADV ADJ(pp) NOM perquè l'adverbi no sempre modifica l'adjectiu o pp (....'always green articles'). He pensat que quan és 'pp' és més probable que l'adverbi modifiqui el pp, tot i que tampoc sempre és així.">
3519 <pattern>
3520 <pattern-item n="adv_preadv"/>
3521 <pattern-item n="pp"/>
3522 <pattern-item n="nom"/>
3523 </pattern>
3524 <action>
3525 <call-macro n="genere_nombre">
3526 <with-param pos="3"/>
3527 </call-macro>
3528 <call-macro n="firstWord">
3529 <with-param pos="1"/>
3530 </call-macro>
3531 <out>
3532 <chunk name="adv_adj_nom" case="caseFirstWord">
3533 <tags>
3534 <tag><lit-tag v="SN.UNDET"/></tag>
3535 <tag><clip pos="3" side="tl" part="gen"/></tag>
3536 <tag><clip pos="3" side="tl" part="nbr"/></tag>
3537 </tags>
3538 <lu>
3539 <clip pos="3" side="tl" part="lemh"/>
3540 <clip pos="3" side="tl" part="a_nom"/>
3541 <clip pos="3" side="tl" part="gen" link-to="3"/>
3542 <clip pos="3" side="tl" part="nbr" link-to="4"/>
3543 <clip pos="3" side="tl" part="lemq"/>
3544 </lu>
3545 <b pos="1"/>
3546 <lu>
3547 <clip pos="2" side="tl" part="lemh"/>
3548 <clip pos="2" side="tl" part="a_adj"/>
3549 <clip pos="3" side="tl" part="gen" link-to="3"/>
3550 <clip pos="3" side="tl" part="nbr" link-to="4"/>
3551 </lu>
3552 <b pos="2"/>
3553 <lu>
3554 <clip pos="1" side="tl" part="whole"/>
3555 </lu>
3556 </chunk>
3557 </out>
3558 <let>
3559 <var n="caseFirstWord"/>
3560 <lit v="aa"/>
3561 </let>
3562 </action>
3563 </rule>
3566 <rule comment="REGLA: DET ADJ NOM">
3567 <pattern>
3568 <pattern-item n="det"/>
3569 <pattern-item n="adj"/>
3570 <pattern-item n="nom"/>
3571 </pattern>
3572 <action>
3573 <call-macro n="genere_nombre">
3574 <with-param pos="3"/>
3575 </call-macro>
3576 <call-macro n="det_no">
3577 <with-param pos="1"/>
3578 <with-param pos="3"/>
3579 </call-macro>
3580 <call-macro n="firstWord">
3581 <with-param pos="1"/>
3582 </call-macro>
3583 <call-macro n="comparatiu_adj1">
3584 <with-param pos="2"/>
3585 </call-macro>
3586 <out>
3587 <chunk name="det_adj_nom" case="caseFirstWord">
3588 <tags>
3589 <tag><lit-tag v="SN.DET"/></tag>
3590 <tag><clip pos="3" side="tl" part="gen"/></tag>
3591 <tag><clip pos="3" side="tl" part="nbr"/></tag>
3592 </tags>
3593 <lu>
3594 <clip pos="1" side="tl" part="lem"/>
3595 <clip pos="1" side="tl" part="a_det"/>
3596 <clip pos="3" side="tl" part="gen" link-to="3"/>
3597 <clip pos="3" side="tl" part="nbr" link-to="4"/>
3598 </lu>
3599 <b pos="1"/>
3600 <lu>
3601 <clip pos="3" side="tl" part="lemh"/>
3602 <clip pos="3" side="tl" part="a_nom"/>
3603 <clip pos="3" side="tl" part="gen" link-to="3"/>
3604 <clip pos="3" side="tl" part="nbr" link-to="4"/>
3605 <clip pos="3" side="tl" part="lemq"/>
3606 </lu>
3607 <b pos="2"/>
3608 <lu>
3609 <var n="adjectiu1"/>
3610 <clip pos="2" side="tl" part="lemh"/>
3611 <clip pos="2" side="tl" part="a_adj"/>
3612 <clip pos="3" side="tl" part="gen" link-to="3"/>
3613 <clip pos="3" side="tl" part="nbr" link-to="4"/>
3614 </lu>
3615 </chunk>
3616 </out>
3617 <let>
3618 <var n="caseFirstWord"/>
3619 <lit v="aa"/>
3620 </let>
3621 </action>
3622 </rule>
3625 <rule comment="REGLA: NUM ADJ NOM">
3626 <pattern>
3627 <pattern-item n="num"/>
3628 <pattern-item n="adj"/>
3629 <pattern-item n="nom"/>
3630 </pattern>
3631 <action>
3632 <call-macro n="genere_nombre">
3633 <with-param pos="3"/>
3634 </call-macro>
3635 <call-macro n="det_no">
3636 <with-param pos="1"/>
3637 <with-param pos="3"/>
3638 </call-macro>
3639 <call-macro n="million">
3640 <with-param pos="1"/>
3641 </call-macro>
3642 <call-macro n="flexio_numerals">
3643 <with-param pos="1"/>
3644 <with-param pos="3"/>
3645 </call-macro>
3646 <call-macro n="firstWord">
3647 <with-param pos="1"/>
3648 </call-macro>
3649 <call-macro n="comparatiu_adj1">
3650 <with-param pos="2"/>
3651 </call-macro>
3652 <out>
3653 <chunk name="num_adj_nom" case="caseFirstWord">
3654 <tags>
3655 <tag><lit-tag v="SN.NUM"/></tag>
3656 <tag><clip pos="3" side="tl" part="gen"/></tag>
3657 <tag><clip pos="3" side="tl" part="nbr"/></tag>
3658 </tags>
3659 <lu>
3660 <clip pos="1" side="tl" part="lem"/>
3661 <clip pos="1" side="tl" part="a_num"/>
3662 <clip pos="1" side="tl" part="gen"/>
3663 <clip pos="1" side="tl" part="nbr"/>
3664 </lu>
3665 <b pos="1"/>
3666 <lu>
3667 <clip pos="3" side="tl" part="lemh"/>
3668 <clip pos="3" side="tl" part="a_nom"/>
3669 <clip pos="3" side="tl" part="gen" link-to="3"/>
3670 <clip pos="3" side="tl" part="nbr" link-to="4"/>
3671 <clip pos="3" side="tl" part="lemq"/>
3672 </lu>
3673 <b pos="2"/>
3674 <lu>
3675 <var n="adjectiu1"/>
3676 <clip pos="2" side="tl" part="lem"/>
3677 <clip pos="2" side="tl" part="a_adj"/>
3678 <clip pos="3" side="tl" part="gen" link-to="3"/>
3679 <clip pos="3" side="tl" part="nbr" link-to="4"/>
3680 </lu>
3681 </chunk>
3682 </out>
3683 <let>
3684 <var n="caseFirstWord"/>
3685 <lit v="aa"/>
3686 </let>
3687 </action>
3688 </rule>
3690 <rule comment="REGLA: ADJ NOM">
3691 <pattern>
3692 <pattern-item n="adj"/>
3693 <pattern-item n="nom"/>
3694 </pattern>
3695 <action>
3696 <call-macro n="genere_nombre">
3697 <with-param pos="2"/>
3698 </call-macro>
3699 <call-macro n="firstWord">
3700 <with-param pos="1"/>
3701 </call-macro>
3702 <call-macro n="comparatiu_adj1">
3703 <with-param pos="1"/>
3704 </call-macro>
3705 <out>
3706 <chunk name="adj_nom" case="caseFirstWord">
3707 <tags>
3708 <tag><lit-tag v="SN.UNDET"/></tag>
3709 <tag><clip pos="2" side="tl" part="gen"/></tag>
3710 <tag><clip pos="2" side="tl" part="nbr"/></tag>
3711 </tags>
3712 <lu>
3713 <clip pos="2" side="tl" part="lemh"/>
3714 <clip pos="2" side="tl" part="a_nom"/>
3715 <clip pos="2" side="tl" part="gen" link-to="3"/>
3716 <clip pos="2" side="tl" part="nbr" link-to="4"/>
3717 <clip pos="2" side="tl" part="lemq"/>
3718 </lu>
3719 <b pos="1"/>
3720 <lu>
3721 <var n="adjectiu1"/>
3722 <clip pos="1" side="tl" part="lemh"/>
3723 <clip pos="1" side="tl" part="a_adj"/>
3724 <clip pos="2" side="tl" part="gen" link-to="3"/>
3725 <clip pos="2" side="tl" part="nbr" link-to="4"/>
3726 <clip pos="1" side="tl" part="lemq"/>
3727 </lu>
3728 </chunk>
3729 </out>
3730 <let>
3731 <var n="caseFirstWord"/>
3732 <lit v="aa"/>
3733 </let>
3734 </action>
3735 </rule>
3737 <!-- FI SINTAGMES NOMINALS AMB UN ADJ -->
3740 <!-- SINTAGMES NOMINALS AMB DOS ADJS (ADJ ADJ)-->
3742 <rule comment="REGLA: DET ADJ ADJ NOM">
3743 <pattern>
3744 <pattern-item n="det"/>
3745 <pattern-item n="adj"/>
3746 <pattern-item n="adj"/>
3747 <pattern-item n="nom"/>
3748 </pattern>
3749 <action>
3750 <call-macro n="genere_nombre">
3751 <with-param pos="4"/>
3752 </call-macro>
3753 <call-macro n="det_no">
3754 <with-param pos="1"/>
3755 <with-param pos="4"/>
3756 </call-macro>
3757 <call-macro n="firstWord">
3758 <with-param pos="1"/>
3759 </call-macro>
3760 <call-macro n="comparatiu_adj1">
3761 <with-param pos="2"/>
3762 </call-macro>
3763 <call-macro n="comparatiu_adj2">
3764 <with-param pos="3"/>
3765 </call-macro>
3766 <out>
3767 <chunk name="det_adj_adj_nom" case="caseFirstWord">
3768 <tags>
3769 <tag><lit-tag v="SN.DET"/></tag>
3770 <tag><clip pos="4" side="tl" part="gen"/></tag>
3771 <tag><clip pos="4" side="tl" part="nbr"/></tag>
3772 </tags>
3773 <lu>
3774 <clip pos="1" side="tl" part="lem"/>
3775 <clip pos="1" side="tl" part="a_det"/>
3776 <clip pos="4" side="tl" part="gen" link-to="3"/>
3777 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3778 </lu>
3779 <b pos="1"/>
3780 <lu>
3781 <clip pos="4" side="tl" part="lemh"/>
3782 <clip pos="4" side="tl" part="a_nom"/>
3783 <clip pos="4" side="tl" part="gen" link-to="3"/>
3784 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3785 <clip pos="4" side="tl" part="lemq"/>
3786 </lu>
3787 <b pos="2"/>
3788 <lu>
3789 <var n="adjectiu2"/>
3790 <clip pos="3" side="tl" part="lem"/>
3791 <clip pos="3" side="tl" part="a_adj"/>
3792 <clip pos="4" side="tl" part="gen" link-to="3"/>
3793 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3794 </lu>
3795 <b pos="3"/>
3796 <lu>
3797 <var n="adjectiu1"/>
3798 <clip pos="2" side="tl" part="lem"/>
3799 <clip pos="2" side="tl" part="a_adj"/>
3800 <clip pos="4" side="tl" part="gen" link-to="3"/>
3801 <clip pos="4" side="tl" part="nbr" link-to="4"/>
3802 </lu>
3803 </chunk>
3804 </out>
3805 <let>
3806 <var n="caseFirstWord"/>
3807 <lit v="aa"/>
3808 </let>
3809 </action>
3810 </rule>
3813 <rule comment="REGLA: DET DET ADJ ADJ NOM (BCN)">
3814 <pattern>
3815 <pattern-item n="det"/>
3816 <pattern-item n="det"/>
3817 <pattern-item n="adj"/>
3818 <pattern-item n="adj"/>
3819 <pattern-item n="nom"/>
3820 </pattern>
3821 <action>
3822 <call-macro n="genere_nombre">
3823 <with-param pos="5"/>
3824 </call-macro>
3825 <call-macro n="det_no">
3826 <with-param pos="1"/>
3827 <with-param pos="5"/>
3828 </call-macro>
3829 <call-macro n="firstWord">
3830 <with-param pos="1"/>
3831 </call-macro>
3832 <call-macro n="comparatiu_adj1">
3833 <with-param pos="3"/>
3834 </call-macro>
3835 <call-macro n="comparatiu_adj2">
3836 <with-param pos="4"/>
3837 </call-macro>
3838 <out>
3839 <chunk name="det_det_adj_adj_nom" case="caseFirstWord">
3840 <tags>
3841 <tag><lit-tag v="SN.DET"/></tag>
3842 <tag><clip pos="5" side="tl" part="gen"/></tag>
3843 <tag><clip pos="5" side="tl" part="nbr"/></tag>
3844 </tags>
3845 <lu>
3846 <clip pos="1" side="tl" part="lem"/>
3847 <clip pos="1" side="tl" part="a_det"/>
3848 <clip pos="5" side="tl" part="gen" link-to="3"/>
3849 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3850 </lu>
3851 <b pos="1"/>
3852 <lu>
3853 <clip pos="2" side="tl" part="lem"/>
3854 <clip pos="2" side="tl" part="a_det"/>
3855 <clip pos="5" side="tl" part="gen" link-to="3"/>
3856 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3857 </lu>
3858 <b pos="2"/>
3859 <lu>
3860 <clip pos="5" side="tl" part="lemh"/>
3861 <clip pos="5" side="tl" part="a_nom"/>
3862 <clip pos="5" side="tl" part="gen" link-to="3"/>
3863 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3864 <clip pos="5" side="tl" part="lemq"/>
3865 </lu>
3866 <b pos="3"/>
3867 <lu>
3868 <var n="adjectiu2"/>
3869 <clip pos="4" side="tl" part="lem"/>
3870 <clip pos="4" side="tl" part="a_adj"/>
3871 <clip pos="5" side="tl" part="gen" link-to="3"/>
3872 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3873 </lu>
3874 <b pos="4"/>
3875 <lu>
3876 <var n="adjectiu1"/>
3877 <clip pos="3" side="tl" part="lem"/>
3878 <clip pos="3" side="tl" part="a_adj"/>
3879 <clip pos="5" side="tl" part="gen" link-to="3"/>
3880 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3881 </lu>
3882 </chunk>
3883 </out>
3884 <let>
3885 <var n="caseFirstWord"/>
3886 <lit v="aa"/>
3887 </let>
3888 </action>
3889 </rule>
3892 <rule comment="REGLA: DET ADV ADJ ADJ NOM (BCN a currently valid legislative delegationi -> una delegació legislativa actualment vàlida)">
3893 <pattern>
3894 <pattern-item n="det"/>
3895 <pattern-item n="adv_preadv"/>
3896 <pattern-item n="adj"/>
3897 <pattern-item n="adj"/>
3898 <pattern-item n="nom"/>
3899 </pattern>
3900 <action>
3901 <call-macro n="genere_nombre">
3902 <with-param pos="5"/>
3903 </call-macro>
3904 <call-macro n="det_no">
3905 <with-param pos="1"/>
3906 <with-param pos="5"/>
3907 </call-macro>
3908 <call-macro n="firstWord">
3909 <with-param pos="1"/>
3910 </call-macro>
3911 <call-macro n="comparatiu_adj1">
3912 <with-param pos="3"/>
3913 </call-macro>
3914 <call-macro n="comparatiu_adj2">
3915 <with-param pos="4"/>
3916 </call-macro>
3917 <out>
3918 <chunk name="det_adv_adj_adj_nom" case="caseFirstWord">
3919 <tags>
3920 <tag><lit-tag v="SN.DET"/></tag>
3921 <tag><clip pos="5" side="tl" part="gen"/></tag>
3922 <tag><clip pos="5" side="tl" part="nbr"/></tag>
3923 </tags>
3924 <lu>
3925 <clip pos="1" side="tl" part="lem"/>
3926 <clip pos="1" side="tl" part="a_det"/>
3927 <clip pos="5" side="tl" part="gen" link-to="3"/>
3928 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3929 </lu>
3930 <b pos="1"/>
3931 <lu>
3932 <clip pos="5" side="tl" part="lemh"/>
3933 <clip pos="5" side="tl" part="a_nom"/>
3934 <clip pos="5" side="tl" part="gen" link-to="3"/>
3935 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3936 <clip pos="5" side="tl" part="lemq"/>
3937 </lu>
3938 <b pos="2"/>
3939 <lu>
3940 <var n="adjectiu2"/>
3941 <clip pos="4" side="tl" part="lem"/>
3942 <clip pos="4" side="tl" part="a_adj"/>
3943 <clip pos="5" side="tl" part="gen" link-to="3"/>
3944 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3945 </lu>
3946 <b pos="3"/>
3947 <lu>
3948 <clip pos="2" side="tl" part="whole"/>
3949 </lu>
3950 <b pos="4"/>
3951 <lu>
3952 <var n="adjectiu1"/>
3953 <clip pos="3" side="tl" part="lem"/>
3954 <clip pos="3" side="tl" part="a_adj"/>
3955 <clip pos="5" side="tl" part="gen" link-to="3"/>
3956 <clip pos="5" side="tl" part="nbr" link-to="4"/>
3957 </lu>
3958 </chunk>
3959 </out>
3960 <let>
3961 <var n="caseFirstWord"/>
3962 <lit v="aa"/>
3963 </let>
3964 </action>
3965 </rule>
3968 <rule comment="REGLA: NUM ADV ADJ ADJ NOM (BCN two currently valid legislative delegations)">
3969 <pattern>
3970 <pattern-item n="num"/>
3971 <pattern-item n="adv_preadv"/>
3972 <pattern-item n="adj"/>
3973 <pattern-item n="adj"/>
3974 <pattern-item n="nom"/>
3975 </pattern>
3976 <action>
3977 <call-macro n="genere_nombre">
3978 <with-param pos="5"/>
3979 </call-macro>
3980 <call-macro n="firstWord">
3981 <with-param pos="1"/>
3982 </call-macro>
3983 <call-macro n="comparatiu_adj1">
3984 <with-param pos="3"/>
3985 </call-macro>
3986 <call-macro n="comparatiu_adj2">
3987 <with-param pos="4"/>
3988 </call-macro>
3989 <out>
3990 <chunk name="det_adj_adj_nom" case="caseFirstWord">
3991 <tags>
3992 <tag><lit-tag v="SN.DET"/></tag>
3993 <tag><clip pos="5" side="tl" part="gen"/></tag>
3994 <tag><clip pos="5" side="tl" part="nbr"/></tag>
3995 </tags>
3996 <lu>
3997 <clip pos="1" side="tl" part="lem"/>
3998 <clip pos="1" side="tl" part="a_det"/>
3999 <clip pos="5" side="tl" part="gen" link-to="3"/>
4000 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4001 </lu>
4002 <b pos="1"/>
4003 <lu>
4004 <clip pos="5" side="tl" part="lemh"/>
4005 <clip pos="5" side="tl" part="a_nom"/>
4006 <clip pos="5" side="tl" part="gen" link-to="3"/>
4007 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4008 <clip pos="5" side="tl" part="lemq"/>
4009 </lu>
4010 <b pos="2"/>
4011 <lu>
4012 <var n="adjectiu2"/>
4013 <clip pos="4" side="tl" part="lem"/>
4014 <clip pos="4" side="tl" part="a_adj"/>
4015 <clip pos="5" side="tl" part="gen" link-to="3"/>
4016 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4017 </lu>
4018 <b pos="3"/>
4019 <lu>
4020 <clip pos="2" side="tl" part="whole"/>
4021 </lu>
4022 <b pos="4"/>
4023 <lu>
4024 <var n="adjectiu1"/>
4025 <clip pos="3" side="tl" part="lem"/>
4026 <clip pos="3" side="tl" part="a_adj"/>
4027 <clip pos="5" side="tl" part="gen" link-to="3"/>
4028 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4029 </lu>
4030 </chunk>
4031 </out>
4032 <let>
4033 <var n="caseFirstWord"/>
4034 <lit v="aa"/>
4035 </let>
4036 </action>
4037 </rule>
4039 <rule comment="REGLA: NUM ADJ ADJ NOM">
4040 <pattern>
4041 <pattern-item n="num"/>
4042 <pattern-item n="adj"/>
4043 <pattern-item n="adj"/>
4044 <pattern-item n="nom"/>
4045 </pattern>
4046 <action>
4047 <call-macro n="genere_nombre">
4048 <with-param pos="4"/>
4049 </call-macro>
4050 <call-macro n="million">
4051 <with-param pos="1"/>
4052 </call-macro>
4053 <call-macro n="flexio_numerals">
4054 <with-param pos="1"/>
4055 <with-param pos="4"/>
4056 </call-macro>
4057 <call-macro n="firstWord">
4058 <with-param pos="1"/>
4059 </call-macro>
4060 <call-macro n="comparatiu_adj1">
4061 <with-param pos="2"/>
4062 </call-macro>
4063 <call-macro n="comparatiu_adj2">
4064 <with-param pos="3"/>
4065 </call-macro>
4066 <out>
4067 <chunk name="num_adj_adj_nom" case="caseFirstWord">
4068 <tags>
4069 <tag><lit-tag v="SN.NUM"/></tag>
4070 <tag><clip pos="4" side="tl" part="gen"/></tag>
4071 <tag><clip pos="4" side="tl" part="nbr"/></tag>
4072 </tags>
4073 <lu>
4074 <clip pos="1" side="tl" part="lem"/>
4075 <clip pos="1" side="tl" part="a_num"/>
4076 <clip pos="1" side="tl" part="gen"/>
4077 <clip pos="1" side="tl" part="nbr"/>
4078 </lu>
4079 <b pos="1"/>
4080 <lu>
4081 <clip pos="4" side="tl" part="lemh"/>
4082 <clip pos="4" side="tl" part="a_nom"/>
4083 <clip pos="4" side="tl" part="gen" link-to="3"/>
4084 <clip pos="4" side="tl" part="nbr" link-to="4"/>
4085 <clip pos="4" side="tl" part="lemq"/>
4086 </lu>
4087 <b pos="2"/>
4088 <lu>
4089 <var n="adjectiu2"/>
4090 <clip pos="3" side="tl" part="lemh"/>
4091 <clip pos="3" side="tl" part="a_adj"/>
4092 <clip pos="4" side="tl" part="gen" link-to="3"/>
4093 <clip pos="4" side="tl" part="nbr" link-to="4"/>
4094 </lu>
4095 <b pos="3"/>
4096 <lu>
4097 <var n="adjectiu1"/>
4098 <clip pos="2" side="tl" part="lemh"/>
4099 <clip pos="2" side="tl" part="a_adj"/>
4100 <clip pos="4" side="tl" part="gen" link-to="3"/>
4101 <clip pos="4" side="tl" part="nbr" link-to="4"/>
4102 </lu>
4103 </chunk>
4104 </out>
4105 <let>
4106 <var n="caseFirstWord"/>
4107 <lit v="aa"/>
4108 </let>
4109 </action>
4110 </rule>
4113 <rule comment="REGLA: DET NUM ADJ ADJ NOM (BCN)">
4114 <pattern>
4115 <pattern-item n="det"/>
4116 <pattern-item n="num"/>
4117 <pattern-item n="adj"/>
4118 <pattern-item n="adj"/>
4119 <pattern-item n="nom"/>
4120 </pattern>
4121 <action>
4122 <call-macro n="genere_nombre">
4123 <with-param pos="5"/>
4124 </call-macro>
4125 <call-macro n="million">
4126 <with-param pos="1"/>
4127 </call-macro>
4128 <call-macro n="flexio_numerals">
4129 <with-param pos="1"/>
4130 <with-param pos="5"/>
4131 </call-macro>
4132 <call-macro n="firstWord">
4133 <with-param pos="1"/>
4134 </call-macro>
4135 <call-macro n="comparatiu_adj1">
4136 <with-param pos="3"/>
4137 </call-macro>
4138 <call-macro n="comparatiu_adj2">
4139 <with-param pos="4"/>
4140 </call-macro>
4141 <out>
4142 <chunk name="det_num_adj_adj_nom" case="caseFirstWord">
4143 <tags>
4144 <tag><lit-tag v="SN.NUM"/></tag>
4145 <tag><clip pos="5" side="tl" part="gen"/></tag>
4146 <tag><clip pos="5" side="tl" part="nbr"/></tag>
4147 </tags>
4148 <lu>
4149 <clip pos="1" side="tl" part="lem"/>
4150 <clip pos="1" side="tl" part="a_det"/>
4151 <clip pos="5" side="tl" part="gen" link-to="3"/>
4152 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4153 </lu>
4154 <b pos="1"/>
4155 <lu>
4156 <clip pos="2" side="tl" part="lem"/>
4157 <clip pos="2" side="tl" part="a_num"/>
4158 <clip pos="2" side="tl" part="gen"/>
4159 <clip pos="2" side="tl" part="nbr"/>
4160 </lu>
4161 <b pos="2"/>
4162 <lu>
4163 <clip pos="5" side="tl" part="lemh"/>
4164 <clip pos="5" side="tl" part="a_nom"/>
4165 <clip pos="5" side="tl" part="gen" link-to="3"/>
4166 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4167 <clip pos="5" side="tl" part="lemq"/>
4168 </lu>
4169 <b pos="3"/>
4170 <lu>
4171 <var n="adjectiu2"/>
4172 <clip pos="4" side="tl" part="lemh"/>
4173 <clip pos="4" side="tl" part="a_adj"/>
4174 <clip pos="5" side="tl" part="gen" link-to="3"/>
4175 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4176 </lu>
4177 <b pos="4"/>
4178 <lu>
4179 <var n="adjectiu1"/>
4180 <clip pos="3" side="tl" part="lemh"/>
4181 <clip pos="3" side="tl" part="a_adj"/>
4182 <clip pos="5" side="tl" part="gen" link-to="3"/>
4183 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4184 </lu>
4185 </chunk>
4186 </out>
4187 <let>
4188 <var n="caseFirstWord"/>
4189 <lit v="aa"/>
4190 </let>
4191 </action>
4192 </rule>
4194 <rule comment="REGLA: ADJ ADJ NOM">
4195 <pattern>
4196 <pattern-item n="adj"/>
4197 <pattern-item n="adj"/>
4198 <pattern-item n="nom"/>
4199 </pattern>
4200 <action>
4201 <call-macro n="genere_nombre">
4202 <with-param pos="3"/>
4203 </call-macro>
4204 <call-macro n="firstWord">
4205 <with-param pos="1"/>
4206 </call-macro>
4207 <call-macro n="comparatiu_adj1">
4208 <with-param pos="1"/>
4209 </call-macro>
4210 <call-macro n="comparatiu_adj2">
4211 <with-param pos="2"/>
4212 </call-macro>
4213 <out>
4214 <chunk name="adj_adj_nom" case="caseFirstWord">
4215 <tags>
4216 <tag><lit-tag v="SN.UNDET"/></tag>
4217 <tag><clip pos="3" side="tl" part="gen"/></tag>
4218 <tag><clip pos="3" side="tl" part="nbr"/></tag>
4219 </tags>
4220 <lu>
4221 <clip pos="3" side="tl" part="lemh"/>
4222 <clip pos="3" side="tl" part="a_nom"/>
4223 <clip pos="3" side="tl" part="gen" link-to="3"/>
4224 <clip pos="3" side="tl" part="nbr" link-to="4"/>
4225 <clip pos="3" side="tl" part="lemq"/>
4226 </lu>
4227 <b pos="1"/>
4228 <lu>
4229 <var n="adjectiu2"/>
4230 <clip pos="2" side="tl" part="lemh"/>
4231 <clip pos="2" side="tl" part="a_adj"/>
4232 <clip pos="3" side="tl" part="gen" link-to="3"/>
4233 <clip pos="3" side="tl" part="nbr" link-to="4"/>
4234 <clip pos="2" side="tl" part="lemq"/>
4235 </lu>
4236 <b pos="2"/>
4237 <lu>
4238 <var n="adjectiu1"/>
4239 <clip pos="1" side="tl" part="lemh"/>
4240 <clip pos="1" side="tl" part="a_adj"/>
4241 <clip pos="3" side="tl" part="gen" link-to="3"/>
4242 <clip pos="3" side="tl" part="nbr" link-to="4"/>
4243 <clip pos="1" side="tl" part="lemq"/>
4244 </lu>
4245 </chunk>
4246 </out>
4247 <let>
4248 <var n="caseFirstWord"/>
4249 <lit v="aa"/>
4250 </let>
4251 </action>
4252 </rule>
4255 <rule comment="REGLA: DET NUM PREADV ADJ ADJ NOM (BCN)">
4256 <pattern>
4257 <pattern-item n="det"/>
4258 <pattern-item n="num"/>
4259 <pattern-item n="adv_preadv"/>
4260 <pattern-item n="adj"/>
4261 <pattern-item n="adj"/>
4262 <pattern-item n="nom"/>
4263 </pattern>
4264 <action>
4265 <call-macro n="genere_nombre">
4266 <with-param pos="6"/>
4267 </call-macro>
4268 <call-macro n="million">
4269 <with-param pos="2"/>
4270 </call-macro>
4271 <call-macro n="flexio_numerals">
4272 <with-param pos="2"/>
4273 <with-param pos="6"/>
4274 </call-macro>
4275 <call-macro n="firstWord">
4276 <with-param pos="1"/>
4277 </call-macro>
4278 <call-macro n="comparatiu_adj1">
4279 <with-param pos="4"/>
4280 </call-macro>
4281 <call-macro n="comparatiu_adj2">
4282 <with-param pos="5"/>
4283 </call-macro>
4284 <out>
4285 <chunk name="det_num_adv_adj_adj_nom" case="caseFirstWord">
4286 <tags>
4287 <tag><lit-tag v="SN.NUM"/></tag>
4288 <tag><clip pos="6" side="tl" part="gen"/></tag>
4289 <tag><clip pos="6" side="tl" part="nbr"/></tag>
4290 </tags>
4291 <lu>
4292 <clip pos="1" side="tl" part="lem"/>
4293 <clip pos="1" side="tl" part="a_det"/>
4294 <clip pos="6" side="tl" part="gen" link-to="3"/>
4295 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4296 </lu>
4297 <b pos="1"/>
4298 <lu>
4299 <clip pos="2" side="tl" part="lem"/>
4300 <clip pos="2" side="tl" part="a_num"/>
4301 <clip pos="2" side="tl" part="gen"/>
4302 <clip pos="2" side="tl" part="nbr"/>
4303 </lu>
4304 <b pos="2"/>
4305 <lu>
4306 <clip pos="6" side="tl" part="lemh"/>
4307 <clip pos="6" side="tl" part="a_nom"/>
4308 <clip pos="6" side="tl" part="gen" link-to="3"/>
4309 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4310 <clip pos="6" side="tl" part="lemq"/>
4311 </lu>
4312 <b pos="3"/>
4313 <lu>
4314 <var n="adjectiu2"/>
4315 <clip pos="5" side="tl" part="lemh"/>
4316 <clip pos="5" side="tl" part="a_adj"/>
4317 <clip pos="6" side="tl" part="gen" link-to="3"/>
4318 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4319 <clip pos="5" side="tl" part="lemq"/>
4320 </lu>
4321 <b pos="4"/>
4322 <lu>
4323 <clip pos="3" side="tl" part="whole"/>
4324 </lu>
4325 <b pos="5"/>
4326 <lu>
4327 <var n="adjectiu1"/>
4328 <clip pos="4" side="tl" part="lemh"/>
4329 <clip pos="4" side="tl" part="a_adj"/>
4330 <clip pos="6" side="tl" part="gen" link-to="3"/>
4331 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4332 <clip pos="4" side="tl" part="lemq"/>
4333 </lu>
4334 </chunk>
4335 </out>
4336 <let>
4337 <var n="caseFirstWord"/>
4338 <lit v="aa"/>
4339 </let>
4340 </action>
4341 </rule>
4344 <rule comment="REGLA: DET DETquant PREADV ADJ ADJ NOM (BCN)">
4345 <pattern>
4346 <pattern-item n="det"/>
4347 <pattern-item n="detquant"/>
4348 <pattern-item n="adv_preadv"/>
4349 <pattern-item n="adj"/>
4350 <pattern-item n="adj"/>
4351 <pattern-item n="nom"/>
4352 </pattern>
4353 <action>
4354 <call-macro n="genere_nombre">
4355 <with-param pos="6"/>
4356 </call-macro>
4357 <call-macro n="million">
4358 <with-param pos="2"/>
4359 </call-macro>
4360 <call-macro n="flexio_numerals">
4361 <with-param pos="2"/>
4362 <with-param pos="6"/>
4363 </call-macro>
4364 <call-macro n="firstWord">
4365 <with-param pos="1"/>
4366 </call-macro>
4367 <call-macro n="comparatiu_adj1">
4368 <with-param pos="4"/>
4369 </call-macro>
4370 <call-macro n="comparatiu_adj2">
4371 <with-param pos="5"/>
4372 </call-macro>
4373 <out>
4374 <chunk name="det_num_adv_adj_adj_nom" case="caseFirstWord">
4375 <tags>
4376 <tag><lit-tag v="SN.NUM"/></tag>
4377 <tag><clip pos="6" side="tl" part="gen"/></tag>
4378 <tag><clip pos="6" side="tl" part="nbr"/></tag>
4379 </tags>
4380 <lu>
4381 <clip pos="1" side="tl" part="lem"/>
4382 <clip pos="1" side="tl" part="a_det"/>
4383 <clip pos="6" side="tl" part="gen" link-to="3"/>
4384 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4385 </lu>
4386 <b pos="1"/>
4387 <lu>
4388 <clip pos="2" side="tl" part="lem"/>
4389 <clip pos="2" side="tl" part="a_num"/>
4390 <clip pos="2" side="tl" part="gen"/>
4391 <clip pos="2" side="tl" part="nbr"/>
4392 </lu>
4393 <b pos="2"/>
4394 <lu>
4395 <clip pos="6" side="tl" part="lemh"/>
4396 <clip pos="6" side="tl" part="a_nom"/>
4397 <clip pos="6" side="tl" part="gen" link-to="3"/>
4398 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4399 <clip pos="6" side="tl" part="lemq"/>
4400 </lu>
4401 <b pos="3"/>
4402 <lu>
4403 <var n="adjectiu2"/>
4404 <clip pos="5" side="tl" part="lemh"/>
4405 <clip pos="5" side="tl" part="a_adj"/>
4406 <clip pos="6" side="tl" part="gen" link-to="3"/>
4407 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4408 <clip pos="5" side="tl" part="lemq"/>
4409 </lu>
4410 <b pos="4"/>
4411 <lu>
4412 <clip pos="3" side="tl" part="whole"/>
4413 </lu>
4414 <b pos="5"/>
4415 <lu>
4416 <var n="adjectiu1"/>
4417 <clip pos="4" side="tl" part="lemh"/>
4418 <clip pos="4" side="tl" part="a_adj"/>
4419 <clip pos="6" side="tl" part="gen" link-to="3"/>
4420 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4421 <clip pos="4" side="tl" part="lem4"/>
4422 </lu>
4423 </chunk>
4424 </out>
4425 <let>
4426 <var n="caseFirstWord"/>
4427 <lit v="aa"/>
4428 </let>
4429 </action>
4430 </rule>
4432 <!-- FI SINTAGMES NOMINALS AMB DOS ADJS (ADJ ADJ)-->
4435 <!-- SINTAGMES NOMINALS AMB DOS ADJS COORDINATS-->
4437 <rule comment="REGLA: DET ADJ AND ADJ NOM (BCN)">
4438 <pattern>
4439 <pattern-item n="det"/>
4440 <pattern-item n="adj"/>
4441 <pattern-item n="cnjcoo"/>
4442 <pattern-item n="adj"/>
4444 <pattern-item n="nom"/>
4445 </pattern>
4446 <action>
4447 <call-macro n="genere_nombre">
4448 <with-param pos="5"/>
4449 </call-macro>
4450 <call-macro n="det_no">
4451 <with-param pos="1"/>
4452 <with-param pos="5"/>
4453 </call-macro>
4454 <call-macro n="firstWord">
4455 <with-param pos="1"/>
4456 </call-macro>
4457 <call-macro n="comparatiu_adj1">
4458 <with-param pos="2"/>
4459 </call-macro>
4460 <call-macro n="comparatiu_adj2">
4461 <with-param pos="4"/>
4462 </call-macro>
4464 <out>
4465 <chunk name="det_adj_conj_adj_nom" case="caseFirstWord">
4466 <tags>
4467 <tag><lit-tag v="SN.DET"/></tag>
4468 <tag><clip pos="5" side="tl" part="gen"/></tag>
4469 <tag><clip pos="5" side="tl" part="nbr"/></tag>
4470 </tags>
4471 <lu>
4472 <clip pos="1" side="tl" part="lem"/>
4473 <clip pos="1" side="tl" part="a_det"/>
4474 <clip pos="5" side="tl" part="gen" link-to="3"/>
4475 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4476 </lu>
4477 <b pos="1"/>
4478 <lu>
4479 <clip pos="5" side="tl" part="lemh"/>
4480 <clip pos="5" side="tl" part="a_nom"/>
4481 <clip pos="5" side="tl" part="gen" link-to="3"/>
4482 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4483 <clip pos="5" side="tl" part="lemq"/>
4484 </lu>
4485 <b pos="2"/>
4486 <lu>
4487 <var n="adjectiu1"/>
4488 <clip pos="2" side="tl" part="lemh"/> <!-- BCN cua PPs asj -->
4489 <clip pos="2" side="tl" part="a_adj"/>
4490 <clip pos="5" side="tl" part="gen" link-to="3"/>
4491 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4492 <clip pos="2" side="tl" part="lemq"/> <!-- per a les possibles cues dels PPs -->
4493 </lu>
4494 <b pos="3"/>
4495 <lu>
4496 <clip pos="3" side="tl" part="whole"/>
4497 </lu>
4498 <b pos="4"/>
4499 <lu>
4500 <var n="adjectiu2"/>
4501 <clip pos="4" side="tl" part="lemh"/> <!-- BCN cua PPs asj-->
4502 <clip pos="4" side="tl" part="a_adj"/>
4503 <clip pos="5" side="tl" part="gen" link-to="3"/>
4504 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4505 <clip pos="4" side="tl" part="lemq"/> <!-- per a les possibles cues dels PPs -->
4506 </lu>
4507 </chunk>
4508 </out>
4509 <let>
4510 <var n="caseFirstWord"/>
4511 <lit v="aa"/>
4512 </let>
4513 </action>
4514 </rule>
4517 <rule comment="REGLA: DET ADJ AND ADV ADJ NOM (BCN)">
4518 <pattern>
4519 <pattern-item n="det"/>
4520 <pattern-item n="adj"/>
4521 <pattern-item n="cnjcoo"/>
4522 <pattern-item n="adv_preadv"/>
4523 <pattern-item n="adj"/>
4524 <pattern-item n="nom"/>
4525 </pattern>
4526 <action>
4527 <call-macro n="genere_nombre">
4528 <with-param pos="6"/>
4529 </call-macro>
4530 <call-macro n="det_no">
4531 <with-param pos="1"/>
4532 <with-param pos="6"/>
4533 </call-macro>
4534 <call-macro n="firstWord">
4535 <with-param pos="1"/>
4536 </call-macro>
4537 <call-macro n="comparatiu_adj1">
4538 <with-param pos="2"/>
4539 </call-macro>
4540 <call-macro n="comparatiu_adj2">
4541 <with-param pos="5"/>
4542 </call-macro>
4544 <out>
4545 <chunk name="det_adj_conj_adj_nom" case="caseFirstWord">
4546 <tags>
4547 <tag><lit-tag v="SN.DET"/></tag>
4548 <tag><clip pos="6" side="tl" part="gen"/></tag>
4549 <tag><clip pos="6" side="tl" part="nbr"/></tag>
4550 </tags>
4551 <lu>
4552 <clip pos="1" side="tl" part="lem"/>
4553 <clip pos="1" side="tl" part="a_det"/>
4554 <clip pos="6" side="tl" part="gen" link-to="3"/>
4555 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4556 </lu>
4557 <b pos="1"/>
4558 <lu>
4559 <clip pos="6" side="tl" part="lemh"/>
4560 <clip pos="6" side="tl" part="a_nom"/>
4561 <clip pos="6" side="tl" part="gen" link-to="3"/>
4562 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4563 <clip pos="6" side="tl" part="lemq"/>
4564 </lu>
4565 <b pos="2"/>
4566 <lu>
4567 <var n="adjectiu1"/>
4568 <clip pos="2" side="tl" part="lemh"/> <!-- BCN cua PPs asj -->
4569 <clip pos="2" side="tl" part="a_adj"/>
4570 <clip pos="6" side="tl" part="gen" link-to="3"/>
4571 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4572 <clip pos="2" side="tl" part="lemq"/> <!-- per a les possibles cues dels PPs -->
4573 </lu>
4574 <b pos="3"/>
4575 <lu>
4576 <clip pos="3" side="tl" part="whole"/>
4577 </lu>
4578 <b pos="4"/>
4579 <lu>
4580 <clip pos="4" side="tl" part="whole"/>
4581 </lu>
4582 <b pos="5"/>
4583 <lu>
4584 <var n="adjectiu2"/>
4585 <clip pos="5" side="tl" part="lemh"/> <!-- BCN cua PPs asj-->
4586 <clip pos="5" side="tl" part="a_adj"/>
4587 <clip pos="6" side="tl" part="gen" link-to="3"/>
4588 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4589 <clip pos="5" side="tl" part="lemq"/> <!-- per a les possibles cues dels PPs -->
4590 </lu>
4591 </chunk>
4592 </out>
4593 <let>
4594 <var n="caseFirstWord"/>
4595 <lit v="aa"/>
4596 </let>
4597 </action>
4598 </rule>
4600 <rule comment="REGLA: DET ADV ADJ AND ADJ NOM (BCN: the most popular and largest city)">
4601 <pattern>
4602 <pattern-item n="det"/>
4603 <pattern-item n="adv_preadv"/>
4604 <pattern-item n="adj"/>
4605 <pattern-item n="cnjcoo"/>
4606 <pattern-item n="adj"/>
4607 <pattern-item n="nom"/>
4608 </pattern>
4609 <action>
4610 <call-macro n="genere_nombre">
4611 <with-param pos="6"/>
4612 </call-macro>
4613 <call-macro n="det_no">
4614 <with-param pos="1"/>
4615 <with-param pos="6"/>
4616 </call-macro>
4617 <call-macro n="firstWord">
4618 <with-param pos="1"/>
4619 </call-macro>
4620 <call-macro n="comparatiu_adj1">
4621 <with-param pos="3"/>
4622 </call-macro>
4623 <call-macro n="comparatiu_adj2">
4624 <with-param pos="5"/>
4625 </call-macro>
4627 <out>
4628 <chunk name="det_adv_adj_conj_adj_nom" case="caseFirstWord">
4629 <tags>
4630 <tag><lit-tag v="SN.DET"/></tag>
4631 <tag><clip pos="6" side="tl" part="gen"/></tag>
4632 <tag><clip pos="6" side="tl" part="nbr"/></tag>
4633 </tags>
4634 <lu>
4635 <clip pos="1" side="tl" part="lem"/>
4636 <clip pos="1" side="tl" part="a_det"/>
4637 <clip pos="6" side="tl" part="gen" link-to="3"/>
4638 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4639 </lu>
4640 <b pos="1"/>
4641 <lu>
4642 <clip pos="6" side="tl" part="lemh"/>
4643 <clip pos="6" side="tl" part="a_nom"/>
4644 <clip pos="6" side="tl" part="gen" link-to="3"/>
4645 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4646 <clip pos="6" side="tl" part="lemq"/>
4647 </lu>
4648 <b pos="2"/>
4649 <lu>
4650 <clip pos="2" side="tl" part="whole"/>
4651 </lu>
4652 <b pos="3"/>
4653 <lu>
4654 <var n="adjectiu1"/>
4655 <clip pos="3" side="tl" part="lemh"/> <!-- BCN cua PPs asj -->
4656 <clip pos="3" side="tl" part="a_adj"/>
4657 <clip pos="6" side="tl" part="gen" link-to="3"/>
4658 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4659 <clip pos="3" side="tl" part="lemq"/> <!-- per a les possibles cues dels PPs -->
4660 </lu>
4661 <b pos="4"/>
4662 <lu>
4663 <clip pos="4" side="tl" part="whole"/>
4664 </lu>
4665 <b pos="5"/>
4666 <lu>
4667 <var n="adjectiu2"/>
4668 <clip pos="5" side="tl" part="lemh"/> <!-- BCN cua PPs asj-->
4669 <clip pos="5" side="tl" part="a_adj"/>
4670 <clip pos="6" side="tl" part="gen" link-to="3"/>
4671 <clip pos="6" side="tl" part="nbr" link-to="4"/>
4672 <clip pos="5" side="tl" part="lemq"/> <!-- per a les possibles cues dels PPs -->
4673 </lu>
4674 </chunk>
4675 </out>
4676 <let>
4677 <var n="caseFirstWord"/>
4678 <lit v="aa"/>
4679 </let>
4680 </action>
4681 </rule>
4683 <rule comment="REGLA: ADJ AND ADJ NOM (BCN)">
4684 <pattern>
4685 <pattern-item n="adj"/>
4686 <pattern-item n="cnjcoo"/>
4687 <pattern-item n="adj"/>
4688 <pattern-item n="nom"/>
4689 </pattern>
4690 <action>
4691 <call-macro n="genere_nombre">
4692 <with-param pos="4"/>
4693 </call-macro>
4694 <call-macro n="firstWord">
4695 <with-param pos="1"/>
4696 </call-macro>
4697 <call-macro n="comparatiu_adj1">
4698 <with-param pos="1"/>
4699 </call-macro>
4700 <call-macro n="comparatiu_adj2">
4701 <with-param pos="3"/>
4702 </call-macro>
4704 <out>
4705 <chunk name="adj_conj_adj_nom" case="caseFirstWord">
4706 <tags>
4707 <tag><lit-tag v="SN.DET"/></tag>
4708 <tag><clip pos="4" side="tl" part="gen"/></tag>
4709 <tag><clip pos="4" side="tl" part="nbr"/></tag>
4710 </tags>
4711 <lu>
4712 <clip pos="4" side="tl" part="lemh"/>
4713 <clip pos="4" side="tl" part="a_nom"/>
4714 <clip pos="4" side="tl" part="gen" link-to="3"/>
4715 <clip pos="4" side="tl" part="nbr" link-to="4"/>
4716 <clip pos="4" side="tl" part="lemq"/>
4717 </lu>
4718 <b pos="1"/>
4719 <lu>
4720 <var n="adjectiu1"/>
4721 <clip pos="1" side="tl" part="lemh"/> <!-- BCN cua PPs asj -->
4722 <clip pos="1" side="tl" part="a_adj"/>
4723 <clip pos="4" side="tl" part="gen" link-to="3"/>
4724 <clip pos="4" side="tl" part="nbr" link-to="4"/>
4725 <clip pos="1" side="tl" part="lemq"/> <!-- per a les possibles cues dels PPs -->
4726 </lu>
4727 <b pos="2"/>
4728 <lu>
4729 <clip pos="2" side="tl" part="whole"/>
4730 </lu>
4731 <b pos="3"/>
4732 <lu>
4733 <var n="adjectiu2"/>
4734 <clip pos="3" side="tl" part="lemh"/> <!-- BCN cua PPs asj -->
4735 <clip pos="3" side="tl" part="a_adj"/>
4736 <clip pos="4" side="tl" part="gen" link-to="3"/>
4737 <clip pos="4" side="tl" part="nbr" link-to="4"/>
4738 <clip pos="3" side="tl" part="lemq"/> <!-- per a les possibles cues dels PPs -->
4739 </lu>
4740 </chunk>
4741 </out>
4742 <let>
4743 <var n="caseFirstWord"/>
4744 <lit v="aa"/>
4745 </let>
4746 </action>
4747 </rule>
4749 <rule comment="REGLA: ADJ AND ADJ NOM">
4750 <pattern>
4751 <pattern-item n="adj"/>
4752 <pattern-item n="cnjcoo"/>
4753 <pattern-item n="adv"/>
4754 <pattern-item n="adj"/>
4755 <pattern-item n="nom"/>
4756 </pattern>
4757 <action>
4758 <call-macro n="genere_nombre">
4759 <with-param pos="5"/>
4760 </call-macro>
4761 <call-macro n="firstWord">
4762 <with-param pos="1"/>
4763 </call-macro>
4764 <call-macro n="comparatiu_adj1">
4765 <with-param pos="1"/>
4766 </call-macro>
4767 <call-macro n="comparatiu_adj2">
4768 <with-param pos="4"/>
4769 </call-macro>
4771 <out>
4772 <chunk name="adj_conj_adj_adv_nom" case="caseFirstWord">
4773 <tags>
4774 <tag><lit-tag v="SN.DET"/></tag>
4775 <tag><clip pos="5" side="tl" part="gen"/></tag>
4776 <tag><clip pos="5" side="tl" part="nbr"/></tag>
4777 </tags>
4778 <lu>
4779 <clip pos="5" side="tl" part="lemh"/>
4780 <clip pos="5" side="tl" part="a_nom"/>
4781 <clip pos="5" side="tl" part="gen" link-to="3"/>
4782 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4783 <clip pos="5" side="tl" part="lemq"/>
4784 </lu>
4785 <b pos="1"/>
4786 <lu>
4787 <var n="adjectiu1"/>
4788 <clip pos="1" side="tl" part="lemh"/>
4789 <clip pos="1" side="tl" part="a_adj"/>
4790 <clip pos="5" side="tl" part="gen" link-to="3"/>
4791 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4792 <clip pos="1" side="tl" part="lemq"/>
4793 </lu>
4794 <b pos="2"/>
4795 <lu>
4796 <clip pos="2" side="tl" part="whole"/>
4797 </lu>
4798 <b pos="3"/>
4799 <lu>
4800 <var n="adjectiu2"/>
4801 <clip pos="4" side="tl" part="lemh"/>
4802 <clip pos="4" side="tl" part="a_adj"/>
4803 <clip pos="5" side="tl" part="gen" link-to="3"/>
4804 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4805 <clip pos="4" side="tl" part="lemq"/>
4806 </lu>
4807 <b pos="4"/>
4808 <lu>
4809 <clip pos="3" side="tl" part="whole"/>
4810 </lu>
4811 </chunk>
4812 </out>
4813 <let>
4814 <var n="caseFirstWord"/>
4815 <lit v="aa"/>
4816 </let>
4817 </action>
4818 </rule>
4820 <!-- FI SINTAGMES NOMINALS AMB DOS ADJS COORDINATS-->
4823 <!-- SINTAGMES NOMINALS AMB DOS ADJS AMB COMA-->
4825 <rule comment="REGLA: DET ADJ, ADJ NOM (Those wild, wonderful places)">
4826 <pattern>
4827 <pattern-item n="det"/>
4828 <pattern-item n="adj"/>
4829 <pattern-item n="coma"/>
4830 <pattern-item n="adj"/>
4831 <pattern-item n="nom"/>
4832 </pattern>
4833 <action>
4834 <call-macro n="genere_nombre">
4835 <with-param pos="5"/>
4836 </call-macro>
4837 <call-macro n="det_no">
4838 <with-param pos="1"/>
4839 <with-param pos="5"/>
4840 </call-macro>
4841 <call-macro n="firstWord">
4842 <with-param pos="1"/>
4843 </call-macro>
4844 <call-macro n="comparatiu_adj1">
4845 <with-param pos="2"/>
4846 </call-macro>
4847 <call-macro n="comparatiu_adj2">
4848 <with-param pos="4"/>
4849 </call-macro>
4850 <out>
4851 <chunk name="det_adj_cm_adj_nom" case="caseFirstWord">
4852 <tags>
4853 <tag><lit-tag v="SN.DET"/></tag>
4854 <tag><clip pos="5" side="tl" part="gen"/></tag>
4855 <tag><clip pos="5" side="tl" part="nbr"/></tag>
4856 </tags>
4857 <lu>
4858 <clip pos="1" side="tl" part="lem"/>
4859 <clip pos="1" side="tl" part="a_det"/>
4860 <clip pos="5" side="tl" part="gen" link-to="3"/>
4861 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4862 </lu>
4863 <b pos="1"/>
4864 <lu>
4865 <clip pos="5" side="tl" part="lemh"/>
4866 <clip pos="5" side="tl" part="a_nom"/>
4867 <clip pos="5" side="tl" part="gen" link-to="3"/>
4868 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4869 <clip pos="5" side="tl" part="lemq"/>
4870 </lu>
4871 <b pos="3"/>
4872 <lu>
4873 <var n="adjectiu1"/>
4874 <clip pos="2" side="tl" part="lemh"/> <!-- BCN cua PPs adj-->
4875 <clip pos="2" side="tl" part="a_adj"/>
4876 <clip pos="5" side="tl" part="gen" link-to="3"/>
4877 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4878 <clip pos="2" side="tl" part="lemq"/> <!-- per a les possibles cues dels PPs -->
4879 </lu>
4880 <lu>
4881 <clip pos="3" side="tl" part="whole"/>
4882 </lu>
4883 <b pos="4"/>
4884 <lu>
4885 <var n="adjectiu2"/>
4886 <clip pos="4" side="tl" part="lemh"/>
4887 <clip pos="4" side="tl" part="a_adj"/>
4888 <clip pos="5" side="tl" part="gen" link-to="3"/>
4889 <clip pos="5" side="tl" part="nbr" link-to="4"/>
4890 <clip pos="4" side="tl" part="lemq"/>
4891 </lu>
4892 </chunk>
4893 </out>
4894 <let>
4895 <var n="caseFirstWord"/>
4896 <lit v="aa"/>
4897 </let>
4898 </action>
4899 </rule>
4902 <rule comment="REGLA: ADJ, ADJ NOM (wild, wonderful places)">
4903 <pattern>
4904 <pattern-item n="adj"/>
4905 <pattern-item n="coma"/>
4906 <pattern-item n="adj"/>
4907 <pattern-item n="nom"/>
4908 </pattern>
4909 <action>
4910 <call-macro n="genere_nombre">
4911 <with-param pos="4"/>
4912 </call-macro>
4913 <call-macro n="firstWord">
4914 <with-param pos="1"/>
4915 </call-macro>
4916 <call-macro n="comparatiu_adj1">
4917 <with-param pos="1"/>
4918 </call-macro>
4919 <call-macro n="comparatiu_adj2">
4920 <with-param pos="3"/>
4921 </call-macro>
4922 <out>
4923 <chunk name="adj_cm_adj_nom" case="caseFirstWord">
4924 <tags>
4925 <tag><lit-tag v="SN.UNDET"/></tag>
4926 <tag><clip pos="4" side="tl" part="gen"/></tag>
4927 <tag><clip pos="4" side="tl" part="nbr"/></tag>
4928 </tags>
4929 <lu>
4930 <clip pos="4" side="tl" part="lemh"/>
4931 <clip pos="4" side="tl" part="a_nom"/>
4932 <clip pos="4" side="tl" part="gen" link-to="3"/>
4933 <clip pos="4" side="tl" part="nbr" link-to="4"/>
4934 <clip pos="4" side="tl" part="lemq"/>
4935 </lu>
4936 <b pos="2"/>
4937 <lu>
4938 <var n="adjectiu1"/>
4939 <clip pos="1" side="tl" part="lemh"/>
4940 <clip pos="1" side="tl" part="a_adj"/>
4941 <clip pos="4" side="tl" part="gen" link-to="3"/>
4942 <clip pos="4" side="tl" part="nbr" link-to="4"/>
4943 <clip pos="1" side="tl" part="lemq"/>
4944 </lu>
4945 <lu>
4946 <clip pos="2" side="tl" part="whole"/>
4947 </lu>
4948 <b pos="3"/>
4949 <lu>
4950 <var n="adjectiu2"/>
4951 <clip pos="3" side="tl" part="lemh"/>
4952 <clip pos="3" side="tl" part="a_adj"/>
4953 <clip pos="4" side="tl" part="gen" link-to="3"/>
4954 <clip pos="4" side="tl" part="nbr" link-to="4"/>
4955 <clip pos="3" side="tl" part="lemq"/>
4956 </lu>
4957 </chunk>
4958 </out>
4959 <let>
4960 <var n="caseFirstWord"/>
4961 <lit v="aa"/>
4962 </let>
4963 </action>
4964 </rule>
4966 <!-- FI SINTAGMES NOMINALS AMB DOS ADJS AMB COMA-->
4970 <!-- SINTAGMES NOMINALS AMB APOS-->
4972 <rule comment="REGLA: APOS ADJ APOS NOM">
4973 <pattern>
4974 <pattern-item n="apos"/>
4975 <pattern-item n="adj"/>
4976 <pattern-item n="apos"/>
4977 <pattern-item n="nom"/>
4978 </pattern>
4979 <action>
4980 <call-macro n="genere_nombre">
4981 <with-param pos="4"/>
4982 </call-macro>
4983 <call-macro n="firstWord">
4984 <with-param pos="2"/>
4985 </call-macro>
4986 <call-macro n="comparatiu_adj1">
4987 <with-param pos="2"/>
4988 </call-macro>
4989 <out>
4990 <chunk name="adj_nom" case="caseFirstWord">
4991 <tags>
4992 <tag><lit-tag v="SN.UNDET"/></tag>
4993 <tag><clip pos="4" side="tl" part="gen"/></tag>
4994 <tag><clip pos="4" side="tl" part="nbr"/></tag>
4995 </tags>
4996 <lu>
4997 <clip pos="4" side="tl" part="lemh"/>
4998 <clip pos="4" side="tl" part="a_nom"/>
4999 <clip pos="4" side="tl" part="gen" link-to="3"/>
5000 <clip pos="4" side="tl" part="nbr" link-to="4"/>
5001 <clip pos="4" side="tl" part="lemq"/>
5002 </lu>
5003 <b pos="3"/>
5004 <lu>
5005 <clip pos="1" side="tl" part="whole"/>
5006 </lu>
5007 <lu>
5008 <var n="adjectiu1"/>
5009 <clip pos="2" side="tl" part="lemh"/> <!--BCN no la cua dels PP adj-->
5010 <clip pos="2" side="tl" part="a_adj"/>
5011 <clip pos="4" side="tl" part="gen" link-to="3"/>
5012 <clip pos="4" side="tl" part="nbr" link-to="4"/>
5013 <clip pos="2" side="tl" part="lemq"/> <!-- per a les possibles cues dels PPs -->
5014 </lu>
5015 <lu>
5016 <clip pos="3" side="tl" part="whole"/>
5017 </lu>
5019 </chunk>
5020 </out>
5021 </action>
5022 </rule>
5024 <rule comment="REGLA: ADJ APOS NOM APOS">
5025 <pattern>
5026 <pattern-item n="adj"/>
5027 <pattern-item n="apos"/>
5028 <pattern-item n="nom"/>
5029 <pattern-item n="apos"/>
5031 </pattern>
5032 <action>
5033 <call-macro n="genere_nombre">
5034 <with-param pos="3"/>
5035 </call-macro>
5036 <call-macro n="firstWord">
5037 <with-param pos="1"/>
5038 </call-macro>
5039 <call-macro n="comparatiu_adj1">
5040 <with-param pos="1"/>
5041 </call-macro>
5042 <out>
5043 <chunk name="adj_nom" case="caseFirstWord">
5044 <tags>
5045 <tag><lit-tag v="SN.UNDET"/></tag>
5046 <tag><clip pos="3" side="tl" part="gen"/></tag>
5047 <tag><clip pos="3" side="tl" part="nbr"/></tag>
5048 </tags>
5049 <lu>
5050 <clip pos="2" side="tl" part="whole"/>
5051 </lu>
5052 <lu>
5053 <clip pos="3" side="tl" part="lemh"/>
5054 <clip pos="3" side="tl" part="a_nom"/>
5055 <clip pos="3" side="tl" part="gen" link-to="3"/>
5056 <clip pos="3" side="tl" part="nbr" link-to="4"/>
5057 <clip pos="3" side="tl" part="lemq"/> <!--BCN faltava-->
5058 </lu>
5059 <lu>
5060 <clip pos="4" side="tl" part="whole"/>
5061 </lu>
5062 <b pos="1"/>
5063 <lu>
5064 <var n="adjectiu1"/>
5065 <clip pos="1" side="tl" part="lemh"/><!-- BCN-->
5066 <clip pos="1" side="tl" part="a_adj"/>
5067 <clip pos="2" side="tl" part="gen" link-to="3"/>
5068 <clip pos="2" side="tl" part="nbr" link-to="4"/>
5069 <clip pos="1" side="tl" part="lemq"/><!-- BCN-->
5070 </lu>
5071 </chunk>
5072 </out>
5073 </action>
5074 </rule>
5077 <rule comment="REGLA: DET ADJ APOS 'NOM' APOS">
5078 <pattern>
5079 <pattern-item n="det"/>
5080 <pattern-item n="adj"/>
5081 <pattern-item n="apos"/>
5082 <pattern-item n="nom"/>
5083 <pattern-item n="apos"/>
5084 </pattern>
5085 <action>
5086 <call-macro n="genere_nombre">
5087 <with-param pos="3"/>
5088 </call-macro>
5089 <call-macro n="det_no">
5090 <with-param pos="1"/>
5091 <with-param pos="3"/>
5092 </call-macro>
5093 <call-macro n="firstWord">
5094 <with-param pos="1"/>
5095 </call-macro>
5096 <call-macro n="comparatiu_adj1">
5097 <with-param pos="2"/>
5098 </call-macro>
5099 <out>
5100 <chunk name="det_adj_nom" case="caseFirstWord">
5101 <tags>
5102 <tag><lit-tag v="SN.DET"/></tag>
5103 <tag><clip pos="4" side="tl" part="gen"/></tag>
5104 <tag><clip pos="4" side="tl" part="nbr"/></tag>
5105 </tags>
5106 <lu>
5107 <clip pos="1" side="tl" part="lem"/>
5108 <clip pos="1" side="tl" part="a_det"/>
5109 <clip pos="4" side="tl" part="gen" link-to="3"/>
5110 <clip pos="4" side="tl" part="nbr" link-to="4"/>
5111 </lu>
5112 <b pos="1"/>
5113 <lu>
5114 <clip pos="3" side="tl" part="whole"/>
5115 </lu>
5117 <lu>
5118 <clip pos="4" side="tl" part="lemh"/>
5119 <clip pos="4" side="tl" part="a_nom"/>
5120 <clip pos="4" side="tl" part="gen" link-to="3"/>
5121 <clip pos="4" side="tl" part="nbr" link-to="4"/>
5122 <clip pos="4" side="tl" part="lemq"/>
5123 </lu>
5124 <lu>
5125 <clip pos="5" side="tl" part="whole"/>
5126 </lu>
5128 <b pos="2"/>
5129 <lu>
5130 <var n="adjectiu1"/>
5131 <clip pos="2" side="tl" part="lemh"/>
5132 <clip pos="2" side="tl" part="a_adj"/>
5133 <clip pos="4" side="tl" part="gen" link-to="3"/>
5134 <clip pos="4" side="tl" part="nbr" link-to="4"/>
5135 <clip pos="2" side="tl" part="lemq"/>
5136 </lu>
5137 </chunk>
5138 </out>
5139 <let>
5140 <var n="caseFirstWord"/>
5141 <lit v="aa"/>
5142 </let>
5143 </action>
5144 </rule>
5146 <rule comment="REGLA: DET APOS 'ADJ' APOS NOM">
5147 <pattern>
5148 <pattern-item n="det"/>
5149 <pattern-item n="apos"/>
5150 <pattern-item n="adj"/>
5151 <pattern-item n="apos"/>
5152 <pattern-item n="nom"/>
5153 </pattern>
5154 <action>
5155 <call-macro n="genere_nombre">
5156 <with-param pos="5"/>
5157 </call-macro>
5158 <call-macro n="det_no">
5159 <with-param pos="1"/>
5160 <with-param pos="5"/>
5161 </call-macro>
5162 <call-macro n="firstWord">
5163 <with-param pos="1"/>
5164 </call-macro>
5165 <call-macro n="comparatiu_adj1">
5166 <with-param pos="3"/>
5167 </call-macro>
5168 <out>
5169 <chunk name="det_adj_nom" case="caseFirstWord">
5170 <tags>
5171 <tag><lit-tag v="SN.DET"/></tag>
5172 <tag><clip pos="5" side="tl" part="gen"/></tag>
5173 <tag><clip pos="5" side="tl" part="nbr"/></tag>
5174 </tags>
5175 <lu>
5176 <clip pos="1" side="tl" part="lem"/>
5177 <clip pos="1" side="tl" part="a_det"/>
5178 <clip pos="5" side="tl" part="gen" link-to="3"/>
5179 <clip pos="5" side="tl" part="nbr" link-to="4"/>
5180 </lu>
5181 <b pos="1"/>
5182 <lu>
5183 <clip pos="5" side="tl" part="lemh"/>
5184 <clip pos="5" side="tl" part="a_nom"/>
5185 <clip pos="5" side="tl" part="gen" link-to="3"/>
5186 <clip pos="5" side="tl" part="nbr" link-to="4"/>
5187 <clip pos="5" side="tl" part="lemq"/>
5188 </lu>
5189 <b pos="4"/>
5190 <lu>
5191 <clip pos="2" side="tl" part="whole"/>
5192 </lu>
5193 <lu>
5194 <var n="adjectiu1"/>
5195 <clip pos="3" side="tl" part="lemh"/>
5196 <clip pos="3" side="tl" part="a_adj"/>
5197 <clip pos="5" side="tl" part="gen" link-to="3"/>
5198 <clip pos="5" side="tl" part="nbr" link-to="4"/>
5199 <clip pos="3" side="tl" part="lemq"/>
5200 </lu>
5201 <lu>
5202 <clip pos="4" side="tl" part="whole"/>
5203 </lu>
5204 </chunk>
5205 </out>
5206 <let>
5207 <var n="caseFirstWord"/>
5208 <lit v="aa"/>
5209 </let>
5211 </action>
5212 </rule>
5214 <!-- FI SINTAGMES NOMINALS AMB APOS-->
5217 <!-- SINTAGMES NOMINALS AMB MES D'UN NOM-->
5220 <rule comment="REGLA: NOM1 NOM2 -> NOM2 de NOM1">
5221 <pattern>
5222 <pattern-item n="nom"/>
5223 <pattern-item n="nom"/>
5224 </pattern>
5225 <action>
5226 <call-macro n="genere_nombre">
5227 <with-param pos="2"/>
5228 </call-macro>
5229 <call-macro n="firstWord">
5230 <with-param pos="1"/>
5231 </call-macro>
5232 <choose>
5233 <when>
5234 <test>
5235 <not>
5236 <or>
5237 <equal>
5238 <clip pos="2" side="tl" part="a_nom"/>
5239 <lit-tag v="np.ant"/>
5240 </equal>
5241 <equal>
5242 <clip pos="2" side="tl" part="a_nom"/>
5243 <lit-tag v="np.cog"/>
5244 </equal>
5245 </or>
5246 </not>
5247 </test>
5248 <out>
5249 <chunk name="nom_nom" case="caseFirstWord">
5250 <tags>
5251 <tag><lit-tag v="SN.UNDET"/></tag>
5252 <tag><clip pos="2" side="tl" part="gen"/></tag>
5253 <tag><clip pos="2" side="tl" part="nbr"/></tag>
5254 </tags>
5255 <lu>
5256 <clip pos="2" side="tl" part="lemh"/>
5257 <clip pos="2" side="tl" part="a_nom"/>
5258 <clip pos="2" side="tl" part="gen" link-to="3"/>
5259 <clip pos="2" side="tl" part="nbr" link-to="4"/>
5260 <clip pos="2" side="tl" part="lemq"/>
5261 </lu>
5262 <b pos="1"/>
5263 <lu>
5264 <lit v="de"/>
5265 <lit-tag v="pr"/>
5266 </lu>
5267 <b/>
5268 <lu>
5269 <clip pos="1" side="tl" part="lemh"/>
5270 <clip pos="1" side="tl" part="a_nom"/>
5271 <clip pos="1" side="tl" part="gen"/>
5272 <clip pos="1" side="tl" part="nbr"/>
5273 <clip pos="1" side="tl" part="lemq"/>
5274 </lu>
5275 </chunk>
5276 </out>
5277 </when>
5278 <otherwise>
5279 <out>
5280 <chunk name="nom_nom" case="caseFirstWord">
5281 <tags>
5282 <tag><lit-tag v="SN.UNDET"/></tag>
5283 <tag><clip pos="1" side="tl" part="gen"/></tag>
5284 <tag><clip pos="1" side="tl" part="nbr"/></tag>
5285 </tags>
5286 <lu>
5287 <clip pos="1" side="tl" part="lemh"/>
5288 <clip pos="1" side="tl" part="a_nom"/>
5289 <clip pos="1" side="tl" part="gen" link-to="3"/>
5290 <clip pos="1" side="tl" part="nbr" link-to="4"/>
5291 <clip pos="1" side="tl" part="lemq"/>
5292 </lu>
5293 <b pos="1"/>
5294 <lu>
5295 <clip pos="2" side="tl" part="lemh"/>
5296 <clip pos="2" side="tl" part="a_nom"/>
5297 <clip pos="2" side="tl" part="gen"/>
5298 <clip pos="2" side="tl" part="nbr"/>
5299 <clip pos="2" side="tl" part="lemq"/>
5300 </lu>
5301 </chunk>
5302 </out>
5303 </otherwise>
5304 </choose>
5305 <let>
5306 <var n="caseFirstWord"/>
5307 <lit v="aa"/>
5308 </let>
5309 </action>
5310 </rule>
5312 <rule comment="REGLA: DET NOM1 NOM2 -> DET NOM2 de NOM1">
5313 <pattern>
5314 <pattern-item n="det"/>
5315 <pattern-item n="nom"/>
5316 <pattern-item n="nom"/>
5317 </pattern>
5318 <action>
5319 <call-macro n="genere_nombre">
5320 <with-param pos="3"/>
5321 </call-macro>
5322 <call-macro n="firstWord">
5323 <with-param pos="1"/>
5324 </call-macro>
5325 <choose>
5326 <when>
5327 <test>
5328 <not>
5329 <or>
5330 <equal>
5331 <clip pos="3" side="tl" part="a_nom"/>
5332 <lit-tag v="np.ant"/>
5333 </equal>
5334 <equal>
5335 <clip pos="3" side="tl" part="a_nom"/>
5336 <lit-tag v="np.cog"/>
5337 </equal>
5338 </or>
5339 </not>
5340 </test>
5341 <out>
5342 <chunk name="det_nom_nom" case="caseFirstWord">
5343 <tags>
5344 <tag><lit-tag v="SN.DET"/></tag>
5345 <tag><clip pos="3" side="tl" part="gen"/></tag>
5346 <tag><clip pos="3" side="tl" part="nbr"/></tag>
5347 </tags>
5348 <lu>
5349 <clip pos="1" side="tl" part="lem"/>
5350 <clip pos="1" side="tl" part="a_det"/>
5351 <clip pos="3" side="tl" part="gen" link-to="3"/>
5352 <clip pos="3" side="tl" part="nbr" link-to="4"/>
5353 </lu>
5354 <b pos="1"/>
5355 <lu>
5356 <clip pos="3" side="tl" part="lemh"/>
5357 <clip pos="3" side="tl" part="a_nom"/>
5358 <clip pos="3" side="tl" part="gen" link-to="3"/>
5359 <clip pos="3" side="tl" part="nbr" link-to="4"/>
5360 <clip pos="3" side="tl" part="lemq"/>
5361 </lu>
5362 <b pos="2"/>
5363 <lu>
5364 <lit v="de"/>
5365 <lit-tag v="pr"/>
5366 </lu>
5367 <b/>
5368 <lu>
5369 <clip pos="2" side="tl" part="lemh"/>
5370 <clip pos="2" side="tl" part="a_nom"/>
5371 <clip pos="2" side="tl" part="gen"/>
5372 <clip pos="2" side="tl" part="nbr"/>
5373 <clip pos="2" side="tl" part="lemq"/>
5374 </lu>
5375 </chunk>
5376 </out>
5377 </when>
5378 <otherwise><!--'his son James' no fa canvi d'ordre del nom -->
5379 <out>
5380 <chunk name="det_nom_nom" case="caseFirstWord">
5381 <tags>
5382 <tag><lit-tag v="SN.DET"/></tag>
5383 <tag><clip pos="2" side="tl" part="gen"/></tag>
5384 <tag><clip pos="2" side="tl" part="nbr"/></tag>
5385 </tags>
5386 <lu>
5387 <clip pos="1" side="tl" part="lem"/>
5388 <clip pos="1" side="tl" part="a_det"/>
5389 <clip pos="2" side="tl" part="gen" link-to="3"/>
5390 <clip pos="2" side="tl" part="nbr" link-to="4"/>
5391 </lu>
5392 <b pos="1"/>
5393 <lu>
5394 <clip pos="2" side="tl" part="lemh"/>
5395 <clip pos="2" side="tl" part="a_nom"/>
5396 <clip pos="2" side="tl" part="gen" link-to="3"/>
5397 <clip pos="2" side="tl" part="nbr" link-to="4"/>
5398 <clip pos="2" side="tl" part="lemq"/>
5399 </lu>
5400 <b pos="2"/>
5401 <lu>
5402 <clip pos="3" side="tl" part="lemh"/>
5403 <clip pos="3" side="tl" part="a_nom"/>
5404 <clip pos="3" side="tl" part="gen"/>
5405 <clip pos="3" side="tl" part="nbr"/>
5406 <clip pos="3" side="tl" part="lemq"/>
5407 </lu>
5408 </chunk>
5409 </out>
5410 </otherwise>
5411 </choose>
5412 <let>
5413 <var n="caseFirstWord"/>
5414 <lit v="aa"/>
5415 </let>
5416 </action>
5417 </rule>
5419 <rule comment="REGLA: NUM NOM1 NOM2 -> NUM NOM2 de NOM1 (Three street chairs)">
5420 <pattern>
5421 <pattern-item n="num"/>
5422 <pattern-item n="nom"/>
5423 <pattern-item n="nom"/>
5424 </pattern>
5425 <action>
5426 <call-macro n="genere_nombre">
5427 <with-param pos="3"/>
5428 </call-macro>
5429 <call-macro n="million">
5430 <with-param pos="1"/>
5431 </call-macro>
5432 <call-macro n="flexio_numerals">
5433 <with-param pos="1"/>
5434 <with-param pos="3"/>
5435 </call-macro>
5436 <call-macro n="firstWord">
5437 <with-param pos="1"/>
5438 </call-macro>
5439 <out>
5440 <chunk name="num_nom_nom" case="caseFirstWord">
5441 <tags>
5442 <tag><lit-tag v="SN.NUM"/></tag>
5443 <tag><clip pos="3" side="tl" part="gen"/></tag>
5444 <tag><clip pos="3" side="tl" part="nbr"/></tag>
5445 </tags>
5446 <lu>
5447 <clip pos="1" side="tl" part="lem"/>
5448 <clip pos="1" side="tl" part="a_num"/>
5449 <clip pos="1" side="tl" part="gen"/>
5450 <clip pos="1" side="tl" part="nbr"/>
5451 </lu>
5452 <b pos="1"/>
5453 <lu>
5454 <clip pos="3" side="tl" part="lemh"/>
5455 <clip pos="3" side="tl" part="a_nom"/>
5456 <clip pos="3" side="tl" part="gen" link-to="3"/>
5457 <clip pos="3" side="tl" part="nbr" link-to="4"/>
5458 <clip pos="3" side="tl" part="lemq"/>
5459 </lu>
5460 <b pos="2"/>
5461 <lu>
5462 <lit v="de"/>
5463 <lit-tag v="pr"/>
5464 </lu>
5465 <b/>
5466 <lu>
5467 <clip pos="2" side="tl" part="lemh"/>
5468 <clip pos="2" side="tl" part="a_nom"/>
5469 <clip pos="2" side="tl" part="gen"/>
5470 <clip pos="2" side="tl" part="nbr"/>
5471 <clip pos="2" side="tl" part="lemq"/>
5472 </lu>
5473 </chunk>
5474 </out>
5475 <let>
5476 <var n="caseFirstWord"/>
5477 <lit v="aa"/>
5478 </let>
5479 </action>
5480 </rule>
5482 <rule comment="REGLA: NUM-NOM1 NOM2 -> NOM2 de NUM NOM1(pl) (Three-month extension - extensió de tres mesos)">
5483 <pattern>
5484 <pattern-item n="num"/>
5485 <pattern-item n="guio"/>
5486 <pattern-item n="nom"/>
5487 <pattern-item n="nom"/>
5488 </pattern>
5489 <action>
5490 <call-macro n="genere_nombre">
5491 <with-param pos="4"/>
5492 </call-macro>
5493 <call-macro n="million">
5494 <with-param pos="1"/>
5495 </call-macro>
5496 <call-macro n="flexio_numerals">
5497 <with-param pos="1"/>
5498 <with-param pos="3"/>
5499 </call-macro>
5500 <call-macro n="firstWord">
5501 <with-param pos="1"/>
5502 </call-macro>
5503 <out>
5504 <chunk name="num_nom_nom" case="caseFirstWord">
5505 <tags>
5506 <tag><lit-tag v="SN.NUM"/></tag>
5507 <tag><clip pos="4" side="tl" part="gen"/></tag>
5508 <tag><clip pos="4" side="tl" part="nbr"/></tag>
5509 </tags>
5510 <lu>
5511 <clip pos="4" side="tl" part="lemh"/>
5512 <clip pos="4" side="tl" part="a_nom"/>
5513 <clip pos="4" side="tl" part="gen" link-to="3"/>
5514 <clip pos="4" side="tl" part="nbr" link-to="4"/>
5515 <clip pos="4" side="tl" part="lemq"/>
5516 </lu>
5517 <b pos="3"/>
5518 <lu>
5519 <lit v="de"/>
5520 <lit-tag v="pr"/>
5521 </lu>
5522 <b/>
5523 <lu>
5524 <clip pos="1" side="tl" part="lem"/>
5525 <clip pos="1" side="tl" part="a_num"/>
5526 <clip pos="1" side="tl" part="gen"/>
5527 <clip pos="1" side="tl" part="nbr"/>
5528 </lu>
5529 <b/>
5530 <lu>
5531 <clip pos="3" side="tl" part="lemh"/>
5532 <clip pos="3" side="tl" part="a_nom"/>
5533 <clip pos="3" side="tl" part="gen"/>
5534 <lit-tag v="pl"/><!--MG: atenció! i quan és 'one-month'? - arreglar -->
5535 <clip pos="3" side="tl" part="lemq"/>
5536 </lu>
5537 </chunk>
5538 </out>
5539 <let>
5540 <var n="caseFirstWord"/>
5541 <lit v="aa"/>
5542 </let>
5543 </action>
5544 </rule>
5547 <rule comment="REGLA: ADJ-NOM1 NOM2 -> NOM2 de NOM1 ADJ (BCN open-source software)">
5548 <pattern>
5549 <pattern-item n="adj"/>
5550 <pattern-item n="guio"/>
5551 <pattern-item n="nom"/>
5552 <pattern-item n="nom"/>
5553 </pattern>
5554 <action>
5555 <call-macro n="genere_nombre">
5556 <with-param pos="4"/>
5557 </call-macro>
5558 <call-macro n="comparatiu_adj1">
5559 <with-param pos="2"/>
5560 </call-macro>
5562 <call-macro n="firstWord">
5563 <with-param pos="1"/>
5564 </call-macro>
5565 <out>
5566 <chunk name="adj_nom_nom" case="caseFirstWord">
5567 <tags>
5568 <tag><lit-tag v="SN.UNDET"/></tag>
5569 <tag><clip pos="4" side="tl" part="gen"/></tag>
5570 <tag><clip pos="4" side="tl" part="nbr"/></tag>
5571 </tags>
5572 <lu>
5573 <clip pos="4" side="tl" part="lemh"/>
5574 <clip pos="4" side="tl" part="a_nom"/>
5575 <clip pos="4" side="tl" part="gen" link-to="3"/>
5576 <clip pos="4" side="tl" part="nbr" link-to="4"/>
5577 <clip pos="4" side="tl" part="lemq"/>
5578 </lu>
5579 <b pos="3"/>
5580 <lu>
5581 <lit v="de"/>
5582 <lit-tag v="pr"/>
5583 </lu>
5584 <b/>
5585 <lu>
5586 <clip pos="3" side="tl" part="lemh"/>
5587 <clip pos="3" side="tl" part="a_nom"/>
5588 <clip pos="3" side="tl" part="gen"/>
5589 <clip pos="3" side="tl" part="nbr"/>
5590 <clip pos="3" side="tl" part="lemq"/>
5591 </lu>
5592 <b/>
5593 <lu>
5594 <clip pos="1" side="tl" part="lem"/>
5595 <clip pos="1" side="tl" part="a_adj"/>
5596 <clip pos="3" side="tl" part="gen" />
5597 <clip pos="3" side="tl" part="nbr" />
5598 </lu>
5599 <b/>
5601 </chunk>
5602 </out>
5603 <let>
5604 <var n="caseFirstWord"/>
5605 <lit v="aa"/>
5606 </let>
5607 </action>
5608 </rule>
5611 <rule comment="REGLA: DET ADJ-NOM1 NOM2 -> DET NOM2 de NOM1 ADJ (BCN open-source software)">
5612 <pattern>
5613 <pattern-item n="det"/>
5614 <pattern-item n="adj"/>
5615 <pattern-item n="guio"/>
5616 <pattern-item n="nom"/>
5617 <pattern-item n="nom"/>
5618 </pattern>
5619 <action>
5620 <call-macro n="genere_nombre">
5621 <with-param pos="5"/>
5622 </call-macro>
5623 <call-macro n="det_no">
5624 <with-param pos="1"/>
5625 <with-param pos="4"/>
5626 </call-macro>
5627 <call-macro n="comparatiu_adj1">
5628 <with-param pos="2"/>
5629 </call-macro>
5631 <call-macro n="firstWord">
5632 <with-param pos="1"/>
5633 </call-macro>
5634 <out>
5635 <chunk name="det_adj_nom_nom" case="caseFirstWord">
5636 <tags>
5637 <tag><lit-tag v="SN.UNDET"/></tag>
5638 <tag><clip pos="5" side="tl" part="gen"/></tag>
5639 <tag><clip pos="5" side="tl" part="nbr"/></tag>
5640 </tags>
5641 <lu>
5642 <clip pos="1" side="tl" part="lem"/>
5643 <clip pos="1" side="tl" part="a_det"/>
5644 <clip pos="5" side="tl" part="gen" link-to="3"/>
5645 <clip pos="5" side="tl" part="nbr" link-to="4"/>
5646 </lu>
5647 <b/>
5648 <lu>
5649 <clip pos="5" side="tl" part="lemh"/>
5650 <clip pos="5" side="tl" part="a_nom"/>
5651 <clip pos="5" side="tl" part="gen" link-to="3"/>
5652 <clip pos="5" side="tl" part="nbr" link-to="4"/>
5653 <clip pos="5" side="tl" part="lemq"/>
5654 </lu>
5655 <b/>
5656 <b pos="3"/>
5657 <lu>
5658 <lit v="de"/>
5659 <lit-tag v="pr"/>
5660 </lu>
5661 <b/>
5662 <lu>
5663 <clip pos="4" side="tl" part="lemh"/>
5664 <clip pos="4" side="tl" part="a_nom"/>
5665 <clip pos="4" side="tl" part="gen"/>
5666 <clip pos="4" side="tl" part="nbr"/>
5667 <clip pos="4" side="tl" part="lemq"/>
5668 </lu>
5669 <b/>
5670 <lu>
5671 <clip pos="2" side="tl" part="lem"/>
5672 <clip pos="2" side="tl" part="a_adj"/>
5673 <clip pos="4" side="tl" part="gen" />
5674 <clip pos="4" side="tl" part="nbr" />
5675 </lu>
5676 <b/>
5678 </chunk>
5679 </out>
5680 <let>
5681 <var n="caseFirstWord"/>
5682 <lit v="aa"/>
5683 </let>
5684 </action>
5685 </rule>
5689 <rule comment="REGLA: NUM ADJ-NOM1 NOM2 -> NOM NOM2 de NOM1 ADJ (BCN open-source software)">
5690 <pattern>
5691 <pattern-item n="num"/>
5692 <pattern-item n="adj"/>
5693 <pattern-item n="guio"/>
5694 <pattern-item n="nom"/>
5695 <pattern-item n="nom"/>
5696 </pattern>
5697 <action>
5698 <call-macro n="genere_nombre">
5699 <with-param pos="5"/>
5700 </call-macro>
5701 <call-macro n="million">
5702 <with-param pos="1"/>
5703 </call-macro>
5704 <call-macro n="flexio_numerals">
5705 <with-param pos="1"/>
5706 <with-param pos="5"/>
5707 </call-macro>
5709 <call-macro n="comparatiu_adj1">
5710 <with-param pos="2"/>
5711 </call-macro>
5713 <call-macro n="firstWord">
5714 <with-param pos="1"/>
5715 </call-macro>
5716 <out>
5717 <chunk name="num_adj_nom_nom" case="caseFirstWord">
5718 <tags>
5719 <tag><lit-tag v="SN.DET"/></tag>
5720 <tag><clip pos="5" side="tl" part="gen"/></tag>
5721 <tag><clip pos="5" side="tl" part="nbr"/></tag>
5722 </tags>
5723 <lu>
5724 <clip pos="1" side="tl" part="lem"/>
5725 <clip pos="1" side="tl" part="a_num"/>
5726 <clip pos="1" side="tl" part="gen" />
5727 <clip pos="1" side="tl" part="nbr" />
5728 </lu>
5729 <b/>
5730 <lu>
5731 <clip pos="5" side="tl" part="lemh"/>
5732 <clip pos="5" side="tl" part="a_nom"/>
5733 <clip pos="5" side="tl" part="gen" link-to="3"/>
5734 <clip pos="5" side="tl" part="nbr" link-to="4"/>
5735 <clip pos="5" side="tl" part="lemq"/>
5736 </lu>
5737 <b/>
5738 <b pos="3"/>
5739 <lu>
5740 <lit v="de"/>
5741 <lit-tag v="pr"/>
5742 </lu>
5743 <b/>
5744 <lu>
5745 <clip pos="4" side="tl" part="lemh"/>
5746 <clip pos="4" side="tl" part="a_nom"/>
5747 <clip pos="4" side="tl" part="gen"/>
5748 <clip pos="4" side="tl" part="nbr"/>
5749 <clip pos="4" side="tl" part="lemq"/>
5750 </lu>
5751 <b/>
5752 <lu>
5753 <clip pos="2" side="tl" part="lem"/>
5754 <clip pos="2" side="tl" part="a_adj"/>
5755 <clip pos="4" side="tl" part="gen" />
5756 <clip pos="4" side="tl" part="nbr" />
5757 </lu>
5758 <b/>
5760 </chunk>
5761 </out>
5762 <let>
5763 <var n="caseFirstWord"/>
5764 <lit v="aa"/>
5765 </let>
5766 </action>
5767 </rule>
5770 <rule comment="REGLA: ADJ-NOM1 NOM2 NOM3-> NOM3 de NOM1 NOM ADJ (BCN open-source software systems)">
5771 <pattern>
5772 <pattern-item n="adj"/>
5773 <pattern-item n="guio"/>
5774 <pattern-item n="nom"/>
5775 <pattern-item n="nom"/>
5776 <pattern-item n="nom"/>
5777 </pattern>
5778 <action>
5779 <call-macro n="genere_nombre">
5780 <with-param pos="5"/>
5781 </call-macro>
5782 <call-macro n="comparatiu_adj1">
5783 <with-param pos="2"/>
5784 </call-macro>
5786 <call-macro n="firstWord">
5787 <with-param pos="1"/>
5788 </call-macro>
5789 <out>
5790 <chunk name="adj_nom_nom" case="caseFirstWord">
5791 <tags>
5792 <tag><lit-tag v="SN.UNDET"/></tag>
5793 <tag><clip pos="5" side="tl" part="gen"/></tag>
5794 <tag><clip pos="5" side="tl" part="nbr"/></tag>
5795 </tags>
5796 <lu>
5797 <clip pos="5" side="tl" part="lemh"/>
5798 <clip pos="5" side="tl" part="a_nom"/>
5799 <clip pos="5" side="tl" part="gen" link-to="3"/>
5800 <clip pos="5" side="tl" part="nbr" link-to="4"/>
5801 <clip pos="5" side="tl" part="lemq"/>
5802 </lu>
5803 <b pos="1"/>
5804 <b/>
5805 <lu>
5806 <lit v="de"/>
5807 <lit-tag v="pr"/>
5808 </lu>
5809 <b/>
5810 <lu>
5811 <clip pos="4" side="tl" part="lemh"/>
5812 <clip pos="4" side="tl" part="a_nom"/>
5813 <clip pos="4" side="tl" part="gen" />
5814 <clip pos="4" side="tl" part="nbr" />
5815 <clip pos="4" side="tl" part="lemq"/>
5816 </lu>
5817 <b pos="2"/>
5818 <b/>
5819 <lu>
5820 <lit v="de"/>
5821 <lit-tag v="pr"/>
5822 </lu>
5823 <b/>
5824 <lu>
5825 <clip pos="3" side="tl" part="lemh"/>
5826 <clip pos="3" side="tl" part="a_nom"/>
5827 <clip pos="3" side="tl" part="gen"/>
5828 <clip pos="3" side="tl" part="nbr"/>
5829 <clip pos="3" side="tl" part="lemq"/>
5830 </lu>
5831 <b/>
5832 <lu>
5833 <clip pos="1" side="tl" part="lem"/>
5834 <clip pos="1" side="tl" part="a_adj"/>
5835 <clip pos="3" side="tl" part="gen" />
5836 <clip pos="3" side="tl" part="nbr" />
5837 </lu>
5838 <b/>
5840 </chunk>
5841 </out>
5842 <let>
5843 <var n="caseFirstWord"/>
5844 <lit v="aa"/>
5845 </let>
5846 </action>
5847 </rule>
5850 <rule comment="REGLA: DET ADJ-NOM1 NOM2 NOM3-> NOM3 de NOM1 NOM ADJ (BCN open-source software systems)">
5851 <pattern>
5852 <pattern-item n="det"/>
5853 <pattern-item n="adj"/>
5854 <pattern-item n="guio"/>
5855 <pattern-item n="nom"/>
5856 <pattern-item n="nom"/>
5857 <pattern-item n="nom"/>
5858 </pattern>
5859 <action>
5860 <call-macro n="genere_nombre">
5861 <with-param pos="6"/>
5862 </call-macro>
5863 <call-macro n="comparatiu_adj1">
5864 <with-param pos="3"/>
5865 </call-macro>
5866 <call-macro n="det_no">
5867 <with-param pos="1"/>
5868 <with-param pos="6"/>
5869 </call-macro>
5870 <call-macro n="firstWord">
5871 <with-param pos="1"/>
5872 </call-macro>
5873 <out>
5874 <chunk name="adj_nom_nom" case="caseFirstWord">
5875 <tags>
5876 <tag><lit-tag v="SN.UNDET"/></tag>
5877 <tag><clip pos="6" side="tl" part="gen"/></tag>
5878 <tag><clip pos="6" side="tl" part="nbr"/></tag>
5879 </tags>
5881 <lu>
5882 <clip pos="1" side="tl" part="lem"/>
5883 <clip pos="1" side="tl" part="a_det"/>
5884 <clip pos="6" side="tl" part="gen" link-to="3"/>
5885 <clip pos="6" side="tl" part="nbr" link-to="4"/>
5886 </lu>
5887 <b pos="1"/>
5888 <lu>
5889 <clip pos="6" side="tl" part="lemh"/>
5890 <clip pos="6" side="tl" part="a_nom"/>
5891 <clip pos="6" side="tl" part="gen" link-to="3"/>
5892 <clip pos="6" side="tl" part="nbr" link-to="4"/>
5893 <clip pos="6" side="tl" part="lemq"/>
5894 </lu>
5895 <b pos="2"/>
5896 <b/>
5897 <lu>
5898 <lit v="de"/>
5899 <lit-tag v="pr"/>
5900 </lu>
5901 <b/>
5902 <lu>
5903 <clip pos="5" side="tl" part="lemh"/>
5904 <clip pos="5" side="tl" part="a_nom"/>
5905 <clip pos="5" side="tl" part="gen" />
5906 <clip pos="5" side="tl" part="nbr" />
5907 <clip pos="5" side="tl" part="lemq"/>
5908 </lu>
5909 <b pos="3"/>
5910 <b/>
5911 <lu>
5912 <lit v="de"/>
5913 <lit-tag v="pr"/>
5914 </lu>
5915 <b/>
5916 <lu>
5917 <clip pos="4" side="tl" part="lemh"/>
5918 <clip pos="4" side="tl" part="a_nom"/>
5919 <clip pos="4" side="tl" part="gen"/>
5920 <clip pos="4" side="tl" part="nbr"/>
5921 <clip pos="4" side="tl" part="lemq"/>
5922 </lu>
5923 <b/>
5924 <lu>
5925 <clip pos="2" side="tl" part="lem"/>
5926 <clip pos="2" side="tl" part="a_adj"/>
5927 <clip pos="4" side="tl" part="gen" />
5928 <clip pos="4" side="tl" part="nbr" />
5929 </lu>
5930 <b/>
5932 </chunk>
5933 </out>
5934 <let>
5935 <var n="caseFirstWord"/>
5936 <lit v="aa"/>
5937 </let>
5938 </action>
5939 </rule>
5942 <rule comment="REGLA: NUM ADJ-NOM1 NOM2 NOM3-> NOM3 de NOM1 NOM ADJ (BCN open-source software systems)">
5943 <pattern>
5944 <pattern-item n="num"/>
5945 <pattern-item n="adj"/>
5946 <pattern-item n="guio"/>
5947 <pattern-item n="nom"/>
5948 <pattern-item n="nom"/>
5949 <pattern-item n="nom"/>
5950 </pattern>
5951 <action>
5952 <call-macro n="genere_nombre">
5953 <with-param pos="6"/>
5954 </call-macro>
5956 <call-macro n="million">
5957 <with-param pos="1"/>
5958 </call-macro>
5959 <call-macro n="flexio_numerals">
5960 <with-param pos="1"/>
5961 <with-param pos="6"/>
5962 </call-macro>
5963 <call-macro n="comparatiu_adj1">
5964 <with-param pos="3"/>
5965 </call-macro>
5966 <call-macro n="firstWord">
5967 <with-param pos="1"/>
5968 </call-macro>
5969 <out>
5970 <chunk name="adj_nom_nom" case="caseFirstWord">
5971 <tags>
5972 <tag><lit-tag v="SN.UNDET"/></tag>
5973 <tag><clip pos="6" side="tl" part="gen"/></tag>
5974 <tag><clip pos="6" side="tl" part="nbr"/></tag>
5975 </tags>
5977 <lu>
5978 <clip pos="1" side="tl" part="lem"/>
5979 <clip pos="1" side="tl" part="a_num"/>
5980 <clip pos="1" side="tl" part="gen" />
5981 <clip pos="1" side="tl" part="nbr" />
5982 </lu>
5983 <b pos="1"/>
5984 <lu>
5985 <clip pos="6" side="tl" part="lemh"/>
5986 <clip pos="6" side="tl" part="a_nom"/>
5987 <clip pos="6" side="tl" part="gen" link-to="3"/>
5988 <clip pos="6" side="tl" part="nbr" link-to="4"/>
5989 <clip pos="6" side="tl" part="lemq"/>
5990 </lu>
5991 <b pos="2"/>
5992 <b/>
5993 <lu>
5994 <lit v="de"/>
5995 <lit-tag v="pr"/>
5996 </lu>
5997 <b/>
5998 <lu>
5999 <clip pos="5" side="tl" part="lemh"/>
6000 <clip pos="5" side="tl" part="a_nom"/>
6001 <clip pos="5" side="tl" part="gen" />
6002 <clip pos="5" side="tl" part="nbr" />
6003 <clip pos="5" side="tl" part="lemq"/>
6004 </lu>
6005 <b pos="3"/>
6006 <b/>
6007 <lu>
6008 <lit v="de"/>
6009 <lit-tag v="pr"/>
6010 </lu>
6011 <b/>
6012 <lu>
6013 <clip pos="4" side="tl" part="lemh"/>
6014 <clip pos="4" side="tl" part="a_nom"/>
6015 <clip pos="4" side="tl" part="gen"/>
6016 <clip pos="4" side="tl" part="nbr"/>
6017 <clip pos="4" side="tl" part="lemq"/>
6018 </lu>
6019 <b/>
6020 <lu>
6021 <clip pos="2" side="tl" part="lem"/>
6022 <clip pos="2" side="tl" part="a_adj"/>
6023 <clip pos="4" side="tl" part="gen" />
6024 <clip pos="4" side="tl" part="nbr" />
6025 </lu>
6026 <b/>
6028 </chunk>
6029 </out>
6030 <let>
6031 <var n="caseFirstWord"/>
6032 <lit v="aa"/>
6033 </let>
6034 </action>
6035 </rule>
6037 <rule comment="REGLA: NUM ADV-ADJ NOM2 (BCN non-free software)">
6038 <pattern>
6039 <pattern-item n="num"/>
6040 <pattern-item n="adv"/>
6041 <pattern-item n="guio"/>
6042 <pattern-item n="adj"/>
6043 <pattern-item n="nom"/>
6044 </pattern>
6045 <action>
6046 <call-macro n="genere_nombre">
6047 <with-param pos="5"/>
6048 </call-macro>
6049 <call-macro n="million">
6050 <with-param pos="1"/>
6051 </call-macro>
6052 <call-macro n="flexio_numerals">
6053 <with-param pos="1"/>
6054 <with-param pos="5"/>
6055 </call-macro>
6056 <call-macro n="firstWord">
6057 <with-param pos="1"/>
6058 </call-macro>
6059 <out>
6060 <chunk name="num_adv_adj_nom" case="caseFirstWord">
6061 <tags>
6062 <tag><lit-tag v="SN.DET"/></tag>
6063 <tag><clip pos="5" side="tl" part="gen"/></tag>
6064 <tag><clip pos="5" side="tl" part="nbr"/></tag>
6065 </tags>
6066 <lu>
6067 <clip pos="1" side="tl" part="lem"/>
6068 <clip pos="1" side="tl" part="a_num"/>
6069 <clip pos="1" side="tl" part="gen" />
6070 <clip pos="1" side="tl" part="nbr" />
6071 </lu>
6072 <b/>
6073 <lu>
6074 <clip pos="5" side="tl" part="lemh"/>
6075 <clip pos="5" side="tl" part="a_nom"/>
6076 <clip pos="5" side="tl" part="gen" link-to="3"/>
6077 <clip pos="5" side="tl" part="nbr" link-to="4"/>
6078 <clip pos="5" side="tl" part="lemq"/>
6079 </lu>
6080 <b/>
6081 <lu>
6082 <clip pos="2" side="tl" part="whole"/>
6083 </lu>
6084 <b/>
6085 <lu>
6086 <clip pos="4" side="tl" part="lemh"/>
6087 <clip pos="4" side="tl" part="a_adj"/>
6088 <clip pos="5" side="tl" part="gen" />
6089 <clip pos="5" side="tl" part="nbr" />
6090 <clip pos="4" side="tl" part="lemq"/>
6091 </lu>
6092 <b/>
6094 </chunk>
6095 </out>
6096 <let>
6097 <var n="caseFirstWord"/>
6098 <lit v="aa"/>
6099 </let>
6100 </action>
6101 </rule>
6104 <rule comment="REGLA: DET ADV-ADJ NOM2 (BCN non-free software)">
6105 <pattern>
6106 <pattern-item n="det"/>
6107 <pattern-item n="adv"/>
6108 <pattern-item n="guio"/>
6109 <pattern-item n="adj"/>
6110 <pattern-item n="nom"/>
6111 </pattern>
6112 <action>
6113 <call-macro n="genere_nombre">
6114 <with-param pos="5"/>
6115 </call-macro>
6116 <call-macro n="det_no">
6117 <with-param pos="1"/>
6118 <with-param pos="5"/>
6119 </call-macro>
6120 <call-macro n="firstWord">
6121 <with-param pos="1"/>
6122 </call-macro>
6123 <out>
6124 <chunk name="det_adv_adj_nom" case="caseFirstWord">
6125 <tags>
6126 <tag><lit-tag v="SN.DET"/></tag>
6127 <tag><clip pos="5" side="tl" part="gen"/></tag>
6128 <tag><clip pos="5" side="tl" part="nbr"/></tag>
6129 </tags>
6130 <lu>
6131 <clip pos="1" side="tl" part="lem"/>
6132 <clip pos="1" side="tl" part="a_det"/>
6133 <clip pos="5" side="tl" part="gen" link-to="3"/>
6134 <clip pos="5" side="tl" part="nbr" link-to="4"/>
6135 </lu>
6136 <b/>
6137 <lu>
6138 <clip pos="5" side="tl" part="lemh"/>
6139 <clip pos="5" side="tl" part="a_nom"/>
6140 <clip pos="5" side="tl" part="gen" link-to="3"/>
6141 <clip pos="5" side="tl" part="nbr" link-to="4"/>
6142 <clip pos="5" side="tl" part="lemq"/>
6143 </lu>
6144 <b/>
6145 <lu>
6146 <clip pos="2" side="tl" part="whole"/>
6147 </lu>
6148 <b/>
6149 <lu>
6150 <clip pos="4" side="tl" part="lemh"/>
6151 <clip pos="4" side="tl" part="a_adj"/>
6152 <clip pos="5" side="tl" part="gen" link-to="3" />
6153 <clip pos="5" side="tl" part="nbr" link-to="4"/>
6154 <clip pos="4" side="tl" part="lemq"/>
6155 </lu>
6156 <b/>
6158 </chunk>
6159 </out>
6160 <let>
6161 <var n="caseFirstWord"/>
6162 <lit v="aa"/>
6163 </let>
6164 </action>
6165 </rule>
6168 <rule comment="REGLA: ADV-ADJ NOM2 -> NOM NOM2 de ADV NOM1 (BCN non-free software)">
6169 <pattern>
6170 <pattern-item n="adv"/>
6171 <pattern-item n="guio"/>
6172 <pattern-item n="adj"/>
6173 <pattern-item n="nom"/>
6174 </pattern>
6175 <action>
6176 <call-macro n="genere_nombre">
6177 <with-param pos="4"/>
6178 </call-macro>
6179 <call-macro n="firstWord">
6180 <with-param pos="1"/>
6181 </call-macro>
6182 <out>
6183 <chunk name="adv_adj_nom" case="caseFirstWord">
6184 <tags>
6185 <tag><lit-tag v="SN.UNDET"/></tag>
6186 <tag><clip pos="4" side="tl" part="gen"/></tag>
6187 <tag><clip pos="4" side="tl" part="nbr"/></tag>
6188 </tags>
6189 <lu>
6190 <clip pos="4" side="tl" part="lemh"/>
6191 <clip pos="4" side="tl" part="a_nom"/>
6192 <clip pos="4" side="tl" part="gen" link-to="3"/>
6193 <clip pos="4" side="tl" part="nbr" link-to="4"/>
6194 <clip pos="4" side="tl" part="lemq"/>
6195 </lu>
6196 <b/>
6197 <lu>
6198 <clip pos="1" side="tl" part="whole"/>
6199 </lu>
6200 <b/>
6201 <lu>
6202 <clip pos="3" side="tl" part="lemh"/>
6203 <clip pos="3" side="tl" part="a_adj"/>
6204 <clip pos="4" side="tl" part="gen" />
6205 <clip pos="4" side="tl" part="nbr" />
6206 <clip pos="3" side="tl" part="lemq"/>
6207 </lu>
6208 <b/>
6210 </chunk>
6211 </out>
6212 <let>
6213 <var n="caseFirstWord"/>
6214 <lit v="aa"/>
6215 </let>
6216 </action>
6217 </rule>
6219 <rule comment="REGLA: DET DET NOM1 NOM2 -> DET DET NOM2 de NOM1">
6220 <pattern>
6221 <pattern-item n="det"/>
6222 <pattern-item n="det"/>
6223 <pattern-item n="nom"/>
6224 <pattern-item n="nom"/>
6225 </pattern>
6226 <action>
6227 <call-macro n="genere_nombre">
6228 <with-param pos="4"/>
6229 </call-macro>
6230 <call-macro n="firstWord">
6231 <with-param pos="1"/>
6232 </call-macro>
6233 <choose>
6234 <when>
6235 <test>
6236 <not>
6237 <or>
6238 <equal>
6239 <clip pos="4" side="tl" part="a_nom"/>
6240 <lit-tag v="np.ant"/>
6241 </equal>
6242 <equal>
6243 <clip pos="4" side="tl" part="a_nom"/>
6244 <lit-tag v="np.cog"/>
6245 </equal>
6246 </or>
6247 </not>
6248 </test>
6249 <out>
6250 <chunk name="det_det_nom_nom" case="caseFirstWord">
6251 <tags>
6252 <tag><lit-tag v="SN.DET"/></tag>
6253 <tag><clip pos="4" side="tl" part="gen"/></tag>
6254 <tag><clip pos="4" side="tl" part="nbr"/></tag>
6255 </tags>
6256 <lu>
6257 <clip pos="1" side="tl" part="lem"/>
6258 <clip pos="1" side="tl" part="a_det"/>
6259 <clip pos="4" side="tl" part="gen" link-to="3"/>
6260 <clip pos="4" side="tl" part="nbr" link-to="4"/>
6261 </lu>
6262 <b pos="1"/>
6263 <lu>
6264 <clip pos="2" side="tl" part="lem"/>
6265 <clip pos="2" side="tl" part="a_det"/>
6266 <clip pos="4" side="tl" part="gen" link-to="3"/>
6267 <clip pos="4" side="tl" part="nbr" link-to="4"/>
6268 </lu>
6269 <b pos="2"/>
6270 <lu>
6271 <clip pos="4" side="tl" part="lemh"/>
6272 <clip pos="4" side="tl" part="a_nom"/>
6273 <clip pos="4" side="tl" part="gen" link-to="3"/>
6274 <clip pos="4" side="tl" part="nbr" link-to="4"/>
6275 <clip pos="4" side="tl" part="lemq"/>
6276 </lu>
6277 <b pos="3"/>
6278 <lu>
6279 <lit v="de"/>
6280 <lit-tag v="pr"/>
6281 </lu>
6282 <b/>
6283 <lu>
6284 <clip pos="3" side="tl" part="lemh"/>
6285 <clip pos="3" side="tl" part="a_nom"/>
6286 <clip pos="3" side="tl" part="gen"/>
6287 <clip pos="3" side="tl" part="nbr"/>
6288 <clip pos="3" side="tl" part="lemq"/>
6289 </lu>
6290 </chunk>
6291 </out>
6292 </when>
6293 <otherwise><!--'his first son John' -->
6294 <out>
6295 <chunk name="det_det_nom_nom" case="caseFirstWord">
6296 <tags>
6297 <tag><lit-tag v="SN.DET"/></tag>
6298 <tag><clip pos="3" side="tl" part="gen"/></tag>
6299 <tag><clip pos="3" side="tl" part="nbr"/></tag>
6300 </tags>
6301 <lu>
6302 <clip pos="1" side="tl" part="lem"/>
6303 <clip pos="1" side="tl" part="a_det"/>
6304 <clip pos="3" side="tl" part="gen" link-to="3"/>
6305 <clip pos="3" side="tl" part="nbr" link-to="4"/>
6306 </lu>
6307 <b pos="1"/>
6308 <lu>
6309 <clip pos="2" side="tl" part="lem"/>
6310 <clip pos="2" side="tl" part="a_det"/>
6311 <clip pos="3" side="tl" part="gen" link-to="3"/>
6312 <clip pos="3" side="tl" part="nbr" link-to="4"/>
6313 </lu>
6314 <b pos="2"/>
6315 <lu>
6316 <clip pos="3" side="tl" part="lemh"/>
6317 <clip pos="3" side="tl" part="a_nom"/>
6318 <clip pos="3" side="tl" part="gen" link-to="3"/>
6319 <clip pos="3" side="tl" part="nbr" link-to="4"/>
6320 <clip pos="3" side="tl" part="lemq"/>
6321 </lu>
6322 <b pos="3"/>
6323 <lu>
6324 <clip pos="4" side="tl" part="lemh"/>
6325 <clip pos="4" side="tl" part="a_nom"/>
6326 <clip pos="4" side="tl" part="gen"/>
6327 <clip pos="4" side="tl" part="nbr"/>
6328 <clip pos="4" side="tl" part="lemq"/>
6329 </lu>
6330 </chunk>
6331 </out>
6332 </otherwise>
6333 </choose>
6334 <let>
6335 <var n="caseFirstWord"/>
6336 <lit v="aa"/>
6337 </let>
6338 </action>
6339 </rule>
6341 <rule comment="REGLA: DET NUM NOM1 NOM2 -> DET NUM NOM2 de NOM1">
6342 <pattern>
6343 <pattern-item n="det"/>
6344 <pattern-item n="num"/>
6345 <pattern-item n="nom"/>
6346 <pattern-item n="nom"/>
6347 </pattern>
6348 <action>
6349 <call-macro n="genere_nombre">
6350 <with-param pos="4"/>
6351 </call-macro>
6352 <call-macro n="million">
6353 <with-param pos="2"/>
6354 </call-macro>
6355 <call-macro n="flexio_numerals">
6356 <with-param pos="2"/>
6357 <with-param pos="4"/>
6358 </call-macro>
6359 <call-macro n="firstWord">
6360 <with-param pos="1"/>
6361 </call-macro>
6362 <choose>
6363 <when>
6364 <test>
6365 <not>
6366 <or>
6367 <equal>
6368 <clip pos="4" side="tl" part="a_nom"/>
6369 <lit-tag v="np.ant"/>
6370 </equal>
6371 <equal>
6372 <clip pos="4" side="tl" part="a_nom"/>
6373 <lit-tag v="np.cog"/>
6374 </equal>
6375 </or>
6376 </not>
6377 </test>
6378 <out>
6379 <chunk name="det_num_nom_nom" case="caseFirstWord">
6380 <tags>
6381 <tag><lit-tag v="SN.DET"/></tag>
6382 <tag><clip pos="4" side="tl" part="gen"/></tag>
6383 <tag><clip pos="4" side="tl" part="nbr"/></tag>
6384 </tags>
6385 <lu>
6386 <clip pos="1" side="tl" part="lem"/>
6387 <clip pos="1" side="tl" part="a_det"/>
6388 <clip pos="4" side="tl" part="gen" link-to="3"/>
6389 <clip pos="4" side="tl" part="nbr" link-to="4"/>
6390 </lu>
6391 <b pos="1"/>
6392 <lu>
6393 <clip pos="2" side="tl" part="lem"/>
6394 <clip pos="2" side="tl" part="a_num"/>
6395 <clip pos="2" side="tl" part="gen"/>
6396 <clip pos="2" side="tl" part="nbr"/>
6397 </lu>
6398 <b pos="2"/>
6399 <lu>
6400 <clip pos="4" side="tl" part="lemh"/>
6401 <clip pos="4" side="tl" part="a_nom"/>
6402 <clip pos="4" side="tl" part="gen" link-to="3"/>
6403 <clip pos="4" side="tl" part="nbr" link-to="4"/>
6404 <clip pos="4" side="tl" part="lemq"/>
6405 </lu>
6406 <b pos="3"/>
6407 <lu>
6408 <lit v="de"/>
6409 <lit-tag v="pr"/>
6410 </lu>
6411 <b/>
6412 <lu>
6413 <clip pos="3" side="tl" part="lemh"/>
6414 <clip pos="3" side="tl" part="a_nom"/>
6415 <clip pos="3" side="tl" part="gen"/>
6416 <clip pos="3" side="tl" part="nbr"/>
6417 <clip pos="3" side="tl" part="lemq"/>
6418 </lu>
6419 </chunk>
6420 </out>
6421 </when>
6422 <otherwise><!--His three cats Tom... -->
6423 <out>
6424 <chunk name="det_num_nom_nom" case="caseFirstWord">
6425 <tags>
6426 <tag><lit-tag v="SN.DET"/></tag>
6427 <tag><clip pos="3" side="tl" part="gen"/></tag>
6428 <tag><clip pos="3" side="tl" part="nbr"/></tag>
6429 </tags>
6430 <lu>
6431 <clip pos="1" side="tl" part="lem"/>
6432 <clip pos="1" side="tl" part="a_det"/>
6433 <clip pos="3" side="tl" part="gen" link-to="3"/>
6434 <clip pos="3" side="tl" part="nbr" link-to="4"/>
6435 </lu>
6436 <b pos="1"/>
6437 <lu>
6438 <clip pos="2" side="tl" part="lem"/>
6439 <clip pos="2" side="tl" part="a_num"/>
6440 <clip pos="2" side="tl" part="gen"/>
6441 <clip pos="2" side="tl" part="nbr"/>
6442 </lu>
6443 <b pos="2"/>
6444 <lu>
6445 <clip pos="3" side="tl" part="lemh"/>
6446 <clip pos="3" side="tl" part="a_nom"/>
6447 <clip pos="3" side="tl" part="gen" link-to="3"/>
6448 <clip pos="3" side="tl" part="nbr" link-to="4"/>
6449 <clip pos="3" side="tl" part="lemq"/>
6450 </lu>
6451 <b pos="3"/>
6452 <lu>
6453 <clip pos="4" side="tl" part="lemh"/>
6454 <clip pos="4" side="tl" part="a_nom"/>
6455 <clip pos="4" side="tl" part="gen"/>
6456 <clip pos="4" side="tl" part="nbr"/>
6457 <clip pos="4" side="tl" part="lemq"/>
6458 </lu>
6459 </chunk>
6460 </out>
6461 </otherwise>
6462 </choose>
6463 <let>
6464 <var n="caseFirstWord"/>
6465 <lit v="aa"/>
6466 </let>
6467 </action>
6468 </rule>
6470 <rule comment="REGLA: DET NUM-NOM1 NOM2 ->DET NOM2 de NUM NOM1(pl) (A three-month extension - una extensió de tres mesos">
6471 <pattern>
6472 <pattern-item n="det"/>
6473 <pattern-item n="num"/>
6474 <pattern-item n="guio"/>
6475 <pattern-item n="nom"/>
6476 <pattern-item n="nom"/>
6477 </pattern>
6478 <action>
6479 <call-macro n="genere_nombre">
6480 <with-param pos="5"/>
6481 </call-macro>
6482 <call-macro n="million">
6483 <with-param pos="2"/>
6484 </call-macro>
6485 <call-macro n="flexio_numerals">
6486 <with-param pos="2"/>
6487 <with-param pos="4"/>
6488 </call-macro>
6489 <call-macro n="firstWord">
6490 <with-param pos="1"/>
6491 </call-macro>
6492 <out>
6493 <chunk name="det_num_guio_nom_nom" case="caseFirstWord">
6494 <tags>
6495 <tag><lit-tag v="SN.DET"/></tag>
6496 <tag><clip pos="5" side="tl" part="gen"/></tag>
6497 <tag><clip pos="5" side="tl" part="nbr"/></tag>
6498 </tags>
6499 <lu>
6500 <clip pos="1" side="tl" part="lem"/>
6501 <clip pos="1" side="tl" part="a_det"/>
6502 <clip pos="5" side="tl" part="gen" link-to="3"/>
6503 <clip pos="5" side="tl" part="nbr" link-to="4"/>
6504 </lu>
6505 <b pos="1"/>
6506 <lu>
6507 <clip pos="5" side="tl" part="lemh"/>
6508 <clip pos="5" side="tl" part="a_nom"/>
6509 <clip pos="5" side="tl" part="gen" link-to="3"/>
6510 <clip pos="5" side="tl" part="nbr" link-to="4"/>
6511 <clip pos="5" side="tl" part="lemq"/>
6512 </lu>
6513 <b/>
6514 <lu>
6515 <lit v="de"/>
6516 <lit-tag v="pr"/>
6517 </lu>
6518 <b/>
6519 <lu>
6520 <clip pos="2" side="tl" part="lem"/>
6521 <clip pos="2" side="tl" part="a_num"/>
6522 <clip pos="2" side="tl" part="gen"/>
6523 <clip pos="2" side="tl" part="nbr"/>
6524 </lu>
6525 <b pos="4"/>
6526 <lu>
6527 <clip pos="4" side="tl" part="lemh"/>
6528 <clip pos="4" side="tl" part="a_nom"/>
6529 <clip pos="4" side="tl" part="gen"/>
6530 <lit-tag v="pl"/>
6531 <clip pos="4" side="tl" part="lemq"/>
6532 </lu>
6533 </chunk>
6534 </out>
6535 <let>
6536 <var n="caseFirstWord"/>
6537 <lit v="aa"/>
6538 </let>
6539 </action>
6540 </rule>
6542 <rule comment="REGLA: ADJ NOM1 NOM2 -> NOM2 de NOM1 ADJ">
6543 <pattern>
6544 <pattern-item n="adj"/>
6545 <pattern-item n="nom"/>
6546 <pattern-item n="nom"/>
6547 </pattern>
6548 <action>
6549 <call-macro n="genere_nombre">
6550 <with-param pos="3"/>
6551 </call-macro>
6552 <call-macro n="firstWord">
6553 <with-param pos="1"/>
6554 </call-macro>
6555 <call-macro n="comparatiu_adj1">
6556 <with-param pos="1"/>
6557 </call-macro>
6558 <choose>
6559 <when>
6560 <test>
6561 <not>
6562 <or>
6563 <equal>
6564 <clip pos="3" side="tl" part="a_nom"/>
6565 <lit-tag v="np.ant"/>
6566 </equal>
6567 <equal>
6568 <clip pos="3" side="tl" part="a_nom"/>
6569 <lit-tag v="np.cog"/>
6570 </equal>
6571 </or>
6572 </not>
6573 </test>
6574 <out>
6575 <chunk name="adj_nom_nom" case="caseFirstWord">
6576 <tags>
6577 <tag><lit-tag v="SN.UNDET"/></tag>
6578 <tag><clip pos="3" side="tl" part="gen"/></tag>
6579 <tag><clip pos="3" side="tl" part="nbr"/></tag>
6580 </tags>
6581 <lu>
6582 <clip pos="3" side="tl" part="lemh"/>
6583 <clip pos="3" side="tl" part="a_nom"/>
6584 <clip pos="3" side="tl" part="gen" link-to="3"/>
6585 <clip pos="3" side="tl" part="nbr" link-to="4"/>
6586 <clip pos="3" side="tl" part="lemq"/>
6587 </lu>
6588 <b pos="1"/>
6589 <lu>
6590 <lit v="de"/>
6591 <lit-tag v="pr"/>
6592 </lu>
6593 <b/>
6594 <lu>
6595 <clip pos="2" side="tl" part="lemh"/>
6596 <clip pos="2" side="tl" part="a_nom"/>
6597 <clip pos="2" side="tl" part="gen"/>
6598 <clip pos="2" side="tl" part="nbr"/>
6599 <clip pos="2" side="tl" part="lemq"/>
6600 </lu>
6601 <b pos="2"/>
6602 <lu>
6603 <var n="adjectiu1"/>
6604 <clip pos="1" side="tl" part="lemh"/>
6605 <clip pos="1" side="tl" part="a_adj"/>
6606 <clip pos="2" side="tl" part="gen"/>
6607 <clip pos="2" side="tl" part="nbr"/>
6608 <clip pos="1" side="tl" part="lemq"/>
6609 </lu>
6610 </chunk>
6611 </out>
6612 </when>
6613 <otherwise>
6614 <out> <!--'beautiful son James' -->
6615 <chunk name="adj_nom_nom" case="caseFirstWord">
6616 <tags>
6617 <tag><lit-tag v="SN.UNDET"/></tag>
6618 <tag><clip pos="2" side="tl" part="gen"/></tag>
6619 <tag><clip pos="2" side="tl" part="nbr"/></tag>
6620 </tags>
6621 <lu>
6622 <clip pos="2" side="tl" part="lemh"/>
6623 <clip pos="2" side="tl" part="a_nom"/>
6624 <clip pos="2" side="tl" part="gen" link-to="3"/>
6625 <clip pos="2" side="tl" part="nbr" link-to="4"/>
6626 <clip pos="2" side="tl" part="lemq"/>
6627 </lu>
6628 <b pos="1"/>
6629 <lu>
6630 <var n="adjectiu1"/>
6631 <clip pos="1" side="tl" part="lemh"/>
6632 <clip pos="1" side="tl" part="a_adj"/>
6633 <clip pos="2" side="tl" part="gen"/>
6634 <clip pos="2" side="tl" part="nbr"/>
6635 <clip pos="1" side="tl" part="lemq"/>
6636 </lu>
6637 <b pos="2"/>
6638 <lu>
6639 <clip pos="3" side="tl" part="lemh"/>
6640 <clip pos="3" side="tl" part="a_nom"/>
6641 <clip pos="3" side="tl" part="gen"/>
6642 <clip pos="3" side="tl" part="nbr"/>
6643 <clip pos="3" side="tl" part="lemq"/>
6644 </lu>
6645 </chunk>
6646 </out>
6647 </otherwise>
6648 </choose>
6649 <let>
6650 <var n="caseFirstWord"/>
6651 <lit v="aa"/>
6652 </let>
6653 </action>
6654 </rule>
6656 <rule comment="REGLA: DET ADJ NOM1 NOM2 -> DET NOM2 de NOM1 ADJ">
6657 <pattern>
6658 <pattern-item n="det"/>
6659 <pattern-item n="adj"/>
6660 <pattern-item n="nom"/>
6661 <pattern-item n="nom"/>
6662 </pattern>
6663 <action>
6664 <call-macro n="genere_nombre">
6665 <with-param pos="4"/>
6666 </call-macro>
6667 <call-macro n="firstWord">
6668 <with-param pos="1"/>
6669 </call-macro>
6670 <call-macro n="comparatiu_adj1">
6671 <with-param pos="2"/>
6672 </call-macro>
6673 <choose>
6674 <when>
6675 <test>
6676 <not>
6677 <or>
6678 <equal>
6679 <clip pos="4" side="tl" part="a_nom"/>
6680 <lit-tag v="np.ant"/>
6681 </equal>
6682 <equal>
6683 <clip pos="4" side="tl" part="a_nom"/>
6684 <lit-tag v="np.cog"/>
6685 </equal>
6686 </or>
6687 </not>
6688 </test>
6689 <out>
6690 <chunk name="det_adj_nom_nom" case="caseFirstWord">
6691 <tags>
6692 <tag><lit-tag v="SN.DET"/></tag>
6693 <tag><clip pos="4" side="tl" part="gen"/></tag>
6694 <tag><clip pos="4" side="tl" part="nbr"/></tag>
6695 </tags>
6696 <lu>
6697 <clip pos="1" side="tl" part="lem"/>
6698 <clip pos="1" side="tl" part="a_det"/>
6699 <clip pos="4" side="tl" part="gen" link-to="3"/>
6700 <clip pos="4" side="tl" part="nbr" link-to="4"/>
6701 </lu>
6702 <b pos="1"/>
6703 <lu>
6704 <clip pos="4" side="tl" part="lemh"/>
6705 <clip pos="4" side="tl" part="a_nom"/>
6706 <clip pos="4" side="tl" part="gen" link-to="3"/>
6707 <clip pos="4" side="tl" part="nbr" link-to="4"/>
6708 <clip pos="4" side="tl" part="lemq"/>
6709 </lu>
6710 <b pos="2"/>
6711 <lu>
6712 <lit v="de"/>
6713 <lit-tag v="pr"/>
6714 </lu>
6715 <b/>
6716 <lu>
6717 <clip pos="3" side="tl" part="lemh"/>
6718 <clip pos="3" side="tl" part="a_nom"/>
6719 <clip pos="3" side="tl" part="gen"/>
6720 <clip pos="3" side="tl" part="nbr"/>
6721 <clip pos="3" side="tl" part="lemq"/>
6722 </lu>
6723 <b pos="3"/>
6724 <lu>
6725 <var n="adjectiu1"/>
6726 <clip pos="2" side="tl" part="lemh"/>
6727 <clip pos="2" side="tl" part="a_adj"/>
6728 <clip pos="4" side="tl" part="gen" link-to="3"/>
6729 <clip pos="4" side="tl" part="nbr" link-to="4"/>
6730 <clip pos="2" side="tl" part="lemq"/>
6731 </lu>
6732 </chunk>
6733 </out>
6734 </when>
6735 <otherwise><!--'his beautiful son James' -->
6736 <out>
6737 <chunk name="det_adj_nom_nom" case="caseFirstWord">
6738 <tags>
6739 <tag><lit-tag v="SN.DET"/></tag>
6740 <tag><clip pos="3" side="tl" part="gen"/></tag>
6741 <tag><clip pos="3" side="tl" part="nbr"/></tag>
6742 </tags>
6743 <lu>
6744 <clip pos="1" side="tl" part="lem"/>
6745 <clip pos="1" side="tl" part="a_det"/>
6746 <clip pos="3" side="tl" part="gen" link-to="3"/>
6747 <clip pos="3" side="tl" part="nbr" link-to="4"/>
6748 </lu>
6749 <b pos="1"/>
6750 <lu>
6751 <clip pos="3" side="tl" part="lemh"/>
6752 <clip pos="3" side="tl" part="a_nom"/>
6753 <clip pos="3" side="tl" part="gen" link-to="3"/>
6754 <clip pos="3" side="tl" part="nbr" link-to="4"/>
6755 <clip pos="3" side="tl" part="lemq"/>
6756 </lu>
6757 <b pos="2"/>
6758 <lu>
6759 <var n="adjectiu1"/>
6760 <clip pos="2" side="tl" part="lemh"/>
6761 <clip pos="2" side="tl" part="a_adj"/>
6762 <clip pos="3" side="tl" part="gen" link-to="3"/>
6763 <clip pos="3" side="tl" part="nbr" link-to="4"/>
6764 <clip pos="2" side="tl" part="lemq"/>
6765 </lu>
6766 <b pos="3"/>
6767 <lu>
6768 <clip pos="4" side="tl" part="lemh"/>
6769 <clip pos="4" side="tl" part="a_nom"/>
6770 <clip pos="4" side="tl" part="gen"/>
6771 <clip pos="4" side="tl" part="nbr"/>
6772 <clip pos="4" side="tl" part="lemq"/>
6773 </lu>
6774 </chunk>
6775 </out>
6776 </otherwise>
6777 </choose>
6778 <let>
6779 <var n="caseFirstWord"/>
6780 <lit v="aa"/>
6781 </let>
6782 </action>
6783 </rule>
6785 <rule comment="REGLA: NOM1 NOM2 NOM3 -> NOM3 de NOM2 del NOM1">
6786 <pattern>
6787 <pattern-item n="nom"/>
6788 <pattern-item n="nom"/>
6789 <pattern-item n="nom"/>
6790 </pattern>
6791 <action>
6792 <call-macro n="genere_nombre">
6793 <with-param pos="3"/>
6794 </call-macro>
6795 <call-macro n="firstWord">
6796 <with-param pos="1"/>
6797 </call-macro>
6798 <out> <!--NOTA: a partir d'aquí no està feta la comprovació de si és nom propi -->
6799 <chunk name="nom_nom_nom" case="caseFirstWord">
6800 <tags>
6801 <tag><lit-tag v="SN.UNDET"/></tag>
6802 <tag><clip pos="3" side="tl" part="gen"/></tag>
6803 <tag><clip pos="3" side="tl" part="nbr"/></tag>
6804 </tags>
6805 <lu>
6806 <clip pos="3" side="tl" part="lemh"/>
6807 <clip pos="3" side="tl" part="a_nom"/>
6808 <clip pos="3" side="tl" part="gen" link-to="3"/>
6809 <clip pos="3" side="tl" part="nbr" link-to="4"/>
6810 <clip pos="3" side="tl" part="lemq"/>
6811 </lu>
6812 <b pos="1"/>
6813 <lu>
6814 <lit v="de"/>
6815 <lit-tag v="pr"/>
6816 </lu>
6817 <b/>
6818 <lu>
6819 <clip pos="2" side="tl" part="lemh"/>
6820 <clip pos="2" side="tl" part="a_nom"/>
6821 <clip pos="2" side="tl" part="gen"/>
6822 <clip pos="2" side="tl" part="nbr"/>
6823 <clip pos="2" side="tl" part="lemq"/>
6824 </lu>
6825 <b pos="2"/>
6826 <lu>
6827 <lit v="de"/>
6828 <lit-tag v="pr"/>
6829 </lu>
6830 <b/>
6831 <lu>
6832 <lit v="el"/><!--De moment hi posarem article, potser no sempre és correcte, estudiar-ho. -->
6833 <lit-tag v="det.def"/>
6834 <clip pos="1" side="tl" part="gen"/>
6835 <clip pos="1" side="tl" part="nbr"/>
6836 </lu>
6837 <b/>
6838 <lu>
6839 <clip pos="1" side="tl" part="lemh"/>
6840 <clip pos="1" side="tl" part="a_nom"/>
6841 <clip pos="1" side="tl" part="gen"/>
6842 <clip pos="1" side="tl" part="nbr"/>
6843 <clip pos="1" side="tl" part="lemq"/>
6844 </lu>
6845 </chunk>
6846 </out>
6847 <let>
6848 <var n="caseFirstWord"/>
6849 <lit v="aa"/>
6850 </let>
6851 </action>
6852 </rule>
6854 <rule comment="REGLA: DET NOM1 NOM2 NOM3 -> DET NOM3 de NOM2 del NOM1">
6855 <pattern>
6856 <pattern-item n="det"/>
6857 <pattern-item n="nom"/>
6858 <pattern-item n="nom"/>
6859 <pattern-item n="nom"/>
6860 </pattern>
6861 <action>
6862 <call-macro n="genere_nombre">
6863 <with-param pos="4"/>
6864 </call-macro>
6865 <call-macro n="firstWord">
6866 <with-param pos="1"/>
6867 </call-macro>
6868 <out>
6869 <chunk name="det_nom_nom_nom" case="caseFirstWord">
6870 <tags>
6871 <tag><lit-tag v="SN.DET"/></tag>
6872 <tag><clip pos="4" side="tl" part="gen"/></tag>
6873 <tag><clip pos="4" side="tl" part="nbr"/></tag>
6874 </tags>
6875 <lu>
6876 <clip pos="1" side="tl" part="lem"/>
6877 <clip pos="1" side="tl" part="a_det"/>
6878 <clip pos="4" side="tl" part="gen" link-to="3"/>
6879 <clip pos="4" side="tl" part="nbr" link-to="4"/>
6880 </lu>
6881 <b pos="1"/>
6882 <lu>
6883 <clip pos="4" side="tl" part="lemh"/>
6884 <clip pos="4" side="tl" part="a_nom"/>
6885 <clip pos="4" side="tl" part="gen" link-to="3"/>
6886 <clip pos="4" side="tl" part="nbr" link-to="4"/>
6887 <clip pos="4" side="tl" part="lemq"/>
6888 </lu>
6889 <b pos="2"/>
6890 <lu>
6891 <lit v="de"/>
6892 <lit-tag v="pr"/>
6893 </lu>
6894 <b/>
6895 <lu>
6896 <clip pos="3" side="tl" part="lemh"/>
6897 <clip pos="3" side="tl" part="a_nom"/>
6898 <clip pos="3" side="tl" part="gen"/>
6899 <clip pos="3" side="tl" part="nbr"/>
6900 <clip pos="3" side="tl" part="lemq"/>
6901 </lu>
6902 <b pos="3"/>
6903 <lu>
6904 <lit v="de"/>
6905 <lit-tag v="pr"/>
6906 </lu>
6907 <b/>
6908 <lu>
6909 <lit v="el"/><!--De moment hi posarem article, potser no sempre és correcte, estudiar-ho. -->
6910 <lit-tag v="det.def"/>
6911 <clip pos="2" side="tl" part="gen"/>
6912 <clip pos="2" side="tl" part="nbr"/>
6913 </lu>
6914 <b/>
6915 <lu>
6916 <clip pos="2" side="tl" part="lemh"/>
6917 <clip pos="2" side="tl" part="a_nom"/>
6918 <clip pos="2" side="tl" part="gen"/>
6919 <clip pos="2" side="tl" part="nbr"/>
6920 <clip pos="2" side="tl" part="lemq"/>
6921 </lu>
6922 </chunk>
6923 </out>
6924 <let>
6925 <var n="caseFirstWord"/>
6926 <lit v="aa"/>
6927 </let>
6928 </action>
6929 </rule>
6931 <rule comment="REGLA: ADJ NOM1 NOM2 NOM3 -> NOM3 de NOM2 de NOM1 ADJ (professional video game design -> disseny de joc de vídeo professional (?)">
6932 <pattern>
6933 <pattern-item n="adj"/>
6934 <pattern-item n="nom"/>
6935 <pattern-item n="nom"/>
6936 <pattern-item n="nom"/>
6937 </pattern>
6938 <action>
6939 <call-macro n="genere_nombre">
6940 <with-param pos="4"/>
6941 </call-macro>
6942 <call-macro n="firstWord">
6943 <with-param pos="1"/>
6944 </call-macro>
6945 <call-macro n="comparatiu_adj1">
6946 <with-param pos="1"/>
6947 </call-macro>
6949 <out>
6950 <chunk name="adj_nom_nom_nom" case="caseFirstWord">
6951 <tags>
6952 <tag><lit-tag v="SN.UNDET"/></tag>
6953 <tag><clip pos="4" side="tl" part="gen"/></tag>
6954 <tag><clip pos="4" side="tl" part="nbr"/></tag>
6955 </tags>
6956 <lu>
6957 <clip pos="4" side="tl" part="lemh"/>
6958 <clip pos="4" side="tl" part="a_nom"/>
6959 <clip pos="4" side="tl" part="gen" link-to="3"/>
6960 <clip pos="4" side="tl" part="nbr" link-to="4"/>
6961 <clip pos="4" side="tl" part="lemq"/>
6962 </lu>
6963 <b pos="1"/>
6964 <lu>
6965 <lit v="de"/>
6966 <lit-tag v="pr"/>
6967 </lu>
6968 <b/>
6969 <lu>
6970 <clip pos="3" side="tl" part="lemh"/>
6971 <clip pos="3" side="tl" part="a_nom"/>
6972 <clip pos="3" side="tl" part="gen"/>
6973 <clip pos="3" side="tl" part="nbr"/>
6974 <clip pos="3" side="tl" part="lemq"/>
6975 </lu>
6976 <b pos="2"/>
6977 <lu>
6978 <lit v="de"/>
6979 <lit-tag v="pr"/>
6980 </lu>
6981 <b/>
6982 <lu>
6983 <clip pos="2" side="tl" part="lemh"/>
6984 <clip pos="2" side="tl" part="a_nom"/>
6985 <clip pos="2" side="tl" part="gen"/>
6986 <clip pos="2" side="tl" part="nbr"/>
6987 <clip pos="2" side="tl" part="lemq"/>
6988 </lu>
6989 <b pos="3"/>
6990 <lu>
6991 <var n="adjectiu1"/>
6992 <clip pos="1" side="tl" part="lemh"/>
6993 <clip pos="1" side="tl" part="a_adj"/>
6994 <clip pos="4" side="tl" part="gen" link-to="3"/>
6995 <clip pos="4" side="tl" part="nbr" link-to="4"/>
6996 <clip pos="1" side="tl" part="lemq"/>
6997 </lu>
6998 </chunk>
6999 </out>
7000 <let>
7001 <var n="caseFirstWord"/>
7002 <lit v="aa"/>
7003 </let>
7004 </action>
7005 </rule>
7007 <rule comment="REGLA: DET ADJ NOM1 NOM2 NOM3 -> DET NOM3 de NOM2 de NOM1 ADJ">
7008 <pattern>
7009 <pattern-item n="det"/>
7010 <pattern-item n="adj"/>
7011 <pattern-item n="nom"/>
7012 <pattern-item n="nom"/>
7013 <pattern-item n="nom"/>
7014 </pattern>
7015 <action>
7016 <call-macro n="genere_nombre">
7017 <with-param pos="5"/>
7018 </call-macro>
7019 <call-macro n="firstWord">
7020 <with-param pos="1"/>
7021 </call-macro>
7022 <call-macro n="comparatiu_adj1">
7023 <with-param pos="2"/>
7024 </call-macro>
7025 <out>
7026 <chunk name="det_adj_nom_nom_nom" case="caseFirstWord">
7027 <tags>
7028 <tag><lit-tag v="SN.DET"/></tag>
7029 <tag><clip pos="5" side="tl" part="gen"/></tag>
7030 <tag><clip pos="5" side="tl" part="nbr"/></tag>
7031 </tags>
7032 <lu>
7033 <clip pos="1" side="tl" part="lem"/>
7034 <clip pos="1" side="tl" part="a_det"/>
7035 <clip pos="5" side="tl" part="gen" link-to="3"/>
7036 <clip pos="5" side="tl" part="nbr" link-to="4"/>
7037 </lu>
7038 <b pos="1"/>
7039 <lu>
7040 <clip pos="5" side="tl" part="lemh"/>
7041 <clip pos="5" side="tl" part="a_nom"/>
7042 <clip pos="5" side="tl" part="gen" link-to="3"/>
7043 <clip pos="5" side="tl" part="nbr" link-to="4"/>
7044 <clip pos="5" side="tl" part="lemq"/>
7045 </lu>
7046 <b pos="2"/>
7047 <lu>
7048 <lit v="de"/>
7049 <lit-tag v="pr"/>
7050 </lu>
7051 <b/>
7052 <lu>
7053 <clip pos="4" side="tl" part="lemh"/>
7054 <clip pos="4" side="tl" part="a_nom"/>
7055 <clip pos="4" side="tl" part="gen"/>
7056 <clip pos="4" side="tl" part="nbr"/>
7057 <clip pos="4" side="tl" part="lemq"/>
7058 </lu>
7059 <b pos="3"/>
7060 <lu>
7061 <lit v="de"/>
7062 <lit-tag v="pr"/>
7063 </lu>
7064 <b pos="4"/>
7065 <lu>
7066 <clip pos="3" side="tl" part="lemh"/>
7067 <clip pos="3" side="tl" part="a_nom"/>
7068 <clip pos="3" side="tl" part="gen"/>
7069 <clip pos="3" side="tl" part="nbr"/>
7070 <clip pos="3" side="tl" part="lemq"/>
7071 </lu>
7072 <b/>
7073 <lu>
7074 <var n="adjectiu1"/>
7075 <clip pos="2" side="tl" part="lemh"/>
7076 <clip pos="2" side="tl" part="a_adj"/>
7077 <clip pos="5" side="tl" part="gen" link-to="3"/>
7078 <clip pos="5" side="tl" part="nbr" link-to="4"/>
7079 <clip pos="2" side="tl" part="lemq"/>
7080 </lu>
7081 </chunk>
7082 </out>
7083 <let>
7084 <var n="caseFirstWord"/>
7085 <lit v="aa"/>
7086 </let>
7087 </action>
7088 </rule>
7090 <rule comment="REGLA: NOM1 NOM2 NOM3 NOM4-> NOM4 de NOM3 de NOM2 de NOM1 (video game design industry -> indústria de disseny de joc de vídeo (?)">
7091 <pattern>
7092 <pattern-item n="nom"/>
7093 <pattern-item n="nom"/>
7094 <pattern-item n="nom"/>
7095 <pattern-item n="nom"/>
7096 </pattern>
7097 <action>
7098 <call-macro n="genere_nombre">
7099 <with-param pos="4"/>
7100 </call-macro>
7101 <call-macro n="firstWord">
7102 <with-param pos="1"/>
7103 </call-macro>
7104 <out>
7105 <chunk name="nom_nom_nom_nom" case="caseFirstWord">
7106 <tags>
7107 <tag><lit-tag v="SN.UNDET"/></tag>
7108 <tag><clip pos="4" side="tl" part="gen"/></tag>
7109 <tag><clip pos="4" side="tl" part="nbr"/></tag>
7110 </tags>
7111 <lu>
7112 <clip pos="4" side="tl" part="lemh"/>
7113 <clip pos="4" side="tl" part="a_nom"/>
7114 <clip pos="4" side="tl" part="gen" link-to="3"/>
7115 <clip pos="4" side="tl" part="nbr" link-to="4"/>
7116 <clip pos="4" side="tl" part="lemq"/>
7117 </lu>
7118 <b pos="1"/>
7119 <lu>
7120 <lit v="de"/>
7121 <lit-tag v="pr"/>
7122 </lu>
7123 <b/>
7124 <lu>
7125 <clip pos="3" side="tl" part="lemh"/>
7126 <clip pos="3" side="tl" part="a_nom"/>
7127 <clip pos="3" side="tl" part="gen"/>
7128 <clip pos="3" side="tl" part="nbr"/>
7129 <clip pos="3" side="tl" part="lemq"/>
7130 </lu>
7131 <b pos="2"/>
7132 <lu>
7133 <lit v="de"/>
7134 <lit-tag v="pr"/>
7135 </lu>
7136 <b/>
7137 <lu>
7138 <clip pos="2" side="tl" part="lemh"/>
7139 <clip pos="2" side="tl" part="a_nom"/>
7140 <clip pos="2" side="tl" part="gen"/>
7141 <clip pos="2" side="tl" part="nbr"/>
7142 <clip pos="2" side="tl" part="lemq"/>
7143 </lu>
7144 <b pos="3"/>
7145 <lu>
7146 <lit v="de"/>
7147 <lit-tag v="pr"/>
7148 </lu>
7149 <b/>
7150 <lu>
7151 <clip pos="1" side="tl" part="lemh"/>
7152 <clip pos="1" side="tl" part="a_nom"/>
7153 <clip pos="1" side="tl" part="gen"/>
7154 <clip pos="1" side="tl" part="nbr"/>
7155 <clip pos="1" side="tl" part="lemq"/>
7156 </lu>
7157 </chunk>
7158 </out>
7159 <let>
7160 <var n="caseFirstWord"/>
7161 <lit v="aa"/>
7162 </let>
7163 </action>
7164 </rule>
7166 <rule comment="REGLA: DET NOM1 NOM2 NOM3 NOM4-> DET NOM4 de NOM3 de NOM2 de NOM1 (the video game design industry -> la indústria de disseny de joc de vídeo (?)">
7167 <pattern>
7168 <pattern-item n="det"/>
7169 <pattern-item n="nom"/>
7170 <pattern-item n="nom"/>
7171 <pattern-item n="nom"/>
7172 <pattern-item n="nom"/>
7173 </pattern>
7174 <action>
7175 <call-macro n="genere_nombre">
7176 <with-param pos="5"/>
7177 </call-macro>
7178 <call-macro n="firstWord">
7179 <with-param pos="1"/>
7180 </call-macro>
7181 <out>
7182 <chunk name="det_nom_nom_nom_nom" case="caseFirstWord">
7183 <tags>
7184 <tag><lit-tag v="SN.DET"/></tag>
7185 <tag><clip pos="5" side="tl" part="gen"/></tag>
7186 <tag><clip pos="5" side="tl" part="nbr"/></tag>
7187 </tags>
7188 <lu>
7189 <clip pos="1" side="tl" part="lem"/>
7190 <clip pos="1" side="tl" part="a_det"/>
7191 <clip pos="5" side="tl" part="gen" link-to="3"/>
7192 <clip pos="5" side="tl" part="nbr" link-to="4"/>
7193 </lu>
7194 <b pos="1"/>
7195 <lu>
7196 <clip pos="5" side="tl" part="lemh"/>
7197 <clip pos="5" side="tl" part="a_nom"/>
7198 <clip pos="5" side="tl" part="gen" link-to="3"/>
7199 <clip pos="5" side="tl" part="nbr" link-to="4"/>
7200 <clip pos="5" side="tl" part="lemq"/>
7201 </lu>
7202 <b pos="2"/>
7203 <lu>
7204 <lit v="de"/>
7205 <lit-tag v="pr"/>
7206 </lu>
7207 <b/>
7208 <lu>
7209 <clip pos="4" side="tl" part="lemh"/>
7210 <clip pos="4" side="tl" part="a_nom"/>
7211 <clip pos="4" side="tl" part="gen"/>
7212 <clip pos="4" side="tl" part="nbr"/>
7213 <clip pos="4" side="tl" part="lemq"/>
7214 </lu>
7215 <b pos="3"/>
7216 <lu>
7217 <lit v="de"/>
7218 <lit-tag v="pr"/>
7219 </lu>
7220 <b/>
7221 <lu>
7222 <clip pos="3" side="tl" part="lemh"/>
7223 <clip pos="3" side="tl" part="a_nom"/>
7224 <clip pos="3" side="tl" part="gen"/>
7225 <clip pos="3" side="tl" part="nbr"/>
7226 <clip pos="3" side="tl" part="lemq"/>
7227 </lu>
7228 <b pos="4"/>
7229 <lu>
7230 <lit v="de"/>
7231 <lit-tag v="pr"/>
7232 </lu>
7233 <b/>
7234 <lu>
7235 <clip pos="2" side="tl" part="lemh"/>
7236 <clip pos="2" side="tl" part="a_nom"/>
7237 <clip pos="2" side="tl" part="gen"/>
7238 <clip pos="2" side="tl" part="nbr"/>
7239 <clip pos="2" side="tl" part="lemq"/>
7240 </lu>
7241 </chunk>
7242 </out>
7243 <let>
7244 <var n="caseFirstWord"/>
7245 <lit v="aa"/>
7246 </let>
7247 </action>
7248 </rule>
7250 <rule comment="REGLA: NOM1 and NOM2 -> NOM1 i NOM2">
7251 <pattern>
7252 <pattern-item n="nom"/>
7253 <pattern-item n="cnjcoo"/>
7254 <pattern-item n="nom"/>
7255 </pattern>
7256 <action>
7257 <choose><!--To determine value of variables of gender-->
7258 <when>
7259 <test>
7260 <and>
7261 <equal>
7262 <clip pos="1" side="tl" part="gen"/>
7263 <lit-tag v="f"/>
7264 </equal>
7265 <equal>
7266 <clip pos="3" side="tl" part="gen"/>
7267 <lit-tag v="f"/>
7268 </equal>
7269 </and>
7270 </test>
7271 <let><var n="genere"/><lit-tag v="f"/></let>
7272 </when>
7273 <otherwise>
7274 <let><var n="genere"/><lit-tag v="m"/></let>
7275 </otherwise>
7276 </choose>
7277 <call-macro n="firstWord">
7278 <with-param pos="1"/>
7279 </call-macro>
7280 <out>
7281 <chunk name="nom_conj_nom" case="caseFirstWord">
7282 <tags>
7283 <tag><lit-tag v="SN.UNDET"/></tag>
7284 <tag><var n="genere"/></tag>
7285 <tag><lit-tag v="pl"/></tag>
7286 </tags>
7287 <lu>
7288 <clip pos="1" side="tl" part="lemh"/>
7289 <clip pos="1" side="tl" part="a_nom"/>
7290 <clip pos="1" side="tl" part="gen"/>
7291 <clip pos="1" side="tl" part="nbr"/>
7292 <clip pos="1" side="tl" part="lemq"/>
7293 </lu>
7294 <b pos="1"/>
7295 <lu>
7296 <clip pos="2" side="tl" part="whole"/>
7297 </lu>
7298 <b pos="2"/>
7299 <lu>
7300 <clip pos="3" side="tl" part="lemh"/>
7301 <clip pos="3" side="tl" part="a_nom"/>
7302 <clip pos="3" side="tl" part="gen"/>
7303 <clip pos="3" side="tl" part="nbr"/>
7304 <clip pos="3" side="tl" part="lemq"/>
7305 </lu>
7306 </chunk>
7307 </out>
7308 <let>
7309 <var n="caseFirstWord"/>
7310 <lit v="aa"/>
7311 </let>
7312 </action>
7313 </rule>
7316 <rule comment="REGLA: NOM1 and NOM2 NOM3 (BCN safety and security issues)">
7317 <pattern>
7318 <pattern-item n="nom"/>
7319 <pattern-item n="cnjcoo"/>
7320 <pattern-item n="nom"/>
7321 <pattern-item n="nom"/>
7322 </pattern>
7323 <action>
7324 <choose><!--To determine value of variables of gender-->
7325 <when>
7326 <test>
7327 <and>
7328 <equal>
7329 <clip pos="1" side="tl" part="gen"/>
7330 <lit-tag v="f"/>
7331 </equal>
7332 <equal>
7333 <clip pos="3" side="tl" part="gen"/>
7334 <lit-tag v="f"/>
7335 </equal>
7336 </and>
7337 </test>
7338 <let><var n="genere"/><lit-tag v="f"/></let>
7339 </when>
7340 <otherwise>
7341 <let><var n="genere"/><lit-tag v="m"/></let>
7342 </otherwise>
7343 </choose>
7344 <call-macro n="firstWord">
7345 <with-param pos="1"/>
7346 </call-macro>
7347 <out>
7348 <chunk name="nom_conj_nom_nom" case="caseFirstWord">
7349 <tags>
7350 <tag><lit-tag v="SN.UNDET"/></tag>
7351 <tag><var n="genere"/></tag>
7352 <tag><lit-tag v="pl"/></tag>
7353 </tags>
7354 <lu>
7355 <clip pos="1" side="tl" part="lemh"/>
7356 <clip pos="1" side="tl" part="a_nom"/>
7357 <clip pos="1" side="tl" part="gen"/>
7358 <clip pos="1" side="tl" part="nbr"/>
7359 <clip pos="1" side="tl" part="lemq"/>
7360 </lu>
7361 <b pos="1"/>
7362 <lu>
7363 <clip pos="2" side="tl" part="whole"/>
7364 </lu>
7365 <b pos="2"/>
7366 <lu>
7367 <clip pos="4" side="tl" part="lemh"/>
7368 <clip pos="4" side="tl" part="a_nom"/>
7369 <clip pos="4" side="tl" part="gen"/>
7370 <clip pos="4" side="tl" part="nbr"/>
7371 <clip pos="4" side="tl" part="lemq"/>
7372 </lu>
7373 <b pos="3"/>
7374 <lu>
7375 <lit v="de"/>
7376 <lit-tag v="pr"/>
7377 </lu>
7378 <b/>
7379 <lu>
7380 <clip pos="3" side="tl" part="lemh"/>
7381 <clip pos="3" side="tl" part="a_nom"/>
7382 <clip pos="3" side="tl" part="gen"/>
7383 <clip pos="3" side="tl" part="nbr"/>
7384 <clip pos="3" side="tl" part="lemq"/>
7385 </lu>
7387 </chunk>
7388 </out>
7389 <let>
7390 <var n="caseFirstWord"/>
7391 <lit v="aa"/>
7392 </let>
7393 </action>
7394 </rule>
7396 <rule comment="REGLA: ADJ NOM1 and NOM2 -> NOM1 i NOM2 ADJ ('native plants and animals')">
7397 <pattern>
7398 <pattern-item n="adj"/>
7399 <pattern-item n="nom"/>
7400 <pattern-item n="cnjcoo"/>
7401 <pattern-item n="nom"/>
7402 </pattern>
7403 <action>
7404 <call-macro n="comparatiu_adj1">
7405 <with-param pos="1"/>
7406 </call-macro>
7407 <choose><!--To determine value of variables of gender and
7408 number-->
7409 <when>
7410 <test>
7411 <and>
7412 <equal>
7413 <clip pos="2" side="tl" part="gen"/>
7414 <lit-tag v="f"/>
7415 </equal>
7416 <equal>
7417 <clip pos="4" side="tl" part="gen"/>
7418 <lit-tag v="f"/>
7419 </equal>
7420 </and>
7421 </test>
7422 <let><var n="genere"/><lit-tag v="f"/></let>
7423 </when>
7424 <otherwise>
7425 <let><var n="genere"/><lit-tag v="m"/></let>
7426 </otherwise>
7427 </choose>
7428 <call-macro n="firstWord">
7429 <with-param pos="1"/>
7430 </call-macro>
7431 <out>
7432 <chunk name="adj_nom_conj_nom" case="caseFirstWord">
7433 <tags>
7434 <tag><lit-tag v="SN.UNDET"/></tag>
7435 <tag><var n="genere"/></tag>
7436 <tag><lit-tag v="pl"/></tag>
7437 </tags>
7438 <lu>
7439 <clip pos="4" side="tl" part="lemh"/>
7440 <clip pos="4" side="tl" part="a_nom"/>
7441 <clip pos="4" side="tl" part="gen"/>
7442 <clip pos="4" side="tl" part="nbr"/>
7443 <clip pos="4" side="tl" part="lemq"/>
7444 </lu>
7445 <b pos="1"/>
7446 <lu>
7447 <clip pos="3" side="tl" part="whole"/>
7448 </lu>
7449 <b pos="2"/>
7450 <lu>
7451 <clip pos="2" side="tl" part="lemh"/>
7452 <clip pos="2" side="tl" part="a_nom"/>
7453 <clip pos="2" side="tl" part="gen"/>
7454 <clip pos="2" side="tl" part="nbr"/>
7455 <clip pos="2" side="tl" part="lemq"/>
7456 </lu>
7457 <b pos="3"/>
7458 <lu>
7459 <var n="adjectiu1"/>
7460 <clip pos="1" side="tl" part="lemh"/>
7461 <clip pos="1" side="tl" part="a_adj"/>
7462 <clip pos="2" side="tl" part="gen"/>
7463 <clip pos="2" side="tl" part="nbr"/>
7464 <clip pos="1" side="tl" part="lemq"/>
7465 </lu>
7466 </chunk>
7467 </out>
7468 <let>
7469 <var n="caseFirstWord"/>
7470 <lit v="aa"/>
7471 </let>
7472 </action>
7473 </rule>
7474 <!-- FI SINTAGMES NOMINALS AMB MES D'UN NOM-->
7476 <!-- SINTAGMES NOMINALS AMB GENITIU-->
7478 <rule comment="REGLA: NOM1 GENITIU NOM2 (Mexico's history)">
7479 <pattern>
7480 <pattern-item n="nom"/>
7481 <pattern-item n="genitiu"/>
7482 <pattern-item n="nom"/>
7483 </pattern>
7484 <action>
7485 <call-macro n="genere_nombre">
7486 <with-param pos="3"/>
7487 </call-macro>
7488 <call-macro n="firstWord">
7489 <with-param pos="1"/>
7490 </call-macro>
7491 <out>
7492 <chunk name="nom_genitiu_nom" case="caseFirstWord">
7493 <tags>
7494 <tag><lit-tag v="SN.DET"/></tag>
7495 <tag><clip pos="3" side="tl" part="gen"/></tag>
7496 <tag><clip pos="3" side="tl" part="nbr"/></tag>
7497 </tags>
7498 <lu>
7499 <lit v="el"/>
7500 <lit-tag v="det.def"/>
7501 <clip pos="3" side="tl" part="gen" link-to="3"/>
7502 <clip pos="3" side="tl" part="nbr" link-to="4"/>
7503 </lu>
7504 <b pos="2"/>
7505 <lu>
7506 <clip pos="3" side="tl" part="lemh"/>
7507 <clip pos="3" side="tl" part="a_nom"/>
7508 <clip pos="3" side="tl" part="gen" link-to="3"/>
7509 <clip pos="3" side="tl" part="nbr" link-to="4"/>
7510 <clip pos="3" side="tl" part="lemq"/>
7511 </lu>
7512 <b/>
7513 <lu>
7514 <lit v="de"/>
7515 <lit-tag v="pr"/>
7516 </lu>
7517 <b/>
7518 <lu>
7519 <clip pos="1" side="tl" part="lemh"/>
7520 <clip pos="1" side="tl" part="a_nom"/>
7521 <clip pos="1" side="tl" part="gen"/>
7522 <clip pos="1" side="tl" part="nbr"/>
7523 <clip pos="1" side="tl" part="lemq"/>
7524 </lu>
7525 </chunk>
7526 </out>
7527 <let>
7528 <var n="caseFirstWord"/>
7529 <lit v="aa"/>
7530 </let>
7531 </action>
7532 </rule>
7534 <rule comment="REGLA: DET NOM1 GENITIU NOM2 (my mother's house)">
7535 <pattern>
7536 <pattern-item n="det"/>
7537 <pattern-item n="nom"/>
7538 <pattern-item n="genitiu"/>
7539 <pattern-item n="nom"/>
7540 </pattern>
7541 <action>
7542 <call-macro n="genere_nombre">
7543 <with-param pos="4"/>
7544 </call-macro>
7545 <call-macro n="firstWord">
7546 <with-param pos="1"/>
7547 </call-macro>
7548 <out>
7549 <chunk name="det_nom_genitiu_nom" case="caseFirstWord">
7550 <tags>
7551 <tag><lit-tag v="SN.DET"/></tag>
7552 <tag><clip pos="4" side="tl" part="gen"/></tag>
7553 <tag><clip pos="4" side="tl" part="nbr"/></tag>
7554 </tags>
7555 <lu>
7556 <lit v="el"/>
7557 <lit-tag v="det.def"/>
7558 <clip pos="4" side="tl" part="gen" link-to="3"/>
7559 <clip pos="4" side="tl" part="nbr" link-to="4"/>
7560 </lu>
7561 <b pos="1"/>
7562 <lu>
7563 <clip pos="4" side="tl" part="lemh"/>
7564 <clip pos="4" side="tl" part="a_nom"/>
7565 <clip pos="4" side="tl" part="gen" link-to="3"/>
7566 <clip pos="4" side="tl" part="nbr" link-to="4"/>
7567 <clip pos="4" side="tl" part="lemq"/>
7568 </lu>
7569 <b pos="3"/>
7570 <lu>
7571 <lit v="de"/>
7572 <lit-tag v="pr"/>
7573 </lu>
7574 <b/>
7575 <lu>
7576 <clip pos="1" side="tl" part="lem"/>
7577 <clip pos="1" side="tl" part="a_det"/>
7578 <clip pos="2" side="tl" part="gen"/>
7579 <clip pos="2" side="tl" part="nbr"/>
7580 </lu>
7581 <b/>
7582 <lu>
7583 <clip pos="2" side="tl" part="lemh"/>
7584 <clip pos="2" side="tl" part="a_nom"/>
7585 <clip pos="2" side="tl" part="gen"/>
7586 <clip pos="2" side="tl" part="nbr"/>
7587 <clip pos="2" side="tl" part="lemq"/>
7588 </lu>
7589 </chunk>
7590 </out>
7591 <let>
7592 <var n="caseFirstWord"/>
7593 <lit v="aa"/>
7594 </let>
7595 </action>
7596 </rule>
7598 <rule comment="REGLA: NOM1 GENITIU ADJ NOM2 (Mexico's long history)">
7599 <pattern>
7600 <pattern-item n="nom"/>
7601 <pattern-item n="genitiu"/>
7602 <pattern-item n="adj2"/>
7603 <pattern-item n="nom"/>
7604 </pattern>
7605 <action>
7606 <call-macro n="genere_nombre">
7607 <with-param pos="4"/>
7608 </call-macro>
7609 <call-macro n="firstWord">
7610 <with-param pos="1"/>
7611 </call-macro>
7612 <call-macro n="comparatiu_adj1">
7613 <with-param pos="3"/>
7614 </call-macro>
7615 <out>
7616 <chunk name="nom_genitiu_adj_nom" case="caseFirstWord">
7617 <tags>
7618 <tag><lit-tag v="SN.DET"/></tag>
7619 <tag><clip pos="4" side="tl" part="gen"/></tag>
7620 <tag><clip pos="4" side="tl" part="nbr"/></tag>
7621 </tags>
7622 <lu>
7623 <lit v="el"/>
7624 <lit-tag v="det.def"/>
7625 <clip pos="4" side="tl" part="gen" link-to="3"/>
7626 <clip pos="4" side="tl" part="nbr" link-to="4"/>
7627 </lu>
7628 <b pos="2"/>
7629 <lu>
7630 <clip pos="4" side="tl" part="lemh"/>
7631 <clip pos="4" side="tl" part="a_nom"/>
7632 <clip pos="4" side="tl" part="gen" link-to="3"/>
7633 <clip pos="4" side="tl" part="nbr" link-to="4"/>
7634 <clip pos="4" side="tl" part="lemq"/>
7635 </lu>
7636 <b pos="3"/>
7637 <lu>
7638 <var n="adjectiu1"/>
7639 <clip pos="3" side="tl" part="lem"/>
7640 <clip pos="3" side="tl" part="a_adj"/>
7641 <clip pos="4" side="tl" part="gen" link-to="3"/>
7642 <clip pos="4" side="tl" part="nbr" link-to="4"/>
7643 </lu>
7644 <b/>
7645 <lu>
7646 <lit v="de"/>
7647 <lit-tag v="pr"/>
7648 </lu>
7649 <b/>
7650 <lu>
7651 <clip pos="1" side="tl" part="lemh"/>
7652 <clip pos="1" side="tl" part="a_nom"/>
7653 <clip pos="1" side="tl" part="gen"/>
7654 <clip pos="1" side="tl" part="nbr"/>
7655 <clip pos="1" side="tl" part="lemq"/>
7656 </lu>
7657 </chunk>
7658 </out>
7659 <let>
7660 <var n="caseFirstWord"/>
7661 <lit v="aa"/>
7662 </let>
7663 </action>
7664 </rule>
7666 <rule comment="REGLA: DET NOM GENITIU DET NOM (my mother's first house)">
7667 <pattern>
7668 <pattern-item n="det"/>
7669 <pattern-item n="nom"/>
7670 <pattern-item n="genitiu"/>
7671 <pattern-item n="det2"/>
7672 <pattern-item n="nom"/>
7673 </pattern>
7674 <action>
7675 <call-macro n="genere_nombre">
7676 <with-param pos="5"/>
7677 </call-macro>
7678 <call-macro n="firstWord">
7679 <with-param pos="1"/>
7680 </call-macro>
7681 <out>
7682 <chunk name="det_nom_genitiu_det_nom" case="caseFirstWord">
7683 <tags>
7684 <tag><lit-tag v="SN.DET"/></tag>
7685 <tag><clip pos="5" side="tl" part="gen"/></tag>
7686 <tag><clip pos="5" side="tl" part="nbr"/></tag>
7687 </tags>
7688 <lu>
7689 <lit v="el"/>
7690 <lit-tag v="det.def"/>
7691 <clip pos="5" side="tl" part="gen" link-to="3"/>
7692 <clip pos="5" side="tl" part="nbr" link-to="4"/>
7693 </lu>
7694 <b pos="1"/>
7695 <lu>
7696 <clip pos="4" side="tl" part="lem"/>
7697 <clip pos="4" side="tl" part="a_det"/>
7698 <clip pos="5" side="tl" part="gen" link-to="3"/>
7699 <clip pos="5" side="tl" part="nbr" link-to="4"/>
7700 </lu>
7701 <b pos="3"/>
7702 <lu>
7703 <clip pos="5" side="tl" part="lemh"/>
7704 <clip pos="5" side="tl" part="a_nom"/>
7705 <clip pos="5" side="tl" part="gen" link-to="3"/>
7706 <clip pos="5" side="tl" part="nbr" link-to="4"/>
7707 <clip pos="5" side="tl" part="lemq"/>
7708 </lu>
7709 <b pos="4"/>
7710 <lu>
7711 <lit v="de"/>
7712 <lit-tag v="pr"/>
7713 </lu>
7714 <b/>
7715 <lu>
7716 <clip pos="1" side="tl" part="lem"/>
7717 <clip pos="1" side="tl" part="a_det"/>
7718 <clip pos="2" side="tl" part="gen"/>
7719 <clip pos="2" side="tl" part="nbr"/>
7720 </lu>
7721 <b/>
7722 <lu>
7723 <clip pos="2" side="tl" part="lemh"/>
7724 <clip pos="2" side="tl" part="a_nom"/>
7725 <clip pos="2" side="tl" part="gen"/>
7726 <clip pos="2" side="tl" part="nbr"/>
7727 <clip pos="2" side="tl" part="lemq"/>
7728 </lu>
7729 </chunk>
7730 </out>
7731 <let>
7732 <var n="caseFirstWord"/>
7733 <lit v="aa"/>
7734 </let>
7735 </action>
7736 </rule>
7738 <rule comment="REGLA: DET NOM1 GENITIU ADJ NOM2 (my mother's big house)">
7739 <pattern>
7740 <pattern-item n="det"/>
7741 <pattern-item n="nom"/>
7742 <pattern-item n="genitiu"/>
7743 <pattern-item n="adj2"/>
7744 <pattern-item n="nom"/>
7745 </pattern>
7746 <action>
7747 <call-macro n="genere_nombre">
7748 <with-param pos="5"/>
7749 </call-macro>
7750 <call-macro n="firstWord">
7751 <with-param pos="1"/>
7752 </call-macro>
7753 <call-macro n="comparatiu_adj1">
7754 <with-param pos="4"/>
7755 </call-macro>
7756 <out>
7757 <chunk name="det_nom_genitiu_adj_nom" case="caseFirstWord">
7758 <tags>
7759 <tag><lit-tag v="SN.DET"/></tag>
7760 <tag><clip pos="5" side="tl" part="gen"/></tag>
7761 <tag><clip pos="5" side="tl" part="nbr"/></tag>
7762 </tags>
7763 <lu>
7764 <lit v="el"/>
7765 <lit-tag v="det.def"/>
7766 <clip pos="5" side="tl" part="gen" link-to="3"/>
7767 <clip pos="5" side="tl" part="nbr" link-to="4"/>
7768 </lu>
7769 <b pos="1"/>
7770 <lu>
7771 <clip pos="5" side="tl" part="lemh"/>
7772 <clip pos="5" side="tl" part="a_nom"/>
7773 <clip pos="5" side="tl" part="gen" link-to="3"/>
7774 <clip pos="5" side="tl" part="nbr" link-to="4"/>
7775 <clip pos="5" side="tl" part="lemq"/>
7776 </lu>
7777 <b pos="3"/>
7778 <lu>
7779 <var n="adjectiu1"/>
7780 <clip pos="4" side="tl" part="lem"/>
7781 <clip pos="4" side="tl" part="a_adj"/>
7782 <clip pos="5" side="tl" part="gen" link-to="3"/>
7783 <clip pos="5" side="tl" part="nbr" link-to="4"/>
7784 </lu>
7785 <b pos="4"/>
7786 <lu>
7787 <lit v="de"/>
7788 <lit-tag v="pr"/>
7789 </lu>
7790 <b/>
7791 <lu>
7792 <clip pos="1" side="tl" part="lem"/>
7793 <clip pos="1" side="tl" part="a_det"/>
7794 <clip pos="2" side="tl" part="gen"/>
7795 <clip pos="2" side="tl" part="nbr"/>
7796 </lu>
7797 <b/>
7798 <lu>
7799 <clip pos="2" side="tl" part="lemh"/>
7800 <clip pos="2" side="tl" part="a_nom"/>
7801 <clip pos="2" side="tl" part="gen"/>
7802 <clip pos="2" side="tl" part="nbr"/>
7803 <clip pos="2" side="tl" part="lemq"/>
7804 </lu>
7805 </chunk>
7806 </out>
7807 <let>
7808 <var n="caseFirstWord"/>
7809 <lit v="aa"/>
7810 </let>
7811 </action>
7812 </rule>
7814 <rule comment="REGLA: DET NOM1 GENITIU NUM NOM2 (my mother's two houses)">
7815 <pattern>
7816 <pattern-item n="det"/>
7817 <pattern-item n="nom"/>
7818 <pattern-item n="genitiu"/>
7819 <pattern-item n="num"/>
7820 <pattern-item n="nom"/>
7821 </pattern>
7822 <action>
7823 <call-macro n="genere_nombre">
7824 <with-param pos="5"/>
7825 </call-macro>
7826 <call-macro n="firstWord">
7827 <with-param pos="1"/>
7828 </call-macro>
7829 <call-macro n="million">
7830 <with-param pos="4"/>
7831 </call-macro>
7832 <call-macro n="flexio_numerals">
7833 <with-param pos="4"/>
7834 <with-param pos="5"/>
7835 </call-macro>
7836 <out>
7837 <chunk name="det_nom_genitiu_num_nom" case="caseFirstWord">
7838 <tags>
7839 <tag><lit-tag v="SN.DET"/></tag>
7840 <tag><clip pos="5" side="tl" part="gen"/></tag>
7841 <tag><clip pos="5" side="tl" part="nbr"/></tag>
7842 </tags>
7843 <lu>
7844 <lit v="el"/>
7845 <lit-tag v="det.def"/>
7846 <clip pos="5" side="tl" part="gen" link-to="3"/>
7847 <clip pos="5" side="tl" part="nbr" link-to="4"/>
7848 </lu>
7849 <b pos="1"/>
7850 <lu>
7851 <clip pos="4" side="tl" part="lem"/>
7852 <clip pos="4" side="tl" part="a_num"/>
7853 <clip pos="4" side="tl" part="gen"/>
7854 <clip pos="4" side="tl" part="nbr"/>
7855 </lu>
7856 <b pos="3"/>
7857 <lu>
7858 <clip pos="5" side="tl" part="lemh"/>
7859 <clip pos="5" side="tl" part="a_nom"/>
7860 <clip pos="5" side="tl" part="gen" link-to="3"/>
7861 <clip pos="5" side="tl" part="nbr" link-to="4"/>
7862 <clip pos="5" side="tl" part="lemq"/>
7863 </lu>
7864 <b pos="4"/>
7865 <lu>
7866 <lit v="de"/>
7867 <lit-tag v="pr"/>
7868 </lu>
7869 <b/>
7870 <lu>
7871 <clip pos="1" side="tl" part="lem"/>
7872 <clip pos="1" side="tl" part="a_det"/>
7873 <clip pos="2" side="tl" part="gen"/>
7874 <clip pos="2" side="tl" part="nbr"/>
7875 </lu>
7876 <b/>
7877 <lu>
7878 <clip pos="2" side="tl" part="lemh"/>
7879 <clip pos="2" side="tl" part="a_nom"/>
7880 <clip pos="2" side="tl" part="gen"/>
7881 <clip pos="2" side="tl" part="nbr"/>
7882 <clip pos="2" side="tl" part="lemq"/>
7883 </lu>
7884 </chunk>
7885 </out>
7886 <let>
7887 <var n="caseFirstWord"/>
7888 <lit v="aa"/>
7889 </let>
7890 </action>
7891 </rule>
7893 <rule comment="REGLA: ADJ NOM GENITIU NOM">
7894 <pattern>
7895 <pattern-item n="adj2"/>
7896 <pattern-item n="nom"/>
7897 <pattern-item n="genitiu"/>
7898 <pattern-item n="nom"/>
7899 </pattern>
7900 <action>
7901 <call-macro n="genere_nombre">
7902 <with-param pos="4"/>
7903 </call-macro>
7904 <call-macro n="firstWord">
7905 <with-param pos="1"/>
7906 </call-macro>
7907 <call-macro n="comparatiu_adj1">
7908 <with-param pos="1"/>
7909 </call-macro>
7910 <out>
7911 <chunk name="adj_nom_genitiu_nom" case="caseFirstWord">
7912 <tags>
7913 <tag><lit-tag v="SN.DET"/></tag>
7914 <tag><clip pos="4" side="tl" part="gen"/></tag>
7915 <tag><clip pos="4" side="tl" part="nbr"/></tag>
7916 </tags>
7917 <lu>
7918 <lit v="el"/>
7919 <lit-tag v="det.def"/>
7920 <clip pos="4" side="tl" part="gen" link-to="3"/>
7921 <clip pos="4" side="tl" part="nbr" link-to="4"/>
7922 </lu>
7923 <b pos="1"/>
7924 <lu>
7925 <clip pos="4" side="tl" part="lemh"/>
7926 <clip pos="4" side="tl" part="a_nom"/>
7927 <clip pos="4" side="tl" part="gen" link-to="3"/>
7928 <clip pos="4" side="tl" part="nbr" link-to="4"/>
7929 <clip pos="4" side="tl" part="lemq"/>
7930 </lu>
7931 <b pos="3"/>
7932 <lu>
7933 <lit v="de"/>
7934 <lit-tag v="pr"/>
7935 </lu>
7936 <b/>
7937 <lu>
7938 <lit v="el"/><!--Està bé posar l'article davant el primer nom? -->
7939 <lit-tag v="det.def"/>
7940 <clip pos="2" side="tl" part="gen"/>
7941 <clip pos="2" side="tl" part="nbr"/>
7942 </lu>
7943 <b/>
7944 <lu>
7945 <clip pos="2" side="tl" part="lemh"/>
7946 <clip pos="2" side="tl" part="a_nom"/>
7947 <clip pos="2" side="tl" part="gen"/>
7948 <clip pos="2" side="tl" part="nbr"/>
7949 <clip pos="2" side="tl" part="lemq"/>
7950 </lu>
7951 <b/>
7952 <lu>
7953 <var n="adjectiu1"/>
7954 <clip pos="1" side="tl" part="lem"/>
7955 <clip pos="1" side="tl" part="a_adj"/>
7956 <clip pos="2" side="tl" part="gen" link-to="3"/>
7957 <clip pos="2" side="tl" part="nbr" link-to="4"/>
7958 </lu>
7959 </chunk>
7960 </out>
7961 <let>
7962 <var n="caseFirstWord"/>
7963 <lit v="aa"/>
7964 </let>
7965 </action>
7966 </rule>
7968 <rule comment="REGLA: NOM GENITIU NOM NOM (Mexico's emergencies ministry)">
7969 <pattern>
7970 <pattern-item n="nom"/>
7971 <pattern-item n="genitiu"/>
7972 <pattern-item n="nom"/>
7973 <pattern-item n="nom"/>
7974 </pattern>
7975 <action>
7976 <call-macro n="genere_nombre">
7977 <with-param pos="4"/>
7978 </call-macro>
7979 <call-macro n="firstWord">
7980 <with-param pos="1"/>
7981 </call-macro>
7982 <out>
7983 <chunk name="nom_genitiu_nom" case="caseFirstWord">
7984 <tags>
7985 <tag><lit-tag v="SN.DET"/></tag>
7986 <tag><clip pos="4" side="tl" part="gen"/></tag>
7987 <tag><clip pos="4" side="tl" part="nbr"/></tag>
7988 </tags>
7989 <lu>
7990 <lit v="el"/>
7991 <lit-tag v="det.def"/>
7992 <clip pos="4" side="tl" part="gen" link-to="3"/>
7993 <clip pos="4" side="tl" part="nbr" link-to="4"/>
7994 </lu>
7995 <b pos="2"/>
7996 <lu>
7997 <clip pos="4" side="tl" part="lemh"/>
7998 <clip pos="4" side="tl" part="a_nom"/>
7999 <clip pos="4" side="tl" part="gen" link-to="3"/>
8000 <clip pos="4" side="tl" part="nbr" link-to="4"/>
8001 <clip pos="4" side="tl" part="lemq"/>
8002 </lu>
8003 <b/>
8004 <lu>
8005 <lit v="de"/>
8006 <lit-tag v="pr"/>
8007 </lu>
8008 <b pos="3"/>
8009 <lu>
8010 <clip pos="3" side="tl" part="lemh"/>
8011 <clip pos="3" side="tl" part="a_nom"/>
8012 <clip pos="3" side="tl" part="gen"/>
8013 <clip pos="3" side="tl" part="nbr"/>
8014 <clip pos="3" side="tl" part="lemq"/>
8015 </lu>
8016 <b/>
8017 <lu>
8018 <lit v="de"/>
8019 <lit-tag v="pr"/>
8020 </lu>
8021 <b/>
8022 <lu>
8023 <clip pos="1" side="tl" part="lemh"/>
8024 <clip pos="1" side="tl" part="a_nom"/>
8025 <clip pos="1" side="tl" part="gen"/>
8026 <clip pos="1" side="tl" part="nbr"/>
8027 <clip pos="1" side="tl" part="lemq"/>
8028 </lu>
8029 </chunk>
8030 </out>
8031 <let>
8032 <var n="caseFirstWord"/>
8033 <lit v="aa"/>
8034 </let>
8035 </action>
8036 </rule>
8038 <rule comment="REGLA: DET ADJ NOM GENITIU NOM (the American public's imagination)">
8039 <pattern>
8040 <pattern-item n="det"/>
8041 <pattern-item n="adj2"/>
8042 <pattern-item n="nom"/>
8043 <pattern-item n="genitiu"/>
8044 <pattern-item n="nom"/>
8045 </pattern>
8046 <action>
8047 <call-macro n="genere_nombre">
8048 <with-param pos="5"/>
8049 </call-macro>
8050 <call-macro n="firstWord">
8051 <with-param pos="1"/>
8052 </call-macro>
8053 <call-macro n="comparatiu_adj1">
8054 <with-param pos="2"/>
8055 </call-macro>
8056 <out>
8057 <chunk name="det_adj_nom_genitiu_nom" case="caseFirstWord">
8058 <tags>
8059 <tag><lit-tag v="SN.DET"/></tag>
8060 <tag><clip pos="5" side="tl" part="gen"/></tag>
8061 <tag><clip pos="5" side="tl" part="nbr"/></tag>
8062 </tags>
8063 <lu>
8064 <lit v="el"/>
8065 <lit-tag v="det.def"/>
8066 <clip pos="5" side="tl" part="gen" link-to="3"/>
8067 <clip pos="5" side="tl" part="nbr" link-to="4"/>
8068 </lu>
8069 <b pos="1"/>
8070 <lu>
8071 <clip pos="5" side="tl" part="lemh"/>
8072 <clip pos="5" side="tl" part="a_nom"/>
8073 <clip pos="5" side="tl" part="gen" link-to="3"/>
8074 <clip pos="5" side="tl" part="nbr" link-to="4"/>
8075 <clip pos="5" side="tl" part="lemq"/>
8076 </lu>
8077 <b pos="2"/>
8078 <lu>
8079 <lit v="de"/>
8080 <lit-tag v="pr"/>
8081 </lu>
8082 <b pos="4"/>
8083 <lu>
8084 <clip pos="1" side="tl" part="lem"/>
8085 <clip pos="1" side="tl" part="a_det"/>
8086 <clip pos="3" side="tl" part="gen"/>
8087 <clip pos="3" side="tl" part="nbr"/>
8088 </lu>
8089 <b/>
8090 <lu>
8091 <clip pos="3" side="tl" part="lemh"/>
8092 <clip pos="3" side="tl" part="a_nom"/>
8093 <clip pos="3" side="tl" part="gen"/>
8094 <clip pos="3" side="tl" part="nbr"/>
8095 <clip pos="3" side="tl" part="lemq"/>
8096 </lu>
8097 <b/>
8098 <lu>
8099 <var n="adjectiu1"/>
8100 <clip pos="2" side="tl" part="lem"/>
8101 <clip pos="2" side="tl" part="a_adj"/>
8102 <clip pos="3" side="tl" part="gen"/>
8103 <clip pos="3" side="tl" part="nbr"/>
8104 </lu>
8105 </chunk>
8106 </out>
8107 <let>
8108 <var n="caseFirstWord"/>
8109 <lit v="aa"/>
8110 </let>
8111 </action>
8112 </rule>
8113 <!-- FI SINTAGMES NOMINALS AMB GENITIU-->
8116 <!-- SINTAGMES NOMINALS ALTRES-->
8118 <rule comment="REGLA: NUM-NOM1-OLD NOM3 -> NOM3 de NUM NOM1(pl) (48-year-old man - home de 48 anys)">
8119 <pattern>
8120 <pattern-item n="num"/>
8121 <pattern-item n="guio"/>
8122 <pattern-item n="yearmonth"/>
8123 <pattern-item n="guio"/>
8124 <pattern-item n="old"/>
8125 <pattern-item n="nom"/>
8126 </pattern>
8127 <action>
8128 <call-macro n="genere_nombre">
8129 <with-param pos="6"/>
8130 </call-macro>
8131 <call-macro n="million">
8132 <with-param pos="1"/>
8133 </call-macro>
8134 <call-macro n="flexio_numerals">
8135 <with-param pos="1"/>
8136 <with-param pos="3"/>
8137 </call-macro>
8138 <call-macro n="firstWord">
8139 <with-param pos="1"/>
8140 </call-macro>
8141 <out>
8142 <chunk name="num_yearold_nom" case="caseFirstWord">
8143 <tags>
8144 <tag><lit-tag v="SN.UNDET"/></tag>
8145 <tag><clip pos="6" side="tl" part="gen"/></tag>
8146 <tag><clip pos="6" side="tl" part="nbr"/></tag>
8147 </tags>
8148 <lu>
8149 <clip pos="6" side="tl" part="lemh"/>
8150 <clip pos="6" side="tl" part="a_nom"/>
8151 <clip pos="6" side="tl" part="gen" link-to="3"/>
8152 <clip pos="6" side="tl" part="nbr" link-to="4"/>
8153 <clip pos="6" side="tl" part="lemq"/>
8154 </lu>
8155 <b pos="5"/>
8156 <lu>
8157 <lit v="de"/>
8158 <lit-tag v="pr"/>
8159 </lu>
8160 <b/>
8161 <lu>
8162 <clip pos="1" side="tl" part="whole"/>
8163 </lu>
8164 <b/>
8165 <lu>
8166 <clip pos="3" side="tl" part="lemh"/>
8167 <clip pos="3" side="tl" part="a_nom"/>
8168 <clip pos="3" side="tl" part="gen"/>
8169 <lit-tag v="pl"/><!--MG: atenció! i quan és 'one-month'? - arreglar -->
8170 <clip pos="3" side="tl" part="lemq"/>
8171 </lu>
8172 </chunk>
8173 </out>
8174 <let>
8175 <var n="caseFirstWord"/>
8176 <lit v="aa"/>
8177 </let>
8178 </action>
8179 </rule>
8181 <rule comment="REGLA: DET NUM-NOM1-OLD NOM3 -> DET NOM3 de NUM NOM1(pl) (the 48-year-old man - l'home de 48 anys)">
8182 <pattern>
8183 <pattern-item n="det"/>
8184 <pattern-item n="num"/>
8185 <pattern-item n="guio"/>
8186 <pattern-item n="yearmonth"/>
8187 <pattern-item n="guio"/>
8188 <pattern-item n="old"/>
8189 <pattern-item n="nom"/>
8190 </pattern>
8191 <action>
8192 <call-macro n="genere_nombre">
8193 <with-param pos="7"/>
8194 </call-macro>
8195 <call-macro n="million">
8196 <with-param pos="2"/>
8197 </call-macro>
8198 <call-macro n="flexio_numerals">
8199 <with-param pos="2"/>
8200 <with-param pos="4"/>
8201 </call-macro>
8202 <call-macro n="firstWord">
8203 <with-param pos="1"/>
8204 </call-macro>
8205 <out>
8206 <chunk name="det_num_yearold_nom" case="caseFirstWord">
8207 <tags>
8208 <tag><lit-tag v="SN.DET"/></tag>
8209 <tag><clip pos="7" side="tl" part="gen"/></tag>
8210 <tag><clip pos="7" side="tl" part="nbr"/></tag>
8211 </tags>
8212 <lu>
8213 <clip pos="1" side="tl" part="lem"/>
8214 <clip pos="1" side="tl" part="a_det"/>
8215 <clip pos="7" side="tl" part="gen" link-to="3"/>
8216 <clip pos="7" side="tl" part="nbr" link-to="4"/>
8217 </lu>
8218 <b pos="1"/>
8219 <lu>
8220 <clip pos="7" side="tl" part="lemh"/>
8221 <clip pos="7" side="tl" part="a_nom"/>
8222 <clip pos="7" side="tl" part="gen" link-to="3"/>
8223 <clip pos="7" side="tl" part="nbr" link-to="4"/>
8224 <clip pos="7" side="tl" part="lemq"/>
8225 </lu>
8226 <b pos="6"/>
8227 <lu>
8228 <lit v="de"/>
8229 <lit-tag v="pr"/>
8230 </lu>
8231 <b/>
8232 <lu>
8233 <clip pos="2" side="tl" part="whole"/>
8234 </lu>
8235 <b/>
8236 <lu>
8237 <clip pos="4" side="tl" part="lemh"/>
8238 <clip pos="4" side="tl" part="a_nom"/>
8239 <clip pos="4" side="tl" part="gen"/>
8240 <lit-tag v="pl"/><!--MG: atenció! i quan és 'one-month'? - arreglar -->
8241 <clip pos="4" side="tl" part="lemq"/>
8242 </lu>
8243 </chunk>
8244 </out>
8245 <let>
8246 <var n="caseFirstWord"/>
8247 <lit v="aa"/>
8248 </let>
8249 </action>
8250 </rule>
8251 <!-- FI SINTAGMES NOMINALS ALTRES-->
8255 <!-- <rule comment="REGLA: DET PP NOM (The preferred model - el model preferit. An increased risk - un risc augmentat (major)"> BCN OJO OJO sobra
8256 <pattern>
8257 <pattern-item n="det"/>
8258 <pattern-item n="ppadj"/>
8259 <pattern-item n="nom"/>
8260 </pattern>
8261 <action>
8262 <call-macro n="genere_nombre">
8263 <with-param pos="3"/>
8264 </call-macro>
8265 <call-macro n="firstWord">
8266 <with-param pos="1"/>
8267 </call-macro>
8268 <out>
8269 <chunk name="det_adj_nom" case="caseFirstWord">
8270 <tags>
8271 <tag><lit-tag v="SN.DET"/></tag>
8272 <tag><clip pos="3" side="tl" part="gen"/></tag>
8273 <tag><clip pos="3" side="tl" part="nbr"/></tag>
8274 </tags>
8275 <lu>
8276 <clip pos="1" side="tl" part="lem"/>
8277 <clip pos="1" side="tl" part="a_det"/>
8278 <clip pos="3" side="tl" part="gen" link-to="3"/>
8279 <clip pos="3" side="tl" part="nbr" link-to="4"/>
8280 </lu>
8281 <b pos="1"/>
8282 <lu>
8283 <clip pos="3" side="tl" part="lemh"/>
8284 <clip pos="3" side="tl" part="a_nom"/>
8285 <clip pos="3" side="tl" part="gen" link-to="3"/>
8286 <clip pos="3" side="tl" part="nbr" link-to="4"/>
8287 <clip pos="3" side="tl" part="lemq"/>
8288 </lu>
8289 <b pos="2"/>
8290 <lu>
8291 <clip pos="2" side="tl" part="lemh"/>
8292 <clip pos="2" side="tl" part="a_pp"/>
8293 <clip pos="3" side="tl" part="gen" link-to="3"/>
8294 <clip pos="3" side="tl" part="nbr" link-to="4"/>
8295 <clip pos="2" side="tl" part="lemq"/>
8296 </lu>
8297 </chunk>
8298 </out>
8299 <let>
8300 <var n="caseFirstWord"/>
8301 <lit v="aa"/>
8302 </let>
8303 </action>
8304 </rule>-->
8311 <rule comment="REGLA: COMA WHICH (BCN noun, which noun -> el qual)">
8312 <pattern>
8313 <pattern-item n="coma"/>
8314 <pattern-item n="which"/>
8315 </pattern>
8316 <action>
8317 <call-macro n="firstWord">
8318 <with-param pos="1"/>
8319 </call-macro>
8320 <out>
8321 <chunk name="coma">
8322 <tags>
8323 <tag><clip pos="1" side="tl" part="tags"/></tag>
8324 </tags>
8325 <lu>
8326 <clip pos="1" side="tl" part="whole"/>
8327 </lu>
8328 </chunk>
8329 <b pos="1"/>
8330 <chunk name="relnom" case="caseFirstWord">
8331 <tags>
8332 <tag><lit-tag v="REL"/></tag>
8333 <tag><lit-tag v="nn"/></tag>
8334 <tag><lit-tag v="GD"/></tag>
8335 <tag><lit-tag v="ND"/></tag>
8336 </tags>
8337 <lu>
8338 <lit v="el qual"/>
8339 <lit-tag v="rel"/>
8340 <lit-tag v="nn"/>
8341 <lit-tag v="3"/>
8342 <lit-tag v="4"/>
8343 </lu>
8344 </chunk>
8345 </out>
8346 <let>
8347 <var n="caseFirstWord"/>
8348 <lit v="aa"/>
8349 </let>
8350 </action>
8351 </rule>
8354 <rule comment="REGLA: PREP WHICH (to which all belong -> 'al qual(rel.nn)' i no 'a que(rel.an.)')">
8355 <pattern>
8356 <pattern-item n="prep"/>
8357 <pattern-item n="which"/>
8358 </pattern>
8359 <action>
8360 <call-macro n="firstWord">
8361 <with-param pos="1"/>
8362 </call-macro>
8363 <out>
8364 <chunk name="pr" case="caseFirstWord">
8365 <tags>
8366 <tag><lit-tag v="PREP"/></tag>
8367 </tags>
8368 <lu>
8369 <clip pos="1" side="tl" part="whole"/>
8370 </lu>
8371 </chunk>
8372 <b pos="1"/>
8373 <chunk name="relnom">
8374 <tags>
8375 <tag><lit-tag v="REL"/></tag>
8376 <tag><lit-tag v="nn"/></tag>
8377 <tag><lit-tag v="GD"/></tag>
8378 <tag><lit-tag v="ND"/></tag>
8379 </tags>
8380 <lu>
8381 <lit v="el qual"/>
8382 <lit-tag v="rel"/>
8383 <lit-tag v="nn"/>
8384 <lit-tag v="3"/>
8385 <lit-tag v="4"/>
8386 </lu>
8387 </chunk>
8388 </out>
8389 <let>
8390 <var n="caseFirstWord"/>
8391 <lit v="aa"/>
8392 </let>
8393 </action>
8394 </rule>
8397 <rule comment="REGLA: NUMERAL. Si pot ser 'm' o 'f', sortirà com a GD. Caldrà tractar-ho en interchunk o postchunk.">
8398 <pattern>
8399 <pattern-item n="num"/>
8400 </pattern>
8401 <action>
8402 <call-macro n="firstWord">
8403 <with-param pos="1"/>
8404 </call-macro>
8405 <out>
8406 <chunk name="num" case="caseFirstWord">
8407 <tags>
8408 <tag><lit-tag v="NUM"/></tag>
8409 <tag><clip pos="1" side="tl" part="gen"/></tag>
8410 <tag><clip pos="1" side="tl" part="nbr"/></tag>
8411 </tags>
8412 <lu>
8413 <clip pos="1" side="tl" part="lem"/>
8414 <clip pos="1" side="tl" part="a_num"/>
8415 <clip pos="1" side="tl" part="gen" link-to="2"/>
8416 <clip pos="1" side="tl" part="nbr"/>
8417 </lu>
8418 </chunk>
8419 </out>
8420 <let>
8421 <var n="caseFirstWord"/>
8422 <lit v="aa"/>
8423 </let>
8424 </action>
8425 </rule>
8428 <rule comment="REGLA: DETERMINANT">
8429 <pattern>
8430 <pattern-item n="det"/>
8431 </pattern>
8432 <action>
8433 <call-macro n="firstWord">
8434 <with-param pos="1"/>
8435 </call-macro>
8436 <choose>
8437 <when>
8438 <test>
8439 <not>
8440 <or>
8441 <equal>
8442 <clip pos="1" side="tl" part="nbr"/>
8443 <lit-tag v="sg"/>
8444 </equal>
8445 <equal>
8446 <clip pos="1" side="tl" part="nbr"/>
8447 <lit-tag v="pl"/>
8448 </equal>
8449 </or>
8450 </not>
8451 </test>
8452 <let>
8453 <clip pos="1" side="tl" part="nbr"/>
8454 <lit-tag v="ND"/>
8455 </let>
8456 </when>
8457 </choose>
8459 <out>
8460 <chunk name="det" case="caseFirstWord">
8461 <tags>
8462 <tag><lit-tag v="DET"/></tag>
8463 <tag><lit-tag v="GD"/></tag>
8464 <tag><clip pos="1" side="tl" part="nbr"/></tag>
8465 </tags>
8466 <lu>
8467 <clip pos="1" side="tl" part="lem"/>
8468 <clip pos="1" side="tl" part="a_det"/>
8469 <lit-tag v="2"/>
8470 <lit-tag v="3"/>
8471 </lu>
8472 </chunk>
8473 </out>
8475 <let>
8476 <var n="caseFirstWord"/>
8477 <lit v="aa"/>
8478 </let>
8479 </action>
8480 </rule>
8483 <rule comment="REGLA: NOM (per a donar valor a la variable de gènere, i per a col·locar la cua en les multiparaules amb g">
8484 <pattern>
8485 <pattern-item n="nom"/>
8486 </pattern>
8487 <action>
8488 <call-macro n="genere_nombre">
8489 <with-param pos="1"/>
8490 </call-macro>
8491 <call-macro n="firstWord">
8492 <with-param pos="1"/>
8493 </call-macro>
8494 <out>
8495 <chunk name="nom" case="caseFirstWord">
8496 <tags>
8497 <tag><lit-tag v="SN.UNDET"/></tag>
8498 <tag><clip pos="1" side="tl" part="gen"/></tag>
8499 <tag><clip pos="1" side="tl" part="nbr"/></tag>
8500 </tags>
8501 <lu>
8502 <clip pos="1" side="tl" part="lemh"/>
8503 <clip pos="1" side="tl" part="a_nom"/>
8504 <clip pos="1" side="tl" part="gen" link-to="3"/>
8505 <clip pos="1" side="tl" part="nbr" link-to="4"/>
8506 <clip pos="1" side="tl" part="lemq"/>
8507 </lu>
8508 </chunk>
8509 </out>
8510 <let>
8511 <var n="caseFirstWord"/>
8512 <lit v="aa"/>
8513 </let>
8514 </action>
8515 </rule>
8519 <rule comment="REGLA: ADJECTIU + enough (BCN strong enough :: prou fort)">
8520 <pattern>
8521 <pattern-item n="adj"/>
8522 <pattern-item n="enough"/>
8523 </pattern>
8524 <action>
8525 <call-macro n="firstWord">
8526 <with-param pos="1"/>
8527 </call-macro>
8528 <call-macro n="comparatiu_adj1">
8529 <with-param pos="1"/>
8530 </call-macro>
8531 <out>
8532 <chunk name="adj" case="caseFirstWord">
8533 <tags>
8534 <tag><lit-tag v="SA"/></tag>
8535 <tag><lit-tag v="GD"/></tag>
8536 <tag><lit-tag v="ND"/></tag>
8537 </tags>
8538 <lu>
8539 <clip pos="2" side="tl" part="whole"/>
8540 </lu>
8541 <b/>
8542 <lu>
8543 <var n="adjectiu1"/>
8544 <clip pos="1" side="tl" part="lemh"/> <!-- BCN cua PPs-->
8545 <clip pos="1" side="tl" part="a_adj"/>
8546 <lit-tag v="2"/>
8547 <lit-tag v="3"/>
8548 <clip pos="1" side="tl" part="lemq"/> <!-- per a les possibles cues dels PPs -->
8549 </lu>
8550 </chunk>
8551 </out>
8552 <let>
8553 <var n="caseFirstWord"/>
8554 <lit v="aa"/>
8555 </let>
8556 </action>
8557 </rule>
8559 <rule comment="REGLA: ADJECTIU (queda com a GD i ND fins al interchunk)">
8560 <pattern>
8561 <pattern-item n="adj"/>
8562 </pattern>
8563 <action>
8564 <call-macro n="firstWord">
8565 <with-param pos="1"/>
8566 </call-macro>
8567 <call-macro n="comparatiu_adj1">
8568 <with-param pos="1"/>
8569 </call-macro>
8570 <out>
8571 <chunk name="adj" case="caseFirstWord">
8572 <tags>
8573 <tag><lit-tag v="SA"/></tag>
8574 <tag><lit-tag v="GD"/></tag>
8575 <tag><lit-tag v="ND"/></tag>
8576 </tags>
8577 <lu>
8578 <var n="adjectiu1"/>
8579 <clip pos="1" side="tl" part="lemh"/> <!-- BCN cua PPs-->
8580 <clip pos="1" side="tl" part="a_adj"/>
8581 <lit-tag v="2"/>
8582 <lit-tag v="3"/>
8583 <clip pos="1" side="tl" part="lemq"/> <!-- per a les possibles cues dels PPs -->
8584 </lu>
8585 </chunk>
8586 </out>
8587 <let>
8588 <var n="caseFirstWord"/>
8589 <lit v="aa"/>
8590 </let>
8591 </action>
8592 </rule>
8594 <rule comment="REGLA: ADJ TO INF (BCN: canviem la prep TO per DE; els adjectius que no compleixin la regla s'han de codificar al lèxic. Queda com a GD i ND fins al interchunk)">
8595 <pattern>
8596 <pattern-item n="adj2"/> <!-- BCN només volesm adjs 'reals' no PPs-->
8597 <pattern-item n="to"/>
8598 <pattern-item n="inf"/>
8599 </pattern>
8600 <action>
8601 <call-macro n="firstWord">
8602 <with-param pos="1"/>
8603 </call-macro>
8604 <call-macro n="comparatiu_adj1">
8605 <with-param pos="1"/>
8606 </call-macro>
8607 <call-macro n="tipus_verbs"> <!-- per tractar la cua en verbs multiparaula -->
8608 <with-param pos="3"/>
8609 </call-macro>
8611 <choose> <!-- la part del INF per a tractar la cua si enté-->
8612 <when>
8613 <test>
8614 <not>
8615 <or>
8616 <equal caseless="yes">
8617 <clip pos="3" side="sl" part="lem"/>
8618 <lit v="will"/>
8619 </equal>
8620 <equal caseless="yes">
8621 <clip pos="3" side="sl" part="lem"/>
8622 <lit v="shall"/>
8623 </equal>
8624 <equal caseless="yes">
8625 <clip pos="3" side="sl" part="lem"/>
8626 <lit v="would"/>
8627 </equal>
8628 </or>
8629 </not>
8630 </test>
8631 <choose>
8632 <when>
8633 <test>
8634 <equal>
8635 <var n="tipus_verb"/>
8636 <lit-tag v="pron"/>
8637 </equal>
8638 </test>
8639 <out>
8641 <chunk name="adj" case="caseFirstWord">
8642 <tags>
8643 <tag><lit-tag v="SA"/></tag>
8644 <tag><lit-tag v="GD"/></tag>
8645 <tag><lit-tag v="ND"/></tag>
8646 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
8647 </tags>
8648 <lu>
8649 <var n="adjectiu1"/>
8650 <clip pos="1" side="tl" part="lem"/>
8651 <clip pos="1" side="tl" part="a_adj"/>
8652 <lit-tag v="2"/>
8653 <lit-tag v="3"/>
8654 </lu>
8655 <b pos="1"/>
8656 <lu>
8657 <lit v="de"/>
8658 <lit-tag v="pr"/>
8659 </lu>
8660 <b pos="2"/>
8661 <mlu>
8662 <lu>
8663 <clip pos="3" side="tl" part="lemh"/>
8664 <clip pos="3" side="tl" part="a_verb"/>
8665 <clip pos="3" side="tl" part="temps" link-to="4"/>
8666 </lu>
8667 <lu>
8668 <lit v="es"/>
8669 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
8670 <clip pos="3" side="tl" part="lemq"/>
8671 </lu>
8672 </mlu>
8673 </chunk>
8674 </out>
8675 </when>
8676 <otherwise>
8677 <out>
8678 <chunk name="adj" case="caseFirstWord">
8679 <tags>
8680 <tag><lit-tag v="SA"/></tag>
8681 <tag><lit-tag v="GD"/></tag>
8682 <tag><lit-tag v="ND"/></tag>
8683 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
8684 </tags>
8685 <lu>
8686 <var n="adjectiu1"/>
8687 <clip pos="1" side="tl" part="lem"/>
8688 <clip pos="1" side="tl" part="a_adj"/>
8689 <lit-tag v="2"/>
8690 <lit-tag v="3"/>
8691 </lu>
8692 <b pos="1"/>
8693 <lu>
8694 <lit v="de"/>
8695 <lit-tag v="pr"/>
8696 </lu>
8697 <b pos="2"/>
8698 <lu>
8699 <clip pos="3" side="tl" part="lemh"/>
8700 <clip pos="3" side="tl" part="a_verb"/>
8701 <clip pos="3" side="tl" part="temps" link-to="4"/>
8702 <clip pos="3" side="tl" part="lemq"/>
8703 </lu>
8704 </chunk>
8705 </out>
8706 </otherwise>
8707 </choose>
8708 </when>
8709 </choose>
8711 <let>
8712 <var n="caseFirstWord"/>
8713 <lit v="aa"/>
8714 </let>
8715 </action>
8716 </rule>
8719 <rule comment="REGLA: ADJ TO INF PRNobj (BCN: canviem la prep TO per DE; els adjectius que no compleixin la regla s'han de codificar al lèxic. Queda com a GD i ND fins al interchunk)">
8720 <pattern>
8721 <pattern-item n="adj2"/> <!-- BCN només volesm adjs 'reals' no PPs-->
8722 <pattern-item n="to"/>
8723 <pattern-item n="inf"/>
8724 <pattern-item n="probj"/>
8725 </pattern>
8726 <action>
8727 <call-macro n="firstWord">
8728 <with-param pos="1"/>
8729 </call-macro>
8730 <call-macro n="comparatiu_adj1">
8731 <with-param pos="1"/>
8732 </call-macro>
8733 <call-macro n="tipus_verbs"> <!-- per tractar la cua en verbs multiparaula -->
8734 <with-param pos="3"/>
8735 </call-macro>
8737 <choose> <!-- la part del INF per a tractar la cua si enté-->
8738 <when>
8739 <test>
8740 <not>
8741 <or>
8742 <equal caseless="yes">
8743 <clip pos="3" side="sl" part="lem"/>
8744 <lit v="will"/>
8745 </equal>
8746 <equal caseless="yes">
8747 <clip pos="3" side="sl" part="lem"/>
8748 <lit v="shall"/>
8749 </equal>
8750 <equal caseless="yes">
8751 <clip pos="3" side="sl" part="lem"/>
8752 <lit v="would"/>
8753 </equal>
8754 </or>
8755 </not>
8756 </test>
8757 <choose>
8758 <when>
8759 <test>
8760 <equal>
8761 <var n="tipus_verb"/>
8762 <lit-tag v="pron"/>
8763 </equal>
8764 </test>
8765 <out>
8767 <chunk name="adj" case="caseFirstWord">
8768 <tags>
8769 <tag><lit-tag v="SA"/></tag>
8770 <tag><lit-tag v="GD"/></tag>
8771 <tag><lit-tag v="ND"/></tag>
8772 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
8773 </tags>
8774 <lu>
8775 <var n="adjectiu1"/>
8776 <clip pos="1" side="tl" part="lem"/>
8777 <clip pos="1" side="tl" part="a_adj"/>
8778 <lit-tag v="2"/>
8779 <lit-tag v="3"/>
8780 </lu>
8781 <b pos="1"/>
8782 <lu>
8783 <lit v="de"/>
8784 <lit-tag v="pr"/>
8785 </lu>
8786 <b pos="2"/>
8787 <mlu>
8788 <lu>
8789 <clip pos="3" side="tl" part="lemh"/>
8790 <clip pos="3" side="tl" part="a_verb"/>
8791 <clip pos="3" side="tl" part="temps" link-to="4"/>
8792 </lu>
8793 <lu>
8794 <lit v="es"/>
8795 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
8796 </lu>
8797 <lu>
8798 <clip pos="4" side="tl" part="lem"/>
8799 <lit-tag v="prn.enc"/>
8800 <clip pos="4" side="tl" part="pers"/>
8801 <clip pos="4" side="tl" part="gen"/>
8802 <clip pos="4" side="tl" part="nbr"/>
8803 <clip pos="3" side="tl" part="lemq"/>
8804 </lu>
8805 </mlu>
8806 </chunk>
8807 </out>
8808 </when>
8809 <otherwise>
8810 <out>
8811 <chunk name="adj" case="caseFirstWord">
8812 <tags>
8813 <tag><lit-tag v="SA"/></tag>
8814 <tag><lit-tag v="GD"/></tag>
8815 <tag><lit-tag v="ND"/></tag>
8816 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
8817 </tags>
8818 <lu>
8819 <var n="adjectiu1"/>
8820 <clip pos="1" side="tl" part="lem"/>
8821 <clip pos="1" side="tl" part="a_adj"/>
8822 <lit-tag v="2"/>
8823 <lit-tag v="3"/>
8824 </lu>
8825 <b pos="1"/>
8826 <lu>
8827 <lit v="de"/>
8828 <lit-tag v="pr"/>
8829 </lu>
8830 <b pos="2"/>
8831 <mlu>
8832 <lu>
8833 <clip pos="3" side="tl" part="lemh"/>
8834 <clip pos="3" side="tl" part="a_verb"/>
8835 <clip pos="3" side="tl" part="temps" link-to="4"/>
8836 </lu>
8837 <lu>
8838 <clip pos="4" side="tl" part="lem"/>
8839 <lit-tag v="prn.enc"/>
8840 <clip pos="4" side="tl" part="pers"/>
8841 <clip pos="4" side="tl" part="gen"/>
8842 <clip pos="4" side="tl" part="nbr"/>
8843 <clip pos="3" side="tl" part="lemq"/>
8844 </lu>
8845 </mlu>
8846 </chunk>
8847 </out>
8848 </otherwise>
8849 </choose>
8850 </when>
8851 </choose>
8852 <call-macro n="f_bcond">
8853 <with-param pos="3"/>
8854 </call-macro>
8855 <let>
8856 <var n="caseFirstWord"/>
8857 <lit v="aa"/>
8858 </let>
8859 </action>
8860 </rule>
8863 <rule comment="REGLA: ADV ADJ TO INF (BCN: canviem la prep TO per DE; els adjectius que no compleixin la regla s'han de codificar al lèxic. Queda com a GD i ND fins al interchunk)">
8864 <pattern>
8865 <pattern-item n="adv_preadv"/>
8866 <pattern-item n="adj2"/> <!-- BCN només volem adjs 'reals' no PPs-->
8867 <pattern-item n="to"/>
8868 <pattern-item n="inf"/>
8869 </pattern>
8870 <action>
8871 <call-macro n="firstWord">
8872 <with-param pos="1"/>
8873 </call-macro>
8874 <call-macro n="comparatiu_adj1">
8875 <with-param pos="1"/>
8876 </call-macro>
8877 <call-macro n="tipus_verbs"> <!-- per tractar la cua en verbs multiparaula -->
8878 <with-param pos="4"/>
8879 </call-macro>
8881 <choose> <!-- la part del INF per a tractar la cua si enté-->
8882 <when>
8883 <test>
8884 <not>
8885 <or>
8886 <equal caseless="yes">
8887 <clip pos="4" side="sl" part="lem"/>
8888 <lit v="will"/>
8889 </equal>
8890 <equal caseless="yes">
8891 <clip pos="4" side="sl" part="lem"/>
8892 <lit v="shall"/>
8893 </equal>
8894 <equal caseless="yes">
8895 <clip pos="4" side="sl" part="lem"/>
8896 <lit v="would"/>
8897 </equal>
8898 </or>
8899 </not>
8900 </test>
8901 <choose>
8902 <when>
8903 <test>
8904 <equal>
8905 <var n="tipus_verb"/>
8906 <lit-tag v="pron"/>
8907 </equal>
8908 </test>
8909 <out>
8911 <chunk name="adj" case="caseFirstWord">
8912 <tags>
8913 <tag><lit-tag v="SA"/></tag>
8914 <tag><lit-tag v="GD"/></tag>
8915 <tag><lit-tag v="ND"/></tag>
8916 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
8917 </tags>
8918 <lu>
8919 <clip pos="1" side="tl" part="whole"/>
8920 </lu>
8921 <b pos="1"/>
8922 <lu>
8923 <var n="adjectiu1"/>
8924 <clip pos="2" side="tl" part="lem"/>
8925 <clip pos="2" side="tl" part="a_adj"/>
8926 <lit-tag v="2"/>
8927 <lit-tag v="3"/>
8928 </lu>
8929 <b pos="2"/>
8930 <lu>
8931 <lit v="de"/>
8932 <lit-tag v="pr"/>
8933 </lu>
8934 <b pos="3"/>
8936 <mlu>
8937 <lu>
8938 <clip pos="4" side="tl" part="lemh"/>
8939 <clip pos="4" side="tl" part="a_verb"/>
8940 <clip pos="4" side="tl" part="temps" link-to="4"/>
8942 </lu>
8943 <lu>
8944 <lit v="es"/>
8945 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
8946 <clip pos="4" side="tl" part="lemq"/>
8947 </lu>
8948 </mlu>
8949 </chunk>
8950 </out>
8951 </when>
8952 <otherwise>
8953 <out>
8954 <chunk name="adj" case="caseFirstWord">
8955 <tags>
8956 <tag><lit-tag v="SA"/></tag>
8957 <tag><lit-tag v="GD"/></tag>
8958 <tag><lit-tag v="ND"/></tag>
8959 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
8960 </tags>
8961 <lu>
8962 <clip pos="1" side="tl" part="whole"/>
8963 </lu>
8964 <b pos="1"/>
8965 <lu>
8966 <var n="adjectiu1"/>
8967 <clip pos="2" side="tl" part="lem"/>
8968 <clip pos="2" side="tl" part="a_adj"/>
8969 <lit-tag v="2"/>
8970 <lit-tag v="3"/>
8971 </lu>
8972 <b pos="2"/>
8973 <lu>
8974 <lit v="de"/>
8975 <lit-tag v="pr"/>
8976 </lu>
8977 <b pos="3"/>
8978 <lu>
8979 <clip pos="4" side="tl" part="lemh"/>
8980 <clip pos="4" side="tl" part="a_verb"/>
8981 <clip pos="4" side="tl" part="temps" link-to="4"/>
8982 <clip pos="4" side="tl" part="lemq"/>
8983 </lu>
8984 </chunk>
8985 </out>
8986 </otherwise>
8987 </choose>
8988 </when>
8989 </choose>
8991 <let>
8992 <var n="caseFirstWord"/>
8993 <lit v="aa"/>
8994 </let>
8995 </action>
8996 </rule>
8999 <rule comment="REGLA: ADV ADJ TO INF (BCN: canviem la prep TO per DE; els adjectius que no compleixin la regla s'han de codificar al lèxic. Queda com a GD i ND fins al interchunk)">
9000 <pattern>
9001 <pattern-item n="adv_preadv"/>
9002 <pattern-item n="adj2"/> <!-- BCN només volem adjs 'reals' no PPs-->
9003 <pattern-item n="to"/>
9004 <pattern-item n="inf"/>
9005 <pattern-item n="probj"/>
9006 </pattern>
9007 <action>
9008 <call-macro n="firstWord">
9009 <with-param pos="1"/>
9010 </call-macro>
9011 <call-macro n="comparatiu_adj1">
9012 <with-param pos="1"/>
9013 </call-macro>
9014 <call-macro n="tipus_verbs"> <!-- per tractar la cua en verbs multiparaula -->
9015 <with-param pos="4"/>
9016 </call-macro>
9018 <choose> <!-- la part del INF per a tractar la cua si enté-->
9019 <when>
9020 <test>
9021 <not>
9022 <or>
9023 <equal caseless="yes">
9024 <clip pos="4" side="sl" part="lem"/>
9025 <lit v="will"/>
9026 </equal>
9027 <equal caseless="yes">
9028 <clip pos="4" side="sl" part="lem"/>
9029 <lit v="shall"/>
9030 </equal>
9031 <equal caseless="yes">
9032 <clip pos="4" side="sl" part="lem"/>
9033 <lit v="would"/>
9034 </equal>
9035 </or>
9036 </not>
9037 </test>
9038 <choose>
9039 <when>
9040 <test>
9041 <equal>
9042 <var n="tipus_verb"/>
9043 <lit-tag v="pron"/>
9044 </equal>
9045 </test>
9046 <out>
9048 <chunk name="adj" case="caseFirstWord">
9049 <tags>
9050 <tag><lit-tag v="SA"/></tag>
9051 <tag><lit-tag v="GD"/></tag>
9052 <tag><lit-tag v="ND"/></tag>
9053 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
9054 </tags>
9055 <lu>
9056 <clip pos="1" side="tl" part="whole"/>
9057 </lu>
9058 <b pos="1"/>
9059 <lu>
9060 <var n="adjectiu1"/>
9061 <clip pos="2" side="tl" part="lem"/>
9062 <clip pos="2" side="tl" part="a_adj"/>
9063 <lit-tag v="2"/>
9064 <lit-tag v="3"/>
9065 </lu>
9066 <b pos="2"/>
9067 <lu>
9068 <lit v="de"/>
9069 <lit-tag v="pr"/>
9070 </lu>
9071 <b pos="3"/>
9072 <mlu>
9073 <lu>
9074 <clip pos="4" side="tl" part="lemh"/>
9075 <clip pos="4" side="tl" part="a_verb"/>
9076 <clip pos="4" side="tl" part="temps" link-to="4"/>
9077 </lu>
9078 <lu>
9079 <lit v="es"/>
9080 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
9081 </lu>
9082 <lu>
9083 <clip pos="5" side="tl" part="lem"/>
9084 <lit-tag v="prn.enc"/>
9085 <clip pos="5" side="tl" part="pers"/>
9086 <clip pos="5" side="tl" part="gen"/>
9087 <clip pos="5" side="tl" part="nbr"/>
9088 <clip pos="4" side="tl" part="lemq"/>
9089 </lu>
9090 </mlu>
9091 </chunk>
9092 </out>
9093 </when>
9094 <otherwise>
9095 <out>
9096 <chunk name="adj" case="caseFirstWord">
9097 <tags>
9098 <tag><lit-tag v="SA"/></tag>
9099 <tag><lit-tag v="GD"/></tag>
9100 <tag><lit-tag v="ND"/></tag>
9101 <tag><lit-tag v="inf"/></tag> <!-- posat a mà-->
9102 </tags>
9103 <lu>
9104 <clip pos="1" side="tl" part="whole"/>
9105 </lu>
9106 <b pos="1"/>
9107 <lu>
9108 <var n="adjectiu1"/>
9109 <clip pos="2" side="tl" part="lem"/>
9110 <clip pos="2" side="tl" part="a_adj"/>
9111 <lit-tag v="2"/>
9112 <lit-tag v="3"/>
9113 </lu>
9114 <b pos="2"/>
9115 <lu>
9116 <lit v="de"/>
9117 <lit-tag v="pr"/>
9118 </lu>
9119 <b pos="3"/>
9120 <mlu>
9121 <lu>
9122 <clip pos="4" side="tl" part="lemh"/>
9123 <clip pos="4" side="tl" part="a_verb"/>
9124 <clip pos="4" side="tl" part="temps" link-to="4"/>
9125 </lu>
9126 <lu>
9127 <clip pos="5" side="tl" part="lem"/>
9128 <lit-tag v="prn.enc"/>
9129 <clip pos="5" side="tl" part="pers"/>
9130 <clip pos="5" side="tl" part="gen"/>
9131 <clip pos="5" side="tl" part="nbr"/>
9132 <clip pos="4" side="tl" part="lemq"/>
9133 </lu>
9134 </mlu>
9135 </chunk>
9136 </out>
9137 </otherwise>
9138 </choose>
9139 </when>
9140 </choose>
9141 <call-macro n="f_bcond">
9142 <with-param pos="4"/>
9143 </call-macro>
9144 <let>
9145 <var n="caseFirstWord"/>
9146 <lit v="aa"/>
9147 </let>
9148 </action>
9149 </rule>
9152 <rule comment="REGLA: PREADV ADJECTIU ('very difficult'; queda com a GD i ND fins al interchunk)">
9153 <pattern>
9154 <pattern-item n="adv_preadv"/><!--BCN -->
9155 <pattern-item n="adj"/>
9156 </pattern>
9157 <action>
9158 <call-macro n="firstWord">
9159 <with-param pos="1"/>
9160 </call-macro>
9161 <call-macro n="comparatiu_adj1">
9162 <with-param pos="2"/>
9163 </call-macro>
9164 <out>
9165 <chunk name="adj" case="caseFirstWord">
9166 <tags>
9167 <tag><lit-tag v="SA"/></tag>
9168 <tag><lit-tag v="GD"/></tag>
9169 <tag><lit-tag v="ND"/></tag>
9170 </tags>
9171 <lu>
9172 <clip pos="1" side="tl" part="whole"/>
9173 </lu>
9174 <b pos="1"/>
9175 <lu>
9176 <var n="adjectiu1"/>
9177 <clip pos="2" side="tl" part="lemh"/>
9178 <clip pos="2" side="tl" part="a_adj"/>
9179 <lit-tag v="2"/>
9180 <lit-tag v="3"/>
9181 <clip pos="2" side="tl" part="lemq"/>
9182 </lu>
9183 </chunk>
9184 </out>
9185 <let>
9186 <var n="caseFirstWord"/>
9187 <lit v="aa"/>
9188 </let>
9189 </action>
9190 </rule>
9193 <rule comment="REGLA: NPLOC-PP (London-based)">
9194 <pattern>
9195 <pattern-item n="nploc"/>
9196 <pattern-item n="guio"/>
9197 <pattern-item n="pp"/>
9198 </pattern>
9199 <action>
9200 <call-macro n="firstWord">
9201 <with-param pos="1"/>
9202 </call-macro>
9203 <out>
9204 <chunk name="np_pp" case="caseFirstWord">
9205 <tags>
9206 <tag><lit-tag v="SA"/></tag>
9207 <tag><lit-tag v="GD"/></tag>
9208 <tag><lit-tag v="ND"/></tag>
9209 </tags>
9210 <lu>
9211 <clip pos="3" side="tl" part="lemh"/>
9212 <clip pos="3" side="tl" part="a_adj"/>
9213 <lit-tag v="2"/>
9214 <lit-tag v="3"/>
9215 </lu>
9216 <b/>
9217 <lu>
9218 <lit v="a"/>
9219 <lit-tag v="pr"/>
9220 </lu>
9221 <b/>
9222 <lu>
9223 <clip pos="1" side="tl" part="whole"/>
9224 </lu>
9225 </chunk>
9226 </out>
9227 <let>
9228 <var n="caseFirstWord"/>
9229 <lit v="aa"/>
9230 </let>
9231 </action>
9232 </rule>
9235 <rule comment="REGLA: NPLOC-PP (London-based)">
9236 <pattern>
9237 <pattern-item n="det"/>
9238 <pattern-item n="nploc"/>
9239 <pattern-item n="guio"/>
9240 <pattern-item n="pp"/>
9241 </pattern>
9242 <action>
9243 <call-macro n="firstWord">
9244 <with-param pos="1"/>
9245 </call-macro>
9246 <choose>
9247 <when>
9248 <test>
9249 <not>
9250 <or>
9251 <equal>
9252 <clip pos="1" side="tl" part="nbr"/>
9253 <lit-tag v="sg"/>
9254 </equal>
9255 <equal>
9256 <clip pos="1" side="tl" part="nbr"/>
9257 <lit-tag v="pl"/>
9258 </equal>
9259 </or>
9260 </not>
9261 </test>
9262 <let>
9263 <clip pos="1" side="tl" part="nbr"/>
9264 <lit-tag v="ND"/>
9265 </let>
9266 </when>
9267 </choose>
9268 <out>
9269 <chunk name="det" case="caseFirstWord">
9270 <tags>
9271 <tag><lit-tag v="DET"/></tag>
9272 <tag><lit-tag v="GD"/></tag>
9273 <tag><clip pos="1" side="tl" part="nbr"/></tag>
9274 </tags>
9275 <lu>
9276 <clip pos="1" side="tl" part="lem"/>
9277 <clip pos="1" side="tl" part="a_det"/>
9278 <lit-tag v="2"/>
9279 <lit-tag v="3"/>
9280 </lu>
9281 </chunk>
9282 <b pos="1"/>
9283 <chunk name="np_pp">
9284 <tags>
9285 <tag><lit-tag v="SA"/></tag>
9286 <tag><lit-tag v="GD"/></tag>
9287 <tag><lit-tag v="ND"/></tag>
9288 </tags>
9289 <lu>
9290 <clip pos="4" side="tl" part="lemh"/>
9291 <clip pos="4" side="tl" part="a_adj"/>
9292 <lit-tag v="2"/>
9293 <lit-tag v="3"/>
9294 </lu>
9295 <b/>
9296 <lu>
9297 <lit v="a"/>
9298 <lit-tag v="pr"/>
9299 </lu>
9300 <b/>
9301 <lu>
9302 <clip pos="2" side="tl" part="whole"/>
9303 </lu>
9304 </chunk>
9305 </out>
9306 <let>
9307 <var n="caseFirstWord"/>
9308 <lit v="aa"/>
9309 </let>
9310 </action>
9311 </rule>
9317 <rule comment="REGLA: PRONOM">
9318 <pattern>
9319 <pattern-item n="prnsubj"/>
9320 </pattern>
9321 <action>
9322 <call-macro n="firstWord">
9323 <with-param pos="1"/>
9324 </call-macro>
9325 <choose>
9326 <when>
9327 <test>
9328 <not>
9329 <equal caseless="yes">
9330 <clip pos="1" side="sl" part="lem"/>
9331 <lit v="prpers"/>
9332 </equal>
9333 </not>
9334 </test>
9335 <let>
9336 <var n="lema"/>
9337 <lit v="prnsubj2"/><!--lemes 'we all' etc, són subjectes però no desapareixen en el t2x. -->
9338 </let>
9339 </when>
9340 <otherwise>
9341 <let>
9342 <var n="lema"/>
9343 <lit v="prnsubj"/>
9344 </let>
9345 </otherwise>
9346 </choose>
9348 <out>
9349 <chunk namefrom="lema" case="caseFirstWord">
9350 <tags>
9351 <tag><lit-tag v="SN"/></tag>
9352 <tag><clip pos="1" side="tl" part="tipus_prn"/></tag>
9353 <tag><clip pos="1" side="tl" part="pers"/></tag>
9354 <tag><clip pos="1" side="tl" part="gen"/></tag>
9355 <tag><clip pos="1" side="tl" part="nbr"/></tag>
9356 </tags>
9357 <lu>
9358 <clip pos="1" side="tl" part="lem"/>
9359 <clip pos="1" side="tl" part="a_prn"/>
9360 <clip pos="1" side="tl" part="tipus_prn" link-to="2"/>
9361 <clip pos="1" side="tl" part="pers"/>
9362 <clip pos="1" side="tl" part="gen"/>
9363 <clip pos="1" side="tl" part="nbr"/>
9364 </lu>
9365 </chunk>
9366 </out>
9367 <let>
9368 <var n="caseFirstWord"/>
9369 <lit v="aa"/>
9370 </let>
9371 </action>
9372 </rule>
9378 <rule comment="REGLA: DET NUM (per quan va davant de desconegudes, almenys que concordin entre ells) - The two xxx : els dos xxx">
9379 <pattern>
9380 <pattern-item n="det"/>
9381 <pattern-item n="num"/>
9382 </pattern>
9383 <action>
9385 <choose>
9386 <when>
9387 <test><!--MG: atenció, aquí amb la modificació de link-to, es podrien ajuntar els 2 chunks en un de sol. pendent. -->
9388 <equal>
9389 <clip pos="2" side="tl" part="gen"/>
9390 <lit-tag v="GD"/>
9391 </equal>
9392 </test>
9393 <out>
9394 <chunk name="det_num" case="caseFirstWord">
9395 <tags>
9396 <tag><lit-tag v="SN.DET"/></tag>
9397 <tag><lit-tag v="GD"/></tag>
9398 <tag><lit-tag v="ND"/></tag>
9399 </tags>
9400 <lu>
9401 <clip pos="1" side="tl" part="lem"/>
9402 <clip pos="1" side="tl" part="a_det"/>
9403 <lit-tag v="3"/>
9404 <lit-tag v="4"/>
9405 </lu>
9406 <b pos="1"/>
9407 <lu>
9408 <clip pos="2" side="tl" part="lemh"/>
9409 <clip pos="2" side="tl" part="a_num"/>
9410 <lit-tag v="3"/>
9411 <clip pos="2" side="tl" part="nbr"/>
9412 </lu>
9413 </chunk>
9414 </out>
9415 </when>
9416 <otherwise>
9417 <out>
9418 <chunk name="det_num" case="caseFirstWord">
9419 <tags>
9420 <tag><lit-tag v="SN.DET"/></tag>
9421 <tag><lit-tag v="GD"/></tag>
9422 <tag><lit-tag v="ND"/></tag>
9423 </tags>
9424 <lu>
9425 <clip pos="1" side="tl" part="lem"/>
9426 <clip pos="1" side="tl" part="a_det"/>
9427 <lit-tag v="3"/>
9428 <lit-tag v="4"/>
9429 </lu>
9430 <b pos="1"/>
9431 <lu>
9432 <clip pos="2" side="tl" part="lemh"/>
9433 <clip pos="2" side="tl" part="a_num"/>
9434 <clip pos="2" side="tl" part="gen"/>
9435 <clip pos="2" side="tl" part="nbr"/>
9436 </lu>
9437 </chunk>
9438 </out>
9439 </otherwise>
9440 </choose>
9441 <let>
9442 <var n="caseFirstWord"/>
9443 <lit v="aa"/>
9444 </let>
9445 </action>
9446 </rule>
9449 <rule comment="REGLA: PREPOSICIÓ PRONOM_OBJECTE : with him - amb ell" >
9450 <pattern>
9451 <pattern-item n="prep"/>
9452 <pattern-item n="probj"/>
9453 </pattern>
9454 <action>
9455 <choose>
9456 <when>
9457 <test>
9458 <and>
9459 <equal>
9460 <clip pos="2" side="sl" part="pers"/>
9461 <lit-tag v="p3"/>
9462 </equal>
9463 <equal>
9464 <clip pos="2" side="sl" part="nbr"/>
9465 <lit-tag v="pl"/>
9466 </equal>
9467 </and>
9468 </test>
9469 <let>
9470 <clip pos="2" side="tl" part="gen"/>
9471 <lit-tag v="m"/><!--with them : amb ells (i no elles)-->
9472 </let>
9473 </when>
9474 <when>
9475 <test>
9476 <and>
9477 <equal>
9478 <clip pos="2" side="sl" part="pers"/>
9479 <lit-tag v="p3"/>
9480 </equal>
9481 <equal>
9482 <clip pos="2" side="sl" part="nbr"/>
9483 <lit-tag v="sg"/>
9484 </equal>
9485 </and>
9486 </test>
9487 <let>
9488 <clip pos="2" side="tl" part="gen"/>
9489 <clip pos="2" side="sl" part="gen"/>
9490 </let><!--with her/him : pq la traducció del pron obj 3a sg és 'mf' en català (li), cal canviar a 'm' o 'f' per al pronom tònic (ell/ella) -->
9491 </when>
9492 <when>
9493 <test>
9494 <and>
9495 <equal>
9496 <clip pos="2" side="sl" part="pers"/>
9497 <lit-tag v="p1"/>
9498 </equal>
9499 <equal>
9500 <clip pos="2" side="sl" part="nbr"/>
9501 <lit-tag v="sg"/>
9502 </equal>
9503 </and>
9504 </test>
9505 <let>
9506 <clip pos="2" side="tl" part="lem"/>
9507 <lit v="mi"/>
9508 </let>
9509 </when>
9510 </choose>
9511 <out>
9512 <chunk name="pr" case="caseFirstWord">
9513 <tags>
9514 <tag><lit-tag v="PREP"/></tag>
9515 </tags>
9516 <lu>
9517 <clip pos="1" side="tl" part="whole"/>
9518 </lu>
9519 </chunk>
9520 <b pos="1"/>
9521 <chunk name="probj" case="caseFirstWord">
9522 <tags>
9523 <tag><lit-tag v="SN"/></tag>
9524 <tag><lit-tag v="tn"/></tag>
9525 <tag><clip pos="2" side="tl" part="pers"/></tag>
9526 <tag><clip pos="2" side="tl" part="gen"/></tag>
9527 <tag><clip pos="2" side="tl" part="nbr"/></tag>
9528 </tags>
9529 <lu>
9530 <clip pos="2" side="tl" part="lem"/>
9531 <lit-tag v="prn"/>
9532 <lit-tag v="2"/>
9533 <clip pos="2" side="tl" part="pers"/>
9534 <clip pos="2" side="tl" part="gen" link-to="4"/>
9535 <clip pos="2" side="tl" part="nbr" link-to="5"/>
9536 </lu>
9537 </chunk>
9538 </out>
9539 <let>
9540 <var n="caseFirstWord"/>
9541 <lit v="aa"/>
9542 </let>
9543 </action>
9544 </rule>
9551 <!--********************************* REGLES DE SV ***************************************************** -->
9555 <rule comment="REGLA: VERB copulatiu PP (BCN el verb 'ser' del passat agafa la forma perifràstica">
9556 <pattern>
9557 <pattern-item n="copulatiu"/>
9558 <pattern-item n="pp"/>
9559 </pattern>
9560 <action>
9561 <call-macro n="firstWord">
9562 <with-param pos="1"/>
9563 </call-macro>
9564 <let>
9565 <var n="lema"/>
9566 <clip pos="1" side="sl" part="lem"/>
9567 </let>
9568 <choose>
9569 <when>
9570 <test>
9571 <and>
9572 <equal>
9573 <clip pos="1" side="sl" part="temps"/>
9574 <lit-tag v="past"/>
9575 </equal>
9576 <equal>
9577 <clip pos="1" side="sl" part="nbr"/>
9578 <lit v=""/>
9579 </equal>
9580 </and>
9581 </test>
9582 <out>
9583 <chunk namefrom="lema" case="caseFirstWord">
9584 <tags>
9585 <tag><lit-tag v="Vcop"/></tag>
9586 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
9587 <tag><lit-tag v="ifip"/></tag>
9588 <tag><lit-tag v="PD"/></tag>
9589 <tag><lit-tag v="ND"/></tag>
9590 </tags>
9591 <lu>
9592 <lit v="anar"/>
9593 <lit-tag v="vaux"/>
9594 <lit-tag v="4"/>
9595 <lit-tag v="5"/>
9596 </lu>
9597 <b/>
9598 <lu>
9599 <clip pos="1" side="tl" part="lemh"/>
9600 <clip pos="1" side="tl" part="a_verb"/>
9601 <lit-tag v="inf"/>
9602 <clip pos="1" side="tl" part="lemq"/>
9603 </lu>
9604 </chunk>
9605 </out>
9606 </when>
9608 <when>
9609 <test>
9610 <equal>
9611 <clip pos="1" side="sl" part="temps"/>
9612 <lit-tag v="pres"/>
9613 </equal>
9614 </test>
9615 <let>
9616 <clip pos="1" side="tl" part="temps"/>
9617 <lit-tag v="pri"/>
9618 </let>
9619 <out>
9620 <chunk namefrom="lema" case="caseFirstWord">
9621 <tags>
9622 <tag><lit-tag v="Vcop"/></tag>
9623 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
9624 <tag><clip pos="1" side="tl" part="temps"/></tag>
9625 <tag><lit-tag v="PD"/></tag>
9626 <tag><lit-tag v="ND"/></tag>
9627 </tags>
9628 <lu>
9629 <clip pos="1" side="tl" part="lemh"/>
9630 <clip pos="1" side="tl" part="a_verb"/>
9631 <clip pos="1" side="tl" part="temps" link-to="3"/>
9632 <lit-tag v="4"/>
9633 <lit-tag v="5"/>
9634 <clip pos="1" side="tl" part="lemq"/>
9635 </lu>
9636 </chunk>
9637 </out>
9638 </when>
9640 <when>
9641 <test>
9642 <equal>
9643 <clip pos="1" side="sl" part="temps"/>
9644 <lit-tag v="pri"/>
9645 </equal>
9646 </test>
9647 <out>
9648 <chunk namefrom="lema" case="caseFirstWord">
9649 <tags>
9650 <tag><lit-tag v="Vcop"/></tag>
9651 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
9652 <tag><clip pos="1" side="tl" part="temps"/></tag>
9653 <tag><clip pos="1" side="tl" part="pers"/></tag>
9654 <tag><clip pos="1" side="tl" part="nbr"/></tag>
9655 </tags>
9656 <lu>
9657 <clip pos="1" side="tl" part="lemh"/>
9658 <clip pos="1" side="tl" part="a_verb"/>
9659 <clip pos="1" side="tl" part="temps" link-to="3"/>
9660 <clip pos="1" side="tl" part="pers" link-to="4"/>
9661 <clip pos="1" side="tl" part="nbr" link-to="5"/>
9662 <clip pos="1" side="tl" part="lemq"/>
9663 </lu>
9664 </chunk>
9665 </out>
9666 </when>
9668 <when>
9669 <test>
9670 <and>
9671 <equal>
9672 <clip pos="1" side="sl" part="temps"/>
9673 <lit-tag v="past"/>
9674 </equal>
9675 <equal>
9676 <clip pos="1" side="sl" part="nbr"/>
9677 <lit-tag v="sg"/>
9678 </equal>
9679 </and>
9680 </test>
9681 <let>
9682 <clip pos="1" side="tl" part="pers"/>
9683 <lit-tag v="PD"/>
9684 </let>
9685 <out>
9686 <chunk namefrom="lema" case="caseFirstWord">
9687 <tags>
9688 <tag><lit-tag v="Vcop"/></tag>
9689 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
9690 <tag><lit-tag v="ifip"/></tag>
9691 <tag><clip pos="1" side="tl" part="pers"/></tag>
9692 <tag><clip pos="1" side="tl" part="nbr"/></tag>
9693 </tags>
9694 <lu>
9695 <lit v="anar"/>
9696 <lit-tag v="vaux"/>
9697 <clip pos="1" side="tl" part="pers" link-to="4"/>
9698 <clip pos="1" side="tl" part="nbr" link-to="5"/>
9699 </lu>
9700 <b/>
9701 <lu>
9702 <clip pos="1" side="tl" part="lemh"/>
9703 <clip pos="1" side="tl" part="a_verb"/>
9704 <lit-tag v="inf"/>
9705 <clip pos="1" side="tl" part="lemq"/>
9706 </lu>
9707 </chunk>
9708 </out>
9709 </when>
9710 </choose>
9711 <!-- part del Participi-->
9712 <out>
9713 <b pos="1"/>
9714 <chunk name="pp" case="caseFirstWord">
9715 <tags>
9716 <tag><lit-tag v="SA"/></tag>
9717 <tag><lit-tag v="GD"/></tag>
9718 <tag><lit-tag v="ND"/></tag>
9719 </tags>
9720 <lu>
9721 <clip pos="2" side="tl" part="lemh"/>
9722 <clip pos="2" side="tl" part="a_pp"/>
9723 <lit-tag v="2"/>
9724 <lit-tag v="3"/>
9725 <clip pos="2" side="tl" part="lemq"/><!--deixem treure la cua ja que es cola algun pp (quan hi ha un pp de verb mltiparaula s'ha d'entra l'adjectiu, pero pot ser que el tagger doni el pp-->
9726 </lu>
9727 </chunk>
9728 </out>
9731 <!-- fi de la part del participi -->
9732 <let>
9733 <var n="caseFirstWord"/>
9734 <lit v="aa"/>
9735 </let>
9736 </action>
9737 </rule>
9742 <rule comment="REGLA: VERB copulatiu">
9743 <pattern>
9744 <pattern-item n="copulatiu"/>
9745 </pattern>
9746 <action>
9747 <call-macro n="firstWord">
9748 <with-param pos="1"/>
9749 </call-macro>
9750 <let>
9751 <var n="lema"/>
9752 <clip pos="1" side="sl" part="lem"/>
9753 </let>
9754 <choose>
9755 <!-- <when> (BCN el passat pren la forma sintètica)
9756 <test>
9757 <and>
9758 <equal>
9759 <clip pos="1" side="sl" part="temps"/>
9760 <lit-tag v="past"/>
9761 </equal>
9762 <equal>
9763 <clip pos="1" side="sl" part="nbr"/>
9764 <lit v=""/>
9765 </equal>
9766 </and>
9767 </test>
9768 <out>
9769 <chunk namefrom="lema" case="caseFirstWord">
9770 <tags>
9771 <tag><lit-tag v="Vcop"/></tag>
9772 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
9773 <tag><lit-tag v="ifip"/></tag>
9774 <tag><lit-tag v="PD"/></tag>
9775 <tag><lit-tag v="ND"/></tag>
9776 </tags>
9777 <lu>
9778 <lit v="anar"/>
9779 <lit-tag v="vaux"/>
9780 <clip pos="1" side="tl" part="pers" link-to="4"/>
9781 <clip pos="1" side="tl" part="nbr" link-to="5"/>
9782 </lu>
9783 <b/>
9784 <lu>
9785 <clip pos="1" side="tl" part="lemh"/>
9786 <clip pos="1" side="tl" part="a_verb"/>
9787 <lit-tag v="inf"/>
9788 <clip pos="1" side="tl" part="lemq"/>
9789 </lu>
9790 </chunk>
9791 </out>
9792 </when>-->
9793 <when> <!--BCN forma sintètica del passat-->
9794 <test>
9795 <equal>
9796 <clip pos="1" side="sl" part="temps"/>
9797 <lit-tag v="past"/>
9798 </equal>
9799 </test>
9800 <let>
9801 <clip pos="1" side="tl" part="temps"/>
9802 <lit-tag v="pii"/>
9803 </let>
9804 <out>
9805 <chunk namefrom="lema" case="caseFirstWord">
9806 <tags>
9807 <tag><lit-tag v="Vcop"/></tag>
9808 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
9809 <tag><clip pos="1" side="tl" part="temps"/></tag>
9810 <tag><lit-tag v="PD"/></tag>
9811 <tag><lit-tag v="ND"/></tag>
9812 </tags>
9813 <lu>
9814 <clip pos="1" side="tl" part="lemh"/>
9815 <clip pos="1" side="tl" part="a_verb"/>
9816 <clip pos="1" side="tl" part="temps" link-to="3"/>
9817 <lit-tag v="4"/>
9818 <lit-tag v="5"/>
9819 <clip pos="1" side="tl" part="lemq"/>
9820 </lu>
9821 </chunk>
9822 </out>
9823 </when>
9825 <when>
9826 <test>
9827 <equal>
9828 <clip pos="1" side="sl" part="temps"/>
9829 <lit-tag v="pres"/>
9830 </equal>
9831 </test>
9832 <let>
9833 <clip pos="1" side="tl" part="temps"/>
9834 <lit-tag v="pri"/>
9835 </let>
9836 <out>
9837 <chunk namefrom="lema" case="caseFirstWord">
9838 <tags>
9839 <tag><lit-tag v="Vcop"/></tag>
9840 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
9841 <tag><clip pos="1" side="tl" part="temps"/></tag>
9842 <tag><lit-tag v="PD"/></tag>
9843 <tag><lit-tag v="ND"/></tag>
9844 </tags>
9845 <lu>
9846 <clip pos="1" side="tl" part="lemh"/>
9847 <clip pos="1" side="tl" part="a_verb"/>
9848 <clip pos="1" side="tl" part="temps" link-to="3"/>
9849 <lit-tag v="4"/>
9850 <lit-tag v="5"/>
9851 <clip pos="1" side="tl" part="lemq"/>
9852 </lu>
9853 </chunk>
9854 </out>
9855 </when>
9857 <when>
9858 <test>
9859 <equal>
9860 <clip pos="1" side="sl" part="temps"/>
9861 <lit-tag v="pri"/>
9862 </equal>
9863 </test>
9864 <out>
9865 <chunk namefrom="lema" case="caseFirstWord">
9866 <tags>
9867 <tag><lit-tag v="Vcop"/></tag>
9868 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
9869 <tag><clip pos="1" side="tl" part="temps"/></tag>
9870 <tag><clip pos="1" side="tl" part="pers"/></tag>
9871 <tag><clip pos="1" side="tl" part="nbr"/></tag>
9872 </tags>
9873 <lu>
9874 <clip pos="1" side="tl" part="lemh"/>
9875 <clip pos="1" side="tl" part="a_verb"/>
9876 <clip pos="1" side="tl" part="temps" link-to="3"/>
9877 <clip pos="1" side="tl" part="pers" link-to="4"/>
9878 <clip pos="1" side="tl" part="nbr" link-to="5"/>
9879 <clip pos="1" side="tl" part="lemq"/>
9880 </lu>
9881 </chunk>
9882 </out>
9883 </when>
9885 <when>
9886 <test>
9887 <and>
9888 <equal>
9889 <clip pos="1" side="sl" part="temps"/>
9890 <lit-tag v="past"/>
9891 </equal>
9892 <equal>
9893 <clip pos="1" side="sl" part="nbr"/>
9894 <lit-tag v="sg"/>
9895 </equal>
9896 </and>
9897 </test>
9898 <let>
9899 <clip pos="1" side="tl" part="pers"/>
9900 <lit-tag v="PD"/>
9901 </let>
9902 <out>
9903 <chunk namefrom="lema" case="caseFirstWord">
9904 <tags>
9905 <tag><lit-tag v="Vcop"/></tag>
9906 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
9907 <tag><lit-tag v="ifip"/></tag>
9908 <tag><clip pos="1" side="tl" part="pers"/></tag>
9909 <tag><clip pos="1" side="tl" part="nbr"/></tag>
9910 </tags>
9911 <lu>
9912 <lit v="anar"/>
9913 <lit-tag v="vaux"/>
9914 <clip pos="1" side="tl" part="pers" link-to="4"/>
9915 <clip pos="1" side="tl" part="nbr" link-to="5"/>
9916 </lu>
9917 <b/>
9918 <lu>
9919 <clip pos="1" side="tl" part="lemh"/>
9920 <clip pos="1" side="tl" part="a_verb"/>
9921 <lit-tag v="inf"/>
9922 <clip pos="1" side="tl" part="lemq"/>
9923 </lu>
9924 </chunk>
9925 </out>
9926 </when>
9927 </choose>
9928 <let>
9929 <var n="caseFirstWord"/>
9930 <lit v="aa"/>
9931 </let>
9932 </action>
9933 </rule>
9936 <rule comment="REGLA: VERB copulatiu ADV">
9937 <pattern>
9938 <pattern-item n="be"/>
9939 <pattern-item n="adv_not"/>
9940 </pattern>
9941 <action>
9942 <call-macro n="firstWord">
9943 <with-param pos="1"/>
9944 </call-macro>
9945 <choose>
9946 <when>
9947 <test>
9948 <in caseless="yes">
9949 <clip pos="2" side="sl" part="lem"/>
9950 <list n="adv_neg"/>
9951 </in>
9952 </test>
9953 <let>
9954 <var n="paraula2"/>
9955 <clip pos="2" side="tl" part="whole"/>
9956 </let>
9957 <append n="paraula2">
9958 <lit-tag v="NEG"/>
9959 </append>
9960 <let>
9961 <clip pos="2" side="tl" part="whole"/>
9962 <var n="paraula2"/>
9963 </let>
9964 </when>
9965 </choose>
9966 <out>
9967 <chunk name="adv" case="caseFirstWord">
9968 <tags>
9969 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
9970 <tag><clip pos="2" side="tl" part="neg"/></tag>
9971 </tags>
9972 <lu>
9973 <clip pos="2" side="tl" part="lem"/>
9974 <clip pos="2" side="tl" part="a_adv"/>
9975 </lu>
9976 </chunk>
9977 <b pos="1"/>
9978 </out>
9980 <choose>
9981 <when>
9982 <test>
9983 <and>
9984 <equal>
9985 <clip pos="1" side="sl" part="temps"/>
9986 <lit-tag v="past"/>
9987 </equal>
9988 <equal>
9989 <clip pos="1" side="sl" part="nbr"/>
9990 <lit v=""/>
9991 </equal>
9992 </and>
9993 </test>
9994 <out>
9995 <chunk name="be">
9996 <tags>
9997 <tag><lit-tag v="Vcop"/></tag>
9998 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
9999 <tag><lit-tag v="ifip"/></tag>
10000 <tag><lit-tag v="PD"/></tag>
10001 <tag><lit-tag v="ND"/></tag>
10002 </tags>
10003 <lu>
10004 <lit v="anar"/>
10005 <lit-tag v="vaux"/>
10006 <lit-tag v="4"/>
10007 <lit-tag v="5"/>
10008 </lu>
10009 <b/>
10010 <lu>
10011 <clip pos="1" side="tl" part="lemh"/>
10012 <clip pos="1" side="tl" part="a_verb"/>
10013 <lit-tag v="inf"/>
10014 <clip pos="1" side="tl" part="lemq"/>
10015 </lu>
10016 </chunk>
10017 </out>
10018 </when>
10020 <when>
10021 <test>
10022 <equal>
10023 <clip pos="1" side="sl" part="temps"/>
10024 <lit-tag v="pres"/>
10025 </equal>
10026 </test>
10027 <let>
10028 <clip pos="1" side="tl" part="temps"/>
10029 <lit-tag v="pri"/>
10030 </let>
10031 <out>
10032 <chunk name="be">
10033 <tags>
10034 <tag><lit-tag v="Vcop"/></tag>
10035 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
10036 <tag><clip pos="1" side="tl" part="temps"/></tag>
10037 <tag><lit-tag v="PD"/></tag>
10038 <tag><lit-tag v="ND"/></tag>
10039 </tags>
10040 <lu>
10041 <clip pos="1" side="tl" part="lemh"/>
10042 <clip pos="1" side="tl" part="a_verb"/>
10043 <clip pos="1" side="tl" part="temps" link-to="3"/>
10044 <lit-tag v="4"/>
10045 <lit-tag v="5"/>
10046 <clip pos="1" side="tl" part="lemq"/>
10047 </lu>
10048 </chunk>
10049 </out>
10050 </when>
10052 <when>
10053 <test>
10054 <equal>
10055 <clip pos="1" side="sl" part="temps"/>
10056 <lit-tag v="pri"/>
10057 </equal>
10058 </test>
10059 <out>
10060 <chunk name="be">
10061 <tags>
10062 <tag><lit-tag v="Vcop"/></tag>
10063 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
10064 <tag><clip pos="1" side="tl" part="temps"/></tag>
10065 <tag><clip pos="1" side="tl" part="pers"/></tag>
10066 <tag><clip pos="1" side="tl" part="nbr"/></tag>
10067 </tags>
10068 <lu>
10069 <clip pos="1" side="tl" part="lemh"/>
10070 <clip pos="1" side="tl" part="a_verb"/>
10071 <clip pos="1" side="tl" part="temps" link-to="3"/>
10072 <clip pos="1" side="tl" part="pers" link-to="4"/>
10073 <clip pos="1" side="tl" part="nbr" link-to="5"/>
10074 <clip pos="1" side="tl" part="lemq"/>
10075 </lu>
10076 </chunk>
10077 </out>
10078 </when>
10080 <when>
10081 <test>
10082 <and>
10083 <equal>
10084 <clip pos="1" side="sl" part="temps"/>
10085 <lit-tag v="past"/>
10086 </equal>
10087 <equal>
10088 <clip pos="1" side="sl" part="nbr"/>
10089 <lit-tag v="sg"/>
10090 </equal>
10091 </and>
10092 </test>
10093 <let>
10094 <clip pos="1" side="tl" part="pers"/>
10095 <lit-tag v="PD"/>
10096 </let>
10097 <out>
10098 <chunk name="be">
10099 <tags>
10100 <tag><lit-tag v="Vcop"/></tag>
10101 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
10102 <tag><lit-tag v="ifip"/></tag>
10103 <tag><clip pos="1" side="tl" part="pers"/></tag>
10104 <tag><clip pos="1" side="tl" part="nbr"/></tag>
10105 </tags>
10106 <lu>
10107 <lit v="anar"/>
10108 <lit-tag v="vaux"/>
10109 <clip pos="1" side="tl" part="pers" link-to="4"/>
10110 <clip pos="1" side="tl" part="nbr" link-to="5"/>
10111 </lu>
10112 <b/>
10113 <lu>
10114 <clip pos="1" side="tl" part="lemh"/>
10115 <clip pos="1" side="tl" part="a_verb"/>
10116 <lit-tag v="inf"/>
10117 <clip pos="1" side="tl" part="lemq"/>
10118 </lu>
10119 </chunk>
10120 </out>
10121 </when>
10122 </choose>
10123 <let>
10124 <var n="caseFirstWord"/>
10125 <lit v="aa"/>
10126 </let>
10127 </action>
10128 </rule>
10130 <rule comment="REGLA: VERB + ING (BCN 'avoid doing -> evitar fer'">
10131 <pattern>
10132 <pattern-item n="verbcjnoser"/>
10133 <pattern-item n="ger"/>
10134 </pattern>
10135 <action>
10136 <call-macro n="firstWord">
10137 <with-param pos="1"/>
10138 </call-macro>
10139 <call-macro n="tipus_verbs">
10140 <with-param pos="1"/>
10141 </call-macro>
10142 <call-macro n="pron">
10143 <with-param pos="1"/>
10144 </call-macro>
10145 <call-macro n="tipus_verbs2">
10146 <with-param pos="2"/>
10147 </call-macro>
10148 <call-macro n="pronenc">
10149 <with-param pos="2"/>
10150 </call-macro>
10151 <choose>
10152 <when>
10153 <test>
10154 <and>
10155 <equal>
10156 <clip pos="1" side="sl" part="temps"/>
10157 <lit-tag v="past"/>
10158 </equal>
10159 <equal>
10160 <clip pos="1" side="sl" part="pers"/>
10161 <lit v=""/>
10162 </equal>
10163 <equal>
10164 <clip pos="1" side="sl" part="nbr"/>
10165 <lit v=""/>
10166 </equal>
10167 </and>
10168 </test>
10169 <out>
10170 <chunk name="verbcj_inf_perif" case="caseFirstWord">
10171 <tags>
10172 <tag><lit-tag v="SV"/></tag>
10173 <tag><var n="tipus_verb"/></tag>
10174 <tag><lit-tag v="ifip"/></tag>
10175 <tag><lit-tag v="PD"/></tag>
10176 <tag><lit-tag v="ND"/></tag>
10177 </tags>
10178 <lu>
10179 <var n="pronom"/>
10180 <lit v="anar"/>
10181 <lit-tag v="vaux"/>
10182 <lit-tag v="4"/>
10183 <lit-tag v="5"/>
10184 </lu>
10185 <b/>
10186 <lu>
10187 <clip pos="1" side="tl" part="lemh"/>
10188 <clip pos="1" side="tl" part="a_verb"/>
10189 <lit-tag v="inf"/>
10190 <clip pos="1" side="tl" part="lemq"/>
10191 </lu>
10192 <b pos="1"/>
10193 <lu>
10194 <clip pos="2" side="tl" part="lemh"/>
10195 <clip pos="2" side="tl" part="a_verb"/>
10196 <lit-tag v="inf"/>
10197 <var n="pronomenc"/>
10198 <clip pos="2" side="tl" part="lemq"/>
10199 </lu>
10201 </chunk>
10202 </out>
10203 </when>
10204 <when>
10205 <test>
10206 <equal><!--és el cas de 'was' i algun altre, que tenen pers i nbr -->
10207 <clip pos="1" side="sl" part="temps"/>
10208 <lit-tag v="past"/>
10209 </equal>
10210 </test>
10211 <out>
10212 <chunk name="verbcj_inf_perif" case="caseFirstWord">
10213 <tags>
10214 <tag><lit-tag v="SV"/></tag>
10215 <tag><var n="tipus_verb"/></tag>
10216 <tag><lit-tag v="ifip"/></tag>
10217 <tag><clip pos="1" side="tl" part="pers"/></tag>
10218 <tag><clip pos="1" side="tl" part="nbr"/></tag>
10219 </tags>
10220 <lu>
10221 <var n="pronom"/>
10222 <lit v="anar"/>
10223 <lit-tag v="vaux"/>
10224 <clip pos="1" side="tl" part="pers" link-to="4"/>
10225 <clip pos="1" side="tl" part="nbr" link-to="5"/>
10226 </lu>
10227 <b/>
10228 <lu>
10229 <clip pos="1" side="tl" part="lemh"/>
10230 <clip pos="1" side="tl" part="a_verb"/>
10231 <lit-tag v="inf"/>
10232 <clip pos="1" side="tl" part="lemq"/>
10233 </lu>
10234 <b pos="1"/>
10235 <lu>
10236 <clip pos="2" side="tl" part="lemh"/>
10237 <clip pos="2" side="tl" part="a_verb"/>
10238 <lit-tag v="inf"/>
10239 <var n="pronomenc"/>
10240 <clip pos="2" side="tl" part="lemq"/>
10241 </lu>
10242 </chunk>
10243 </out>
10244 </when>
10245 <when>
10246 <test>
10247 <equal>
10248 <clip pos="1" side="sl" part="temps"/>
10249 <lit-tag v="pres"/>
10250 </equal>
10251 </test>
10252 <let>
10253 <clip pos="1" side="tl" part="temps"/>
10254 <lit-tag v="pri"/>
10255 </let>
10256 <out>
10257 <chunk name="verbcj_inf" case="caseFirstWord">
10258 <tags>
10259 <tag><lit-tag v="SV"/></tag>
10260 <tag><var n="tipus_verb"/></tag>
10261 <tag><clip pos="1" side="tl" part="temps"/></tag>
10262 <tag><lit-tag v="PD"/></tag>
10263 <tag><lit-tag v="ND"/></tag>
10264 </tags>
10265 <lu>
10266 <var n="pronom"/>
10267 <clip pos="1" side="tl" part="lemh"/>
10268 <clip pos="1" side="tl" part="a_verb"/>
10269 <clip pos="1" side="tl" part="temps" link-to="3"/>
10270 <lit-tag v="4"/>
10271 <lit-tag v="5"/>
10272 <clip pos="1" side="tl" part="lemq"/>
10273 </lu>
10274 <b pos="1"/>
10275 <lu>
10276 <clip pos="2" side="tl" part="lemh"/>
10277 <clip pos="2" side="tl" part="a_verb"/>
10278 <lit-tag v="inf"/>
10279 <var n="pronomenc"/>
10280 <clip pos="2" side="tl" part="lemq"/>
10281 </lu>
10282 </chunk>
10283 </out>
10284 </when>
10286 <when>
10287 <test>
10288 <equal>
10289 <clip pos="1" side="sl" part="temps"/>
10290 <lit-tag v="pri"/>
10291 </equal>
10292 </test>
10293 <out>
10294 <chunk name="verbcj_inf" case="caseFirstWord">
10295 <tags>
10296 <tag><lit-tag v="SV"/></tag>
10297 <tag><var n="tipus_verb"/></tag>
10298 <tag><clip pos="1" side="tl" part="temps"/></tag>
10299 <tag><clip pos="1" side="tl" part="pers"/></tag>
10300 <tag><clip pos="1" side="tl" part="nbr"/></tag>
10301 </tags>
10302 <lu>
10303 <var n="pronom"/>
10304 <clip pos="1" side="tl" part="lemh"/>
10305 <clip pos="1" side="tl" part="a_verb"/>
10306 <clip pos="1" side="tl" part="temps" link-to="3"/>
10307 <clip pos="1" side="tl" part="pers" link-to="4"/>
10308 <clip pos="1" side="tl" part="nbr" link-to="5"/>
10309 <clip pos="1" side="tl" part="lemq"/>
10310 </lu>
10311 <b pos="1"/>
10312 <lu>
10313 <clip pos="2" side="tl" part="lemh"/>
10314 <clip pos="2" side="tl" part="a_verb"/>
10315 <lit-tag v="inf"/>
10316 <var n="pronomenc"/>
10317 <clip pos="2" side="tl" part="lemq"/>
10318 </lu>
10319 </chunk>
10320 </out>
10321 </when>
10322 <otherwise><!--només queda si és 'inf' -->
10323 <out>
10324 <chunk name="inf_inf">
10325 <tags>
10326 <tag><lit-tag v="SV"/></tag>
10327 <tag><var n="tipus_verb"/></tag>
10328 <tag><clip pos="1" side="tl" part="temps"/></tag>
10329 <tag><lit-tag v="PD"/></tag>
10330 <tag><lit-tag v="ND"/></tag>
10331 </tags>
10332 <lu>
10333 <var n="pronom"/>
10334 <clip pos="1" side="tl" part="lemh"/>
10335 <clip pos="1" side="tl" part="a_verb"/>
10336 <clip pos="1" side="tl" part="temps" link-to="3"/>
10337 <clip pos="1" side="tl" part="lemq"/>
10338 </lu>
10339 <b pos="1"/>
10340 <lu>
10341 <clip pos="2" side="tl" part="lemh"/>
10342 <clip pos="2" side="tl" part="a_verb"/>
10343 <lit-tag v="inf"/>
10344 <var n="pronomenc"/>
10345 <clip pos="2" side="tl" part="lemq"/>
10346 </lu>
10347 </chunk>
10348 </out>
10349 </otherwise>
10350 </choose>
10351 <let>
10352 <var n="caseFirstWord"/>
10353 <lit v="aa"/>
10354 </let>
10355 </action>
10356 </rule>
10359 <rule comment="REGLA: AUX + VERB + ING (BCN 'can avoid doing -> evitar fer'">
10360 <pattern>
10361 <pattern-item n="auxmod"/>
10362 <pattern-item n="infpres"/>
10363 <pattern-item n="ger"/>
10364 </pattern>
10365 <action>
10366 <call-macro n="firstWord">
10367 <with-param pos="1"/>
10368 </call-macro>
10369 <call-macro n="tipus_verbs">
10370 <with-param pos="2"/>
10371 </call-macro>
10372 <call-macro n="pron">
10373 <with-param pos="2"/>
10374 </call-macro>
10375 <call-macro n="tipus_verbs2">
10376 <with-param pos="3"/>
10377 </call-macro>
10378 <call-macro n="pronenc">
10379 <with-param pos="3"/>
10380 </call-macro>
10381 <choose>
10382 <when>
10383 <test>
10384 <and>
10385 <equal caseless="yes">
10386 <clip pos="1" side="sl" part="lem"/>
10387 <lit v="can"/>
10388 </equal>
10389 <equal>
10390 <clip pos="1" side="sl" part="temps"/>
10391 <lit-tag v="pres"/>
10392 </equal>
10393 </and>
10394 </test>
10395 <let>
10396 <clip pos="1" side="tl" part="temps"/>
10397 <lit-tag v="pri"/>
10398 </let>
10399 </when>
10400 <when>
10401 <test>
10402 <and>
10403 <equal caseless="yes">
10404 <clip pos="1" side="sl" part="lem"/>
10405 <lit v="can"/>
10406 </equal>
10407 <equal>
10408 <clip pos="1" side="sl" part="temps"/>
10409 <lit-tag v="past"/>
10410 </equal>
10411 </and>
10412 </test>
10413 <let>
10414 <clip pos="1" side="tl" part="temps"/>
10415 <lit-tag v="cni"/>
10416 </let>
10417 </when>
10418 <when>
10419 <test>
10420 <or>
10421 <equal caseless="yes">
10422 <clip pos="1" side="sl" part="lem"/>
10423 <lit v="must"/>
10424 </equal>
10425 <equal caseless="yes">
10426 <clip pos="1" side="sl" part="lem"/>
10427 <lit v="may"/>
10428 </equal>
10429 </or>
10430 </test>
10431 <let>
10432 <clip pos="1" side="tl" part="temps"/>
10433 <lit-tag v="pri"/>
10434 </let>
10435 </when>
10436 <when>
10437 <test>
10438 <or>
10439 <equal caseless="yes">
10440 <clip pos="1" side="sl" part="lem"/>
10441 <lit v="should"/>
10442 </equal>
10443 <equal caseless="yes">
10444 <clip pos="1" side="sl" part="lem"/>
10445 <lit v="might"/>
10446 </equal>
10447 </or>
10448 </test>
10449 <let>
10450 <clip pos="1" side="tl" part="temps"/>
10451 <lit-tag v="cni"/>
10452 </let>
10453 </when>
10454 </choose>
10455 <out>
10456 <chunk name="auxmod_inf_inf" case="caseFirstWord">
10457 <tags>
10458 <tag><lit-tag v="SV"/></tag>
10459 <tag><var n="tipus_verb"/></tag>
10460 <tag><clip pos="1" side="tl" part="temps"/></tag>
10461 <tag><lit-tag v="PD"/></tag>
10462 <tag><lit-tag v="ND"/></tag>
10463 </tags>
10464 <lu>
10465 <var n="pronom"/>
10466 <clip pos="1" side="tl" part="lemh"/>
10467 <clip pos="1" side="tl" part="a_verb"/>
10468 <clip pos="1" side="tl" part="temps" link-to="3"/>
10469 <lit-tag v="4"/>
10470 <lit-tag v="5"/>
10471 <clip pos="1" side="tl" part="lemq"/>
10472 </lu>
10473 <b pos="1"/>
10474 <lu>
10475 <clip pos="2" side="tl" part="lemh"/>
10476 <clip pos="2" side="tl" part="a_verb"/>
10477 <lit-tag v="inf"/>
10478 <clip pos="2" side="tl" part="lemq"/>
10479 </lu>
10480 <b pos="2"/>
10481 <lu>
10482 <clip pos="3" side="tl" part="lemh"/>
10483 <clip pos="3" side="tl" part="a_verb"/>
10484 <lit-tag v="inf"/>
10485 <var n="pronomenc"/>
10486 <clip pos="3" side="tl" part="lemq"/>
10487 </lu>
10488 </chunk>
10489 </out>
10490 <let>
10491 <var n="caseFirstWord"/>
10492 <lit v="aa"/>
10493 </let>
10494 </action>
10495 </rule>
10498 <rule comment="REGLA: AUX (temps) + VERB + ING (BCN 'will avoid doing this -> evitar fer'">
10499 <pattern>
10500 <pattern-item n="auxtemps"/>
10501 <pattern-item n="infpres"/>
10502 <pattern-item n="ger"/>
10503 </pattern>
10504 <action>
10505 <call-macro n="firstWord">
10506 <with-param pos="1"/>
10507 </call-macro>
10508 <call-macro n="tipus_verbs">
10509 <with-param pos="2"/>
10510 </call-macro>
10511 <call-macro n="pron">
10512 <with-param pos="2"/>
10513 </call-macro>
10514 <call-macro n="tipus_verbs2">
10515 <with-param pos="3"/>
10516 </call-macro>
10517 <call-macro n="pronenc">
10518 <with-param pos="3"/>
10519 </call-macro>
10520 <choose>
10521 <when>
10522 <test>
10523 <or>
10524 <equal caseless="yes">
10525 <clip pos="1" side="sl" part="lem"/>
10526 <lit v="will"/>
10527 </equal>
10528 <equal caseless="yes">
10529 <clip pos="1" side="sl" part="lem"/>
10530 <lit v="shall"/>
10531 </equal>
10532 </or>
10533 </test>
10534 <let>
10535 <clip pos="2" side="tl" part="temps"/>
10536 <lit-tag v="fti"/>
10537 </let>
10538 </when>
10539 <when>
10540 <test>
10541 <equal caseless="yes">
10542 <clip pos="1" side="sl" part="lem"/>
10543 <lit v="would"/>
10544 </equal>
10545 </test>
10546 <let>
10547 <clip pos="2" side="tl" part="temps"/>
10548 <lit-tag v="cni"/>
10549 </let>
10550 </when>
10551 </choose>
10553 <out>
10554 <chunk name="verbcj_inf" case="caseFirstWord">
10555 <tags>
10556 <tag><lit-tag v="SV"/></tag>
10557 <tag><var n="tipus_verb"/></tag>
10558 <tag><clip pos="2" side="tl" part="temps"/></tag>
10559 <tag><lit-tag v="PD"/></tag>
10560 <tag><lit-tag v="ND"/></tag>
10561 </tags>
10562 <lu>
10563 <var n="pronom"/>
10564 <clip pos="2" side="tl" part="lemh"/>
10565 <clip pos="2" side="tl" part="a_verb"/>
10566 <clip pos="2" side="tl" part="temps" link-to="3"/>
10567 <lit-tag v="4"/>
10568 <lit-tag v="5"/>
10569 <clip pos="2" side="tl" part="lemq"/>
10570 </lu>
10571 <b pos="2"/>
10572 <lu>
10573 <clip pos="3" side="tl" part="lemh"/>
10574 <clip pos="3" side="tl" part="a_verb"/>
10575 <lit-tag v="inf"/>
10576 <var n="pronomenc"/>
10577 <clip pos="3" side="tl" part="lemq"/>
10578 </lu>
10579 </chunk>
10580 </out>
10581 <let>
10582 <var n="caseFirstWord"/>
10583 <lit v="aa"/>
10584 </let>
10585 </action>
10586 </rule>
10588 <rule comment="REGLA: VERB">
10589 <pattern>
10590 <pattern-item n="verbcj"/>
10591 </pattern>
10592 <action>
10593 <call-macro n="firstWord">
10594 <with-param pos="1"/>
10595 </call-macro>
10596 <call-macro n="tipus_verbs">
10597 <with-param pos="1"/>
10598 </call-macro>
10599 <call-macro n="pron">
10600 <with-param pos="1"/>
10601 </call-macro>
10602 <choose>
10603 <when>
10604 <test>
10605 <and>
10606 <equal>
10607 <clip pos="1" side="sl" part="temps"/>
10608 <lit-tag v="past"/>
10609 </equal>
10610 <equal>
10611 <clip pos="1" side="sl" part="pers"/>
10612 <lit v=""/>
10613 </equal>
10614 <equal>
10615 <clip pos="1" side="sl" part="nbr"/>
10616 <lit v=""/>
10617 </equal>
10618 </and>
10619 </test>
10620 <out>
10621 <chunk name="verbcj_perif" case="caseFirstWord">
10622 <tags>
10623 <tag><lit-tag v="SV"/></tag>
10624 <tag><var n="tipus_verb"/></tag>
10625 <tag><lit-tag v="ifip"/></tag>
10626 <tag><lit-tag v="PD"/></tag>
10627 <tag><lit-tag v="ND"/></tag>
10628 </tags>
10630 <lu>
10631 <var n="pronom"/>
10632 <lit v="anar"/>
10633 <lit-tag v="vaux"/>
10634 <lit-tag v="4"/>
10635 <lit-tag v="5"/>
10636 </lu>
10637 <b/>
10638 <lu>
10639 <clip pos="1" side="tl" part="lemh"/>
10640 <clip pos="1" side="tl" part="a_verb"/>
10641 <lit-tag v="inf"/>
10642 <clip pos="1" side="tl" part="lemq"/>
10643 </lu>
10644 </chunk>
10645 </out>
10646 </when>
10647 <when>
10648 <test>
10649 <equal><!--és el cas de 'was' i algun altre, que tenen pers i nbr -->
10650 <clip pos="1" side="sl" part="temps"/>
10651 <lit-tag v="past"/>
10652 </equal>
10653 </test>
10654 <out>
10655 <chunk name="verbcj_perif" case="caseFirstWord">
10656 <tags>
10657 <tag><lit-tag v="SV"/></tag>
10658 <tag><var n="tipus_verb"/></tag>
10659 <tag><lit-tag v="ifip"/></tag>
10660 <tag><clip pos="1" side="tl" part="pers"/></tag>
10661 <tag><clip pos="1" side="tl" part="nbr"/></tag>
10662 </tags>
10663 <lu>
10664 <var n="pronom"/>
10665 <lit v="anar"/>
10666 <lit-tag v="vaux"/>
10667 <clip pos="1" side="tl" part="pers" link-to="4"/>
10668 <clip pos="1" side="tl" part="nbr" link-to="5"/>
10669 </lu>
10670 <b/>
10671 <lu>
10672 <clip pos="1" side="tl" part="lemh"/>
10673 <clip pos="1" side="tl" part="a_verb"/>
10674 <lit-tag v="inf"/>
10675 <clip pos="1" side="tl" part="lemq"/>
10676 </lu>
10677 </chunk>
10678 </out>
10679 </when>
10681 <when>
10682 <test>
10683 <equal>
10684 <clip pos="1" side="sl" part="temps"/>
10685 <lit-tag v="pres"/>
10686 </equal>
10687 </test>
10688 <let>
10689 <clip pos="1" side="tl" part="temps"/>
10690 <lit-tag v="pri"/>
10691 </let>
10692 <out>
10693 <chunk name="verbcj" case="caseFirstWord">
10694 <tags>
10695 <tag><lit-tag v="SV"/></tag>
10696 <tag><var n="tipus_verb"/></tag>
10697 <tag><clip pos="1" side="tl" part="temps"/></tag>
10698 <tag><lit-tag v="PD"/></tag>
10699 <tag><lit-tag v="ND"/></tag>
10700 </tags>
10701 <lu>
10702 <var n="pronom"/>
10703 <clip pos="1" side="tl" part="lemh"/>
10704 <clip pos="1" side="tl" part="a_verb"/>
10705 <clip pos="1" side="tl" part="temps" link-to="3"/>
10706 <lit-tag v="4"/>
10707 <lit-tag v="5"/>
10708 <clip pos="1" side="tl" part="lemq"/>
10709 </lu>
10710 </chunk>
10711 </out>
10712 </when>
10714 <when>
10715 <test>
10716 <equal>
10717 <clip pos="1" side="sl" part="temps"/>
10718 <lit-tag v="pri"/>
10719 </equal>
10720 </test>
10721 <out>
10722 <chunk name="verbcj" case="caseFirstWord">
10723 <tags>
10724 <tag><lit-tag v="SV"/></tag>
10725 <tag><var n="tipus_verb"/></tag>
10726 <tag><clip pos="1" side="tl" part="temps"/></tag>
10727 <tag><clip pos="1" side="tl" part="pers"/></tag>
10728 <tag><clip pos="1" side="tl" part="nbr"/></tag>
10729 </tags>
10730 <lu>
10731 <var n="pronom"/>
10732 <clip pos="1" side="tl" part="lemh"/>
10733 <clip pos="1" side="tl" part="a_verb"/>
10734 <clip pos="1" side="tl" part="temps" link-to="3"/>
10735 <clip pos="1" side="tl" part="pers" link-to="4"/>
10736 <clip pos="1" side="tl" part="nbr" link-to="5"/>
10737 <clip pos="1" side="tl" part="lemq"/>
10738 </lu>
10739 </chunk>
10740 </out>
10741 </when>
10742 </choose>
10743 <let>
10744 <var n="caseFirstWord"/>
10745 <lit v="aa"/>
10746 </let>
10747 </action>
10748 </rule>
10750 <rule comment="REGLA: VERB+clític: finds it-> el troba">
10751 <pattern>
10752 <pattern-item n="verbcj"/>
10753 <pattern-item n="probj"/>
10754 </pattern>
10755 <action>
10756 <call-macro n="firstWord">
10757 <with-param pos="1"/>
10758 </call-macro>
10759 <call-macro n="tipus_verbs">
10760 <with-param pos="1"/>
10761 </call-macro>
10762 <call-macro n="pron">
10763 <with-param pos="1"/>
10764 </call-macro>
10766 <choose>
10767 <when>
10768 <test>
10769 <and>
10770 <equal>
10771 <clip pos="1" side="sl" part="temps"/>
10772 <lit-tag v="past"/>
10773 </equal>
10774 <equal>
10775 <clip pos="1" side="sl" part="pers"/>
10776 <lit v=""/>
10777 </equal>
10778 <equal>
10779 <clip pos="1" side="sl" part="nbr"/>
10780 <lit v=""/>
10781 </equal>
10782 </and>
10783 </test>
10784 <out>
10785 <chunk name="pro_verbcj_perif" case="caseFirstWord">
10786 <tags>
10787 <tag><lit-tag v="SV"/></tag>
10788 <tag><var n="tipus_verb"/></tag>
10789 <tag><lit-tag v="ifip"/></tag>
10790 <tag><lit-tag v="PD"/></tag>
10791 <tag><lit-tag v="ND"/></tag>
10792 </tags>
10793 <lu>
10794 <var n="pronom"/>
10795 <clip pos="2" side="tl" part="lem"/>
10796 <clip pos="2" side="tl" part="a_prnpro"/>
10797 <clip pos="2" side="tl" part="pers"/>
10798 <clip pos="2" side="tl" part="gen"/>
10799 <clip pos="2" side="tl" part="nbr"/>
10800 </lu>
10801 <b pos="1"/>
10802 <lu>
10803 <lit v="anar"/>
10804 <lit-tag v="vaux"/>
10805 <lit-tag v="4"/>
10806 <lit-tag v="5"/>
10807 </lu>
10808 <b/>
10809 <lu>
10810 <clip pos="1" side="tl" part="lemh"/>
10811 <clip pos="1" side="tl" part="a_verb"/>
10812 <lit-tag v="inf"/>
10813 <clip pos="1" side="tl" part="lemq"/>
10814 </lu>
10815 </chunk>
10816 </out>
10817 </when>
10818 <when>
10819 <test>
10820 <equal><!--és el cas de 'was' i algun altre, que tenen pers i nbr -->
10821 <clip pos="1" side="sl" part="temps"/>
10822 <lit-tag v="past"/>
10823 </equal>
10824 </test>
10825 <out>
10826 <chunk name="pro_verbcj_perif" case="caseFirstWord">
10827 <tags>
10828 <tag><lit-tag v="SV"/></tag>
10829 <tag><var n="tipus_verb"/></tag>
10830 <tag><lit-tag v="ifip"/></tag>
10831 <tag><clip pos="1" side="tl" part="pers"/></tag>
10832 <tag><clip pos="1" side="tl" part="nbr"/></tag>
10833 </tags>
10834 <lu>
10835 <var n="pronom"/>
10836 <clip pos="2" side="tl" part="lem"/>
10837 <clip pos="2" side="tl" part="a_prnpro"/>
10838 <clip pos="2" side="tl" part="pers"/>
10839 <clip pos="2" side="tl" part="gen"/>
10840 <clip pos="2" side="tl" part="nbr"/>
10841 </lu>
10842 <b pos="1"/>
10843 <lu>
10844 <lit v="anar"/>
10845 <lit-tag v="vaux"/>
10846 <clip pos="1" side="tl" part="pers" link-to="4"/>
10847 <clip pos="1" side="tl" part="nbr" link-to="5"/>
10848 </lu>
10849 <b/>
10850 <lu>
10851 <clip pos="1" side="tl" part="lemh"/>
10852 <clip pos="1" side="tl" part="a_verb"/>
10853 <lit-tag v="inf"/>
10854 <clip pos="1" side="tl" part="lemq"/>
10855 </lu>
10856 </chunk>
10857 </out>
10858 </when>
10860 <when>
10861 <test>
10862 <equal>
10863 <clip pos="1" side="sl" part="temps"/>
10864 <lit-tag v="pres"/>
10865 </equal>
10866 </test>
10867 <let>
10868 <clip pos="1" side="tl" part="temps"/>
10869 <lit-tag v="pri"/>
10870 </let>
10871 <out>
10872 <chunk name="pro_verbcj" case="caseFirstWord">
10873 <tags>
10874 <tag><lit-tag v="SV"/></tag>
10875 <tag><var n="tipus_verb"/></tag>
10876 <tag><clip pos="1" side="tl" part="temps"/></tag>
10877 <tag><lit-tag v="PD"/></tag>
10878 <tag><lit-tag v="ND"/></tag>
10879 </tags>
10880 <lu>
10881 <var n="pronom"/>
10882 <clip pos="2" side="tl" part="lem"/>
10883 <clip pos="2" side="tl" part="a_prnpro"/>
10884 <clip pos="2" side="tl" part="pers"/>
10885 <clip pos="2" side="tl" part="gen"/>
10886 <clip pos="2" side="tl" part="nbr"/>
10887 </lu>
10888 <b pos="1"/>
10889 <lu>
10890 <clip pos="1" side="tl" part="lemh"/>
10891 <clip pos="1" side="tl" part="a_verb"/>
10892 <clip pos="1" side="tl" part="temps" link-to="3"/>
10893 <lit-tag v="4"/>
10894 <lit-tag v="5"/>
10895 <clip pos="1" side="tl" part="lemq"/>
10896 </lu>
10897 </chunk>
10898 </out>
10899 </when>
10901 <when>
10902 <test>
10903 <equal>
10904 <clip pos="1" side="sl" part="temps"/>
10905 <lit-tag v="pri"/>
10906 </equal>
10907 </test>
10908 <out>
10909 <chunk name="pro_verbcj" case="caseFirstWord">
10910 <tags>
10911 <tag><lit-tag v="SV"/></tag>
10912 <tag><var n="tipus_verb"/></tag>
10913 <tag><clip pos="1" side="tl" part="temps"/></tag>
10914 <tag><clip pos="1" side="tl" part="pers"/></tag>
10915 <tag><clip pos="1" side="tl" part="nbr"/></tag>
10916 </tags>
10917 <lu>
10918 <var n="pronom"/>
10919 <clip pos="2" side="tl" part="lem"/>
10920 <clip pos="2" side="tl" part="a_prnpro"/>
10921 <clip pos="2" side="tl" part="pers"/>
10922 <clip pos="2" side="tl" part="gen"/>
10923 <clip pos="2" side="tl" part="nbr"/>
10924 </lu>
10925 <b pos="1"/>
10926 <lu>
10927 <clip pos="1" side="tl" part="lemh"/>
10928 <clip pos="1" side="tl" part="a_verb"/>
10929 <clip pos="1" side="tl" part="temps" link-to="3"/>
10930 <clip pos="1" side="tl" part="pers" link-to="4"/>
10931 <clip pos="1" side="tl" part="nbr" link-to="5"/>
10932 <clip pos="1" side="tl" part="lemq"/>
10933 </lu>
10934 </chunk>
10935 </out>
10936 </when>
10937 </choose>
10938 <let>
10939 <var n="caseFirstWord"/>
10940 <lit v="aa"/>
10941 </let>
10942 </action>
10943 </rule>
10946 <rule comment="REGLA: VERB MODAL (have to, want to). Per quan apareix sol o amb un verb desconegut">
10947 <pattern>
10948 <pattern-item n="mod"/>
10949 </pattern>
10950 <action>
10951 <call-macro n="firstWord">
10952 <with-param pos="1"/>
10953 </call-macro>
10954 <choose>
10955 <when>
10956 <test>
10957 <or>
10958 <equal><!--De moment no sé si el tagger escull bé i els detecto els dos -->
10959 <clip pos="1" side="sl" part="temps"/>
10960 <lit-tag v="inf"/>
10961 </equal>
10962 <equal>
10963 <clip pos="1" side="sl" part="temps"/>
10964 <lit-tag v="pres"/>
10965 </equal>
10966 </or>
10967 </test>
10968 <let>
10969 <clip pos="1" side="tl" part="temps"/>
10970 <lit-tag v="pri"/>
10971 </let>
10972 <out>
10973 <chunk name="mod" case="caseFirstWord">
10974 <tags>
10975 <tag><lit-tag v="SV"/></tag>
10976 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
10977 <tag><clip pos="1" side="tl" part="temps"/></tag>
10978 <tag><lit-tag v="PD"/></tag>
10979 <tag><lit-tag v="ND"/></tag>
10980 </tags>
10981 <lu>
10982 <clip pos="1" side="tl" part="lemh"/>
10983 <clip pos="1" side="tl" part="a_verb"/>
10984 <clip pos="1" side="tl" part="temps" link-to="3"/>
10985 <lit-tag v="4"/>
10986 <lit-tag v="5"/>
10987 <clip pos="1" side="tl" part="lemq"/>
10988 </lu>
10989 </chunk>
10990 </out>
10991 </when>
10992 <when>
10993 <test>
10994 <equal>
10995 <clip pos="1" side="sl" part="temps"/>
10996 <lit-tag v="past"/>
10997 </equal>
10998 </test>
10999 <out>
11000 <chunk name="mod_perif" case="caseFirstWord">
11001 <tags>
11002 <tag><lit-tag v="SV"/></tag>
11003 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
11004 <tag><lit-tag v="ifip"/></tag>
11005 <tag><lit-tag v="PD"/></tag>
11006 <tag><lit-tag v="ND"/></tag>
11007 </tags>
11008 <lu>
11009 <lit v="anar"/>
11010 <lit-tag v="vaux"/>
11011 <lit-tag v="4"/>
11012 <lit-tag v="5"/>
11013 </lu>
11014 <b/>
11015 <lu>
11016 <clip pos="1" side="tl" part="lemh"/>
11017 <clip pos="1" side="tl" part="a_verb"/>
11018 <lit-tag v="inf"/>
11019 <clip pos="1" side="tl" part="lemq"/>
11020 </lu>
11021 </chunk>
11022 </out>
11023 </when>
11024 <otherwise><!-- Quan és 3a sg (has to) -->
11025 <out>
11026 <chunk name="mod" case="caseFirstWord">
11027 <tags>
11028 <tag><lit-tag v="SV"/></tag>
11029 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
11030 <tag><clip pos="1" side="tl" part="temps"/></tag>
11031 <tag><clip pos="1" side="tl" part="pers"/></tag>
11032 <tag><clip pos="1" side="tl" part="nbr"/></tag>
11033 </tags>
11034 <lu>
11035 <clip pos="1" side="tl" part="lemh"/>
11036 <clip pos="1" side="tl" part="a_verb"/>
11037 <clip pos="1" side="tl" part="temps" link-to="3"/>
11038 <clip pos="1" side="tl" part="pers" link-to="4"/>
11039 <clip pos="1" side="tl" part="nbr" link-to="5"/>
11040 <clip pos="1" side="tl" part="lemq"/>
11041 </lu>
11042 </chunk>
11043 </out>
11044 </otherwise>
11045 </choose>
11046 <let>
11047 <var n="caseFirstWord"/>
11048 <lit v="aa"/>
11049 </let>
11050 </action>
11051 </rule>
11053 <rule comment="REGLA: TO INF (BCN canvia la prep 'a' per 'per' davant infinitiu')">
11054 <pattern>
11055 <pattern-item n="to"/>
11056 <pattern-item n="inf"/>
11057 </pattern>
11058 <action>
11059 <call-macro n="firstWord">
11060 <with-param pos="1"/>
11061 </call-macro>
11062 <call-macro n="tipus_verbs">
11063 <with-param pos="2"/>
11064 </call-macro>
11065 <let> <!-- canvi de preposició-->
11066 <clip pos="1" side="tl" part="lem"/>
11067 <lit v ="per"/>
11068 </let>
11069 <out>
11070 <chunk name="pr" case="caseFirstWord">
11071 <tags>
11072 <tag><lit-tag v="PREP"/></tag>
11073 </tags>
11074 <lu>
11075 <clip pos="1" side="tl" part="whole"/>
11076 </lu>
11077 </chunk>
11078 <b pos="1"/>
11079 </out>
11080 <choose>
11081 <when>
11082 <test>
11083 <not>
11084 <or>
11085 <equal caseless="yes">
11086 <clip pos="2" side="sl" part="lem"/>
11087 <lit v="will"/>
11088 </equal>
11089 <equal caseless="yes">
11090 <clip pos="2" side="sl" part="lem"/>
11091 <lit v="shall"/>
11092 </equal>
11093 <equal caseless="yes">
11094 <clip pos="2" side="sl" part="lem"/>
11095 <lit v="would"/>
11096 </equal>
11097 </or>
11098 </not>
11099 </test>
11100 <choose>
11101 <when>
11102 <test>
11103 <equal>
11104 <var n="tipus_verb"/>
11105 <lit-tag v="pron"/>
11106 </equal>
11107 </test>
11108 <out>
11109 <chunk name="inf_enc">
11110 <tags>
11111 <tag><lit-tag v="SV"/></tag>
11112 <tag><var n="tipus_verb"/></tag>
11113 <tag><clip pos="2" side="tl" part="temps"/></tag>
11114 <tag><lit-tag v="PD"/></tag>
11115 <tag><lit-tag v="ND"/></tag>
11116 </tags>
11117 <mlu>
11118 <lu>
11119 <clip pos="2" side="tl" part="lemh"/>
11120 <clip pos="2" side="tl" part="a_verb"/>
11121 <clip pos="2" side="tl" part="temps" link-to="3"/>
11122 </lu>
11123 <lu>
11124 <lit v="es"/>
11125 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
11126 <clip pos="2" side="tl" part="lemq"/>
11127 </lu>
11128 </mlu>
11129 </chunk>
11130 </out>
11131 </when>
11132 <otherwise>
11133 <out>
11134 <chunk name="inf">
11135 <tags>
11136 <tag><lit-tag v="SV"/></tag>
11137 <tag><var n="tipus_verb"/></tag>
11138 <tag><clip pos="2" side="tl" part="temps"/></tag>
11139 <tag><lit-tag v="PD"/></tag>
11140 <tag><lit-tag v="ND"/></tag>
11141 </tags>
11142 <lu>
11143 <clip pos="2" side="tl" part="lemh"/>
11144 <clip pos="2" side="tl" part="a_verb"/>
11145 <clip pos="2" side="tl" part="temps" link-to="3"/>
11146 <clip pos="2" side="tl" part="lemq"/>
11147 </lu>
11148 </chunk>
11149 </out>
11150 </otherwise>
11151 </choose>
11152 </when>
11153 </choose>
11154 <let>
11155 <var n="caseFirstWord"/>
11156 <lit v="aa"/>
11157 </let>
11158 </action>
11159 </rule>
11161 <rule comment="REGLA: TO INF (BCN canvia la prep 'a' per 'per' davant infinitiu')">
11162 <pattern>
11163 <pattern-item n="to"/>
11164 <pattern-item n="inf"/>
11165 <pattern-item n="probj"/>
11166 </pattern>
11167 <action>
11168 <call-macro n="firstWord">
11169 <with-param pos="1"/>
11170 </call-macro>
11171 <call-macro n="tipus_verbs">
11172 <with-param pos="2"/>
11173 </call-macro>
11174 <let> <!-- canvi de preposició-->
11175 <clip pos="1" side="tl" part="lem"/>
11176 <lit v ="per"/>
11177 </let>
11178 <out>
11179 <chunk name="pr" case="caseFirstWord">
11180 <tags>
11181 <tag><lit-tag v="PREP"/></tag>
11182 </tags>
11183 <lu>
11184 <clip pos="1" side="tl" part="whole"/>
11185 </lu>
11186 </chunk>
11187 <b pos="1"/>
11188 </out>
11189 <choose>
11190 <when>
11191 <test>
11192 <not>
11193 <or>
11194 <equal caseless="yes">
11195 <clip pos="2" side="sl" part="lem"/>
11196 <lit v="will"/>
11197 </equal>
11198 <equal caseless="yes">
11199 <clip pos="2" side="sl" part="lem"/>
11200 <lit v="shall"/>
11201 </equal>
11202 <equal caseless="yes">
11203 <clip pos="2" side="sl" part="lem"/>
11204 <lit v="would"/>
11205 </equal>
11206 </or>
11207 </not>
11208 </test>
11209 <choose>
11210 <when>
11211 <test>
11212 <equal>
11213 <var n="tipus_verb"/>
11214 <lit-tag v="pron"/>
11215 </equal>
11216 </test>
11217 <out>
11218 <chunk name="inf_enc_enc">
11219 <tags>
11220 <tag><lit-tag v="SV"/></tag>
11221 <tag><var n="tipus_verb"/></tag>
11222 <tag><clip pos="2" side="tl" part="temps"/></tag>
11223 <tag><lit-tag v="PD"/></tag>
11224 <tag><lit-tag v="ND"/></tag>
11225 </tags>
11226 <mlu>
11227 <lu>
11228 <clip pos="2" side="tl" part="lemh"/>
11229 <clip pos="2" side="tl" part="a_verb"/>
11230 <clip pos="2" side="tl" part="temps" link-to="3"/>
11231 </lu>
11232 <lu>
11233 <lit v="es"/>
11234 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
11235 </lu>
11236 <lu>
11237 <clip pos="3" side="tl" part="lem"/>
11238 <lit-tag v="prn.enc"/>
11239 <clip pos="3" side="tl" part="pers"/>
11240 <clip pos="3" side="tl" part="gen"/>
11241 <clip pos="3" side="tl" part="nbr"/>
11242 <clip pos="2" side="tl" part="lemq"/>
11243 </lu>
11244 </mlu>
11245 </chunk>
11246 </out>
11247 </when>
11248 <otherwise>
11249 <out>
11250 <chunk name="inf_enc">
11251 <tags>
11252 <tag><lit-tag v="SV"/></tag>
11253 <tag><var n="tipus_verb"/></tag>
11254 <tag><clip pos="2" side="tl" part="temps"/></tag>
11255 <tag><lit-tag v="PD"/></tag>
11256 <tag><lit-tag v="ND"/></tag>
11257 </tags>
11258 <mlu>
11259 <lu>
11260 <clip pos="2" side="tl" part="lemh"/>
11261 <clip pos="2" side="tl" part="a_verb"/>
11262 <clip pos="2" side="tl" part="temps" link-to="3"/>
11263 </lu>
11264 <lu>
11265 <clip pos="3" side="tl" part="lem"/>
11266 <lit-tag v="prn.enc"/>
11267 <clip pos="3" side="tl" part="pers"/>
11268 <clip pos="3" side="tl" part="gen"/>
11269 <clip pos="3" side="tl" part="nbr"/>
11270 <clip pos="2" side="tl" part="lemq"/>
11271 </lu>
11272 </mlu>
11273 </chunk>
11274 </out>
11275 </otherwise>
11276 </choose>
11277 </when>
11278 </choose>
11279 <let>
11280 <var n="caseFirstWord"/>
11281 <lit v="aa"/>
11282 </let>
11283 </action>
11284 </rule>
11286 <rule comment="REGLA: INF (per a col·locar la cua en les multiparaules)">
11287 <pattern>
11288 <pattern-item n="inf"/>
11289 </pattern>
11290 <action>
11291 <call-macro n="firstWord">
11292 <with-param pos="1"/>
11293 </call-macro>
11294 <call-macro n="tipus_verbs">
11295 <with-param pos="1"/>
11296 </call-macro>
11297 <choose>
11298 <when>
11299 <test>
11300 <not>
11301 <or>
11302 <equal caseless="yes">
11303 <clip pos="1" side="sl" part="lem"/>
11304 <lit v="will"/>
11305 </equal>
11306 <equal caseless="yes">
11307 <clip pos="1" side="sl" part="lem"/>
11308 <lit v="shall"/>
11309 </equal>
11310 <equal caseless="yes">
11311 <clip pos="1" side="sl" part="lem"/>
11312 <lit v="would"/>
11313 </equal>
11314 </or>
11315 </not>
11316 </test>
11317 <choose>
11318 <when>
11319 <test>
11320 <equal>
11321 <var n="tipus_verb"/>
11322 <lit-tag v="pron"/>
11323 </equal>
11324 </test>
11325 <out>
11326 <chunk name="inf_enc" case="caseFirstWord">
11327 <tags>
11328 <tag><lit-tag v="SV"/></tag>
11329 <tag><var n="tipus_verb"/></tag>
11330 <tag><clip pos="1" side="tl" part="temps"/></tag>
11331 <tag><lit-tag v="PD"/></tag>
11332 <tag><lit-tag v="ND"/></tag>
11333 </tags>
11334 <mlu>
11335 <lu>
11336 <clip pos="1" side="tl" part="lemh"/>
11337 <clip pos="1" side="tl" part="a_verb"/>
11338 <clip pos="1" side="tl" part="temps" link-to="3"/>
11339 </lu>
11340 <lu>
11341 <lit v="es"/>
11342 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
11343 <clip pos="1" side="tl" part="lemq"/>
11344 </lu>
11345 </mlu>
11346 </chunk>
11347 </out>
11348 </when>
11349 <otherwise>
11350 <out>
11351 <chunk name="inf" case="caseFirstWord">
11352 <tags>
11353 <tag><lit-tag v="SV"/></tag>
11354 <tag><var n="tipus_verb"/></tag>
11355 <tag><clip pos="1" side="tl" part="temps"/></tag>
11356 <tag><lit-tag v="PD"/></tag>
11357 <tag><lit-tag v="ND"/></tag>
11358 </tags>
11359 <lu>
11360 <clip pos="1" side="tl" part="lemh"/>
11361 <clip pos="1" side="tl" part="a_verb"/>
11362 <clip pos="1" side="tl" part="temps" link-to="3"/>
11363 <clip pos="1" side="tl" part="lemq"/>
11364 </lu>
11365 </chunk>
11366 </out>
11367 </otherwise>
11368 </choose>
11370 </when>
11371 </choose>
11372 <let>
11373 <var n="caseFirstWord"/>
11374 <lit v="aa"/>
11375 </let>
11376 </action>
11377 </rule>
11379 <rule comment="REGLA: INF+clític">
11380 <pattern>
11381 <pattern-item n="inf"/>
11382 <pattern-item n="probj"/>
11383 </pattern>
11384 <action>
11385 <call-macro n="firstWord">
11386 <with-param pos="1"/>
11387 </call-macro>
11388 <call-macro n="tipus_verbs">
11389 <with-param pos="1"/>
11390 </call-macro>
11391 <choose>
11392 <when>
11393 <test>
11394 <not>
11395 <or>
11396 <equal caseless="yes">
11397 <clip pos="1" side="sl" part="lem"/>
11398 <lit v="will"/>
11399 </equal>
11400 <equal caseless="yes">
11401 <clip pos="1" side="sl" part="lem"/>
11402 <lit v="shall"/>
11403 </equal>
11404 <equal caseless="yes">
11405 <clip pos="1" side="sl" part="lem"/>
11406 <lit v="would"/>
11407 </equal>
11408 </or>
11409 </not>
11410 </test>
11411 <choose><!--mireia2-->
11412 <when>
11413 <test>
11414 <equal>
11415 <var n="tipus_verb"/>
11416 <lit-tag v="pron"/>
11417 </equal>
11418 </test>
11419 <out>
11420 <chunk name="inf_enc" case="caseFirstWord">
11421 <tags>
11422 <tag><lit-tag v="SV"/></tag>
11423 <tag><var n="tipus_verb"/></tag>
11424 <tag><clip pos="1" side="tl" part="temps"/></tag>
11425 <tag><lit-tag v="PD"/></tag>
11426 <tag><lit-tag v="ND"/></tag>
11427 </tags>
11428 <mlu>
11429 <lu>
11430 <clip pos="1" side="tl" part="lemh"/>
11431 <clip pos="1" side="tl" part="a_verb"/>
11432 <clip pos="1" side="tl" part="temps" link-to="3"/>
11434 </lu>
11435 <lu>
11436 <lit v="es"/>
11437 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
11438 </lu>
11439 <lu>
11440 <clip pos="2" side="tl" part="lem"/>
11441 <lit-tag v="prn.enc"/>
11442 <clip pos="2" side="tl" part="pers"/>
11443 <clip pos="2" side="tl" part="gen"/>
11444 <clip pos="2" side="tl" part="nbr"/>
11445 <clip pos="1" side="tl" part="lemq"/>
11446 </lu>
11447 </mlu>
11448 </chunk>
11449 </out>
11450 </when>
11451 <otherwise>
11452 <out>
11453 <chunk name="inf_enc" case="caseFirstWord">
11454 <tags>
11455 <tag><lit-tag v="SV"/></tag>
11456 <tag><var n="tipus_verb"/></tag>
11457 <tag><clip pos="1" side="tl" part="temps"/></tag>
11458 <tag><lit-tag v="PD"/></tag>
11459 <tag><lit-tag v="ND"/></tag>
11460 </tags>
11461 <mlu>
11462 <lu>
11463 <clip pos="1" side="tl" part="lemh"/>
11464 <clip pos="1" side="tl" part="a_verb"/>
11465 <clip pos="1" side="tl" part="temps" link-to="3"/>
11466 </lu>
11467 <lu>
11468 <clip pos="2" side="tl" part="lem"/>
11469 <lit-tag v="prn.enc"/>
11470 <clip pos="2" side="tl" part="pers"/>
11471 <clip pos="2" side="tl" part="gen"/>
11472 <clip pos="2" side="tl" part="nbr"/>
11473 <clip pos="1" side="tl" part="lemq"/>
11474 </lu>
11475 </mlu>
11476 </chunk>
11477 </out>
11478 </otherwise>
11479 </choose>
11480 </when>
11481 </choose>
11482 <let>
11483 <var n="caseFirstWord"/>
11484 <lit v="aa"/>
11485 </let>
11486 </action>
11487 </rule>
11489 <rule comment="REGLA: PPRS (per a col·locar la cua en les multiparaules. per ara 'pprs' no es fa servir per res, he copiat la regla del gerundi per treure com a chunk gerundi; si de cas, més endavant s'ha d'estudiar la utilitat del pprs.)">
11490 <pattern>
11491 <pattern-item n="pprs"/>
11492 </pattern>
11493 <action>
11494 <call-macro n="firstWord">
11495 <with-param pos="1"/>
11496 </call-macro>
11497 <call-macro n="tipus_verbs">
11498 <with-param pos="1"/>
11499 </call-macro>
11500 <choose>
11501 <when>
11502 <test>
11503 <equal>
11504 <var n="tipus_verb"/>
11505 <lit-tag v="pron"/>
11506 </equal>
11507 </test>
11508 <out>
11510 <chunk name="ger" case="caseFirstWord">
11511 <tags>
11512 <tag><lit-tag v="SV"/></tag>
11513 <tag><var n="tipus_verb"/></tag>
11514 <tag><lit-tag v="ger"/></tag>
11515 <tag><lit-tag v="PD"/></tag>
11516 <tag><lit-tag v="ND"/></tag>
11517 </tags>
11518 <mlu>
11519 <lu>
11520 <clip pos="1" side="tl" part="lemh"/>
11521 <clip pos="1" side="tl" part="a_verb"/>
11522 <lit-tag v="3"/>
11524 </lu>
11525 <lu>
11526 <lit v="es"/>
11527 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
11528 <clip pos="1" side="tl" part="lemq"/>
11529 </lu>
11530 </mlu>
11531 </chunk>
11532 </out>
11533 </when>
11534 <otherwise>
11535 <out>
11536 <chunk name="ger" case="caseFirstWord">
11537 <tags>
11538 <tag><lit-tag v="SV"/></tag>
11539 <tag><var n="tipus_verb"/></tag>
11540 <tag><lit-tag v="ger"/></tag>
11541 <tag><lit-tag v="PD"/></tag> <!-- BCN -->
11542 <tag><lit-tag v="ND"/></tag> <!-- BCN -->
11543 </tags>
11544 <lu>
11545 <clip pos="1" side="tl" part="lemh"/>
11546 <clip pos="1" side="tl" part="a_verb"/>
11547 <lit-tag v="3"/>
11548 <clip pos="1" side="tl" part="lemq"/>
11549 </lu>
11550 </chunk>
11551 </out>
11552 </otherwise>
11553 </choose>
11554 <let>
11555 <var n="caseFirstWord"/>
11556 <lit v="aa"/>
11557 </let>
11558 </action>
11559 </rule>
11561 <rule comment="REGLA: PPRS+clític (ídem regla anterior PPRS)">
11562 <pattern>
11563 <pattern-item n="pprs"/>
11564 <pattern-item n="probj"/>
11565 </pattern>
11566 <action>
11567 <call-macro n="firstWord">
11568 <with-param pos="1"/>
11569 </call-macro>
11570 <call-macro n="tipus_verbs">
11571 <with-param pos="1"/>
11572 </call-macro>
11573 <choose>
11574 <when>
11575 <test>
11576 <equal>
11577 <var n="tipus_verb"/>
11578 <lit-tag v="pron"/>
11579 </equal>
11580 </test>
11581 <out>
11582 <chunk name="ger_enc" case="caseFirstWord">
11583 <tags>
11584 <tag><lit-tag v="SV"/></tag>
11585 <tag><var n="tipus_verb"/></tag>
11586 <tag><lit-tag v="ger"/></tag>
11587 <tag><lit-tag v="PD"/></tag>
11588 <tag><lit-tag v="ND"/></tag>
11589 </tags>
11590 <!-- <mlu> -->
11591 <lu>
11592 <clip pos="1" side="tl" part="lemh"/>
11593 <clip pos="1" side="tl" part="a_verb"/>
11594 <lit-tag v="3"/>
11595 </lu>
11596 <b/>
11597 <lu>
11598 <lit v="es"/>
11599 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
11600 </lu>
11601 <b pos="1"/>
11602 <lu>
11603 <clip pos="2" side="tl" part="lem"/>
11604 <lit-tag v="prn.enc"/>
11605 <clip pos="2" side="tl" part="pers"/>
11606 <clip pos="2" side="tl" part="gen"/>
11607 <clip pos="2" side="tl" part="nbr"/>
11608 <clip pos="1" side="tl" part="lemq"/>
11609 </lu>
11610 <!-- </mlu> -->
11611 </chunk>
11612 </out>
11613 </when>
11614 <otherwise>
11615 <out>
11616 <chunk name="ger_enc" case="caseFirstWord">
11617 <tags>
11618 <tag><lit-tag v="SV"/></tag>
11619 <tag><var n="tipus_verb"/></tag>
11620 <tag><lit-tag v="ger"/></tag>
11621 <tag><lit-tag v="PD"/></tag>
11622 <tag><lit-tag v="ND"/></tag>
11623 </tags>
11624 <!-- <mlu> -->
11625 <lu>
11626 <clip pos="1" side="tl" part="lemh"/>
11627 <clip pos="1" side="tl" part="a_verb"/>
11628 <lit-tag v="3"/>
11629 </lu>
11630 <b pos="1"/>
11631 <lu>
11632 <clip pos="2" side="tl" part="lem"/>
11633 <lit-tag v="prn.enc"/>
11634 <clip pos="2" side="tl" part="pers"/>
11635 <clip pos="2" side="tl" part="gen"/>
11636 <clip pos="2" side="tl" part="nbr"/>
11637 <clip pos="1" side="tl" part="lemq"/>
11638 </lu>
11639 <!-- </mlu> -->
11640 </chunk>
11641 </out>
11642 </otherwise>
11643 </choose>
11644 <let>
11645 <var n="caseFirstWord"/>
11646 <lit v="aa"/>
11647 </let>
11648 </action>
11649 </rule>
11652 <rule comment="REGLA: GER (per a col·locar la cua en les multiparaules)">
11653 <pattern>
11654 <pattern-item n="ger"/>
11655 </pattern>
11656 <action>
11657 <call-macro n="firstWord">
11658 <with-param pos="1"/>
11659 </call-macro>
11660 <call-macro n="tipus_verbs">
11661 <with-param pos="1"/>
11662 </call-macro>
11663 <choose>
11664 <when>
11665 <test>
11666 <equal>
11667 <var n="tipus_verb"/>
11668 <lit-tag v="pron"/>
11669 </equal>
11670 </test>
11671 <out>
11673 <chunk name="ger" case="caseFirstWord">
11674 <tags>
11675 <tag><lit-tag v="SV"/></tag>
11676 <tag><var n="tipus_verb"/></tag>
11677 <tag><clip pos="1" side="tl" part="temps"/></tag>
11678 <tag><lit-tag v="PD"/></tag>
11679 <tag><lit-tag v="ND"/></tag>
11680 </tags>
11681 <mlu>
11682 <lu>
11683 <clip pos="1" side="tl" part="lemh"/>
11684 <clip pos="1" side="tl" part="a_verb"/>
11685 <clip pos="1" side="tl" part="temps" link-to="3"/>
11687 </lu>
11688 <lu>
11689 <lit v="es"/>
11690 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
11691 <clip pos="1" side="tl" part="lemq"/>
11692 </lu>
11693 </mlu>
11694 </chunk>
11695 </out>
11696 </when>
11697 <otherwise>
11698 <out>
11699 <chunk name="ger" case="caseFirstWord">
11700 <tags>
11701 <tag><lit-tag v="SV"/></tag>
11702 <tag><var n="tipus_verb"/></tag>
11703 <tag><clip pos="1" side="tl" part="temps"/></tag>
11704 <tag><lit-tag v="PD"/></tag> <!-- BCN -->
11705 <tag><lit-tag v="ND"/></tag> <!-- BCN -->
11706 </tags>
11707 <lu>
11708 <clip pos="1" side="tl" part="lemh"/>
11709 <clip pos="1" side="tl" part="a_verb"/>
11710 <clip pos="1" side="tl" part="temps" link-to="3"/>
11711 <clip pos="1" side="tl" part="lemq"/>
11712 </lu>
11713 </chunk>
11714 </out>
11715 </otherwise>
11716 </choose>
11717 <let>
11718 <var n="caseFirstWord"/>
11719 <lit v="aa"/>
11720 </let>
11721 </action>
11722 </rule>
11724 <rule comment="REGLA: GER+clític">
11725 <pattern>
11726 <pattern-item n="ger"/>
11727 <pattern-item n="probj"/>
11728 </pattern>
11729 <action>
11730 <call-macro n="firstWord">
11731 <with-param pos="1"/>
11732 </call-macro>
11733 <call-macro n="tipus_verbs">
11734 <with-param pos="1"/>
11735 </call-macro>
11736 <choose>
11737 <when>
11738 <test>
11739 <equal>
11740 <var n="tipus_verb"/>
11741 <lit-tag v="pron"/>
11742 </equal>
11743 </test>
11744 <out>
11745 <chunk name="ger_enc" case="caseFirstWord">
11746 <tags>
11747 <tag><lit-tag v="SV"/></tag>
11748 <tag><var n="tipus_verb"/></tag>
11749 <tag><clip pos="1" side="tl" part="temps"/></tag>
11750 <tag><lit-tag v="PD"/></tag>
11751 <tag><lit-tag v="ND"/></tag>
11752 </tags>
11753 <!-- <mlu> -->
11754 <lu>
11755 <clip pos="1" side="tl" part="lemh"/>
11756 <clip pos="1" side="tl" part="a_verb"/>
11757 <clip pos="1" side="tl" part="temps" link-to="3"/>
11758 </lu>
11759 <b/>
11760 <lu>
11761 <lit v="es"/>
11762 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
11763 </lu>
11764 <b pos="1"/>
11765 <lu>
11766 <clip pos="2" side="tl" part="lem"/>
11767 <lit-tag v="prn.enc"/>
11768 <clip pos="2" side="tl" part="pers"/>
11769 <clip pos="2" side="tl" part="gen"/>
11770 <clip pos="2" side="tl" part="nbr"/>
11771 <clip pos="1" side="tl" part="lemq"/>
11772 </lu>
11773 <!-- </mlu> -->
11774 </chunk>
11775 </out>
11776 </when>
11777 <otherwise>
11778 <out>
11779 <chunk name="ger_enc" case="caseFirstWord">
11780 <tags>
11781 <tag><lit-tag v="SV"/></tag>
11782 <tag><var n="tipus_verb"/></tag>
11783 <tag><clip pos="1" side="tl" part="temps"/></tag>
11784 <tag><lit-tag v="PD"/></tag>
11785 <tag><lit-tag v="ND"/></tag>
11786 </tags>
11787 <!-- <mlu> -->
11788 <lu>
11789 <clip pos="1" side="tl" part="lemh"/>
11790 <clip pos="1" side="tl" part="a_verb"/>
11791 <clip pos="1" side="tl" part="temps" link-to="3"/>
11792 </lu>
11793 <b pos="1"/>
11794 <lu>
11795 <clip pos="2" side="tl" part="lem"/>
11796 <lit-tag v="prn.enc"/>
11797 <clip pos="2" side="tl" part="pers"/>
11798 <clip pos="2" side="tl" part="gen"/>
11799 <clip pos="2" side="tl" part="nbr"/>
11800 <clip pos="1" side="tl" part="lemq"/>
11801 </lu>
11802 <!-- </mlu> -->
11803 </chunk>
11804 </out>
11805 </otherwise>
11806 </choose>
11807 <let>
11808 <var n="caseFirstWord"/>
11809 <lit v="aa"/>
11810 </let>
11811 </action>
11812 </rule>
11815 <rule comment="REGLA: PREP GER ">
11816 <pattern>
11817 <pattern-item n="prep_cnjadv"/>
11818 <pattern-item n="ger"/>
11819 </pattern>
11820 <action>
11821 <call-macro n="firstWord">
11822 <with-param pos="1"/>
11823 </call-macro>
11824 <call-macro n="tipus_verbs">
11825 <with-param pos="2"/>
11826 </call-macro>
11827 <let>
11828 <clip pos="2" side="tl" part="temps"/>
11829 <lit-tag v="inf"/>
11830 </let>
11831 <choose>
11832 <when>
11833 <test>
11834 <equal>
11835 <clip pos="1" side="sl" part="lem"/>
11836 <lit v="before"/>
11837 </equal>
11838 </test>
11839 <let>
11840 <clip pos="1" side="tl" part="lem"/>
11841 <lit v="abans de"/>
11842 </let>
11843 </when>
11844 <when>
11845 <test>
11846 <equal>
11847 <clip pos="1" side="sl" part="lem"/>
11848 <lit v="after"/>
11849 </equal>
11850 </test>
11851 <let>
11852 <clip pos="1" side="tl" part="lem"/>
11853 <lit v="després de"/>
11854 </let>
11855 </when>
11856 </choose>
11857 <out>
11858 <chunk name="pr" case="caseFirstWord">
11859 <tags>
11860 <tag><lit-tag v="PREP"/></tag>
11861 </tags>
11862 <lu>
11863 <clip pos="1" side="tl" part="lem"/>
11864 <lit-tag v="pr"/><!--perquè per a 'before' i 'after' no envii <cnjadv> -->
11865 </lu>
11866 </chunk>
11867 <b pos="1"/>
11868 </out>
11869 <choose>
11870 <when>
11871 <test>
11872 <equal>
11873 <var n="tipus_verb"/>
11874 <lit-tag v="pron"/>
11875 </equal>
11876 </test>
11877 <out>
11878 <chunk name="inf">
11879 <tags>
11880 <tag><lit-tag v="SV"/></tag>
11881 <tag><var n="tipus_verb"/></tag>
11882 <tag><clip pos="2" side="tl" part="temps"/></tag>
11883 </tags>
11884 <mlu>
11885 <lu>
11886 <clip pos="2" side="tl" part="lemh"/>
11887 <clip pos="2" side="tl" part="a_verb"/>
11888 <clip pos="2" side="tl" part="temps" link-to="3"/>
11890 </lu>
11891 <lu>
11892 <lit v="es"/>
11893 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
11894 <clip pos="2" side="tl" part="lemq"/>
11895 </lu>
11896 </mlu>
11897 </chunk>
11898 </out>
11899 </when>
11900 <otherwise>
11901 <out>
11902 <chunk name="inf">
11903 <tags>
11904 <tag><lit-tag v="SV"/></tag>
11905 <tag><var n="tipus_verb"/></tag>
11906 <tag><clip pos="2" side="tl" part="temps"/></tag>
11907 </tags>
11908 <lu>
11909 <clip pos="2" side="tl" part="lemh"/>
11910 <clip pos="2" side="tl" part="a_verb"/>
11911 <clip pos="2" side="tl" part="temps" link-to="3"/>
11912 <clip pos="2" side="tl" part="lemq"/>
11913 </lu>
11914 </chunk>
11915 </out>
11916 </otherwise>
11917 </choose>
11918 <let>
11919 <var n="caseFirstWord"/>
11920 <lit v="aa"/>
11921 </let>
11922 </action>
11923 </rule>
11925 <rule comment="REGLA: PREP GER+clític">
11926 <pattern>
11927 <pattern-item n="prep_cnjadv"/>
11928 <pattern-item n="ger"/>
11929 <pattern-item n="probj"/>
11930 </pattern>
11931 <action>
11932 <call-macro n="firstWord">
11933 <with-param pos="1"/>
11934 </call-macro>
11935 <call-macro n="tipus_verbs">
11936 <with-param pos="2"/>
11937 </call-macro>
11938 <let>
11939 <clip pos="2" side="tl" part="temps"/>
11940 <lit-tag v="inf"/>
11941 </let>
11942 <choose>
11943 <when>
11944 <test>
11945 <equal>
11946 <clip pos="1" side="sl" part="lem"/>
11947 <lit v="before"/>
11948 </equal>
11949 </test>
11950 <let>
11951 <clip pos="1" side="tl" part="lem"/>
11952 <lit v="abans de"/>
11953 </let>
11954 </when>
11955 <when>
11956 <test>
11957 <equal>
11958 <clip pos="1" side="sl" part="lem"/>
11959 <lit v="after"/>
11960 </equal>
11961 </test>
11962 <let>
11963 <clip pos="1" side="tl" part="lem"/>
11964 <lit v="després de"/>
11965 </let>
11966 </when>
11967 </choose>
11968 <out>
11969 <chunk name="pr" case="caseFirstWord">
11970 <tags>
11971 <tag><lit-tag v="PREP"/></tag>
11972 </tags>
11973 <lu>
11974 <clip pos="1" side="tl" part="lem"/>
11975 <lit-tag v="pr"/><!--perquè per a 'before' i 'after' no envii <cnjadv> -->
11976 </lu>
11977 </chunk>
11978 <b pos="1"/>
11979 </out>
11980 <choose>
11981 <when>
11982 <test>
11983 <equal>
11984 <var n="tipus_verb"/>
11985 <lit-tag v="pron"/>
11986 </equal>
11987 </test>
11988 <out>
11989 <chunk name="inf_enc">
11990 <tags>
11991 <tag><lit-tag v="SV"/></tag>
11992 <tag><var n="tipus_verb"/></tag>
11993 <tag><clip pos="2" side="tl" part="temps"/></tag>
11994 </tags>
11995 <mlu>
11996 <lu>
11997 <clip pos="2" side="tl" part="lemh"/>
11998 <clip pos="2" side="tl" part="a_verb"/>
11999 <clip pos="2" side="tl" part="temps" link-to="3"/>
12001 </lu>
12002 <lu>
12003 <lit v="es"/>
12004 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
12005 </lu>
12006 <lu>
12007 <clip pos="3" side="tl" part="lem"/>
12008 <lit-tag v="prn.enc"/>
12009 <clip pos="3" side="tl" part="pers"/>
12010 <clip pos="3" side="tl" part="gen"/>
12011 <clip pos="3" side="tl" part="nbr"/>
12012 <clip pos="2" side="tl" part="lemq"/>
12013 </lu>
12014 </mlu>
12015 </chunk>
12016 </out>
12017 </when>
12018 <otherwise>
12019 <out>
12020 <chunk name="inf_enc">
12021 <tags>
12022 <tag><lit-tag v="SV"/></tag>
12023 <tag><var n="tipus_verb"/></tag>
12024 <tag><clip pos="2" side="tl" part="temps"/></tag>
12025 </tags>
12026 <mlu>
12027 <lu>
12028 <clip pos="2" side="tl" part="lemh"/>
12029 <clip pos="2" side="tl" part="a_verb"/>
12030 <clip pos="2" side="tl" part="temps" link-to="3"/>
12031 </lu>
12032 <lu>
12033 <clip pos="3" side="tl" part="lem"/>
12034 <lit-tag v="prn.enc"/>
12035 <clip pos="3" side="tl" part="pers"/>
12036 <clip pos="3" side="tl" part="gen"/>
12037 <clip pos="3" side="tl" part="nbr"/>
12038 <clip pos="2" side="tl" part="lemq"/>
12039 </lu>
12040 </mlu>
12041 </chunk>
12042 </out>
12043 </otherwise>
12044 </choose>
12045 <let>
12046 <var n="caseFirstWord"/>
12047 <lit v="aa"/>
12048 </let>
12049 </action>
12050 </rule>
12053 <rule comment="PREP HAVERger PARTICIPI (without having finished - sense haver(inf) acabat)">
12054 <pattern>
12055 <pattern-item n="prep_cnjadv"/>
12056 <pattern-item n="haveger"/>
12057 <pattern-item n="pp"/>
12058 </pattern>
12059 <action>
12060 <call-macro n="firstWord">
12061 <with-param pos="1"/>
12062 </call-macro>
12063 <call-macro n="tipus_verbs">
12064 <with-param pos="3"/>
12065 </call-macro>
12066 <call-macro n="pron">
12067 <with-param pos="3"/>
12068 </call-macro>
12069 <let>
12070 <clip pos="2" side="tl" part="temps"/>
12071 <lit-tag v="inf"/>
12072 </let>
12073 <choose>
12074 <when>
12075 <test>
12076 <equal>
12077 <clip pos="1" side="sl" part="lem"/>
12078 <lit v="before"/>
12079 </equal>
12080 </test>
12081 <let>
12082 <clip pos="1" side="tl" part="lem"/>
12083 <lit v="abans de"/>
12084 </let>
12085 </when>
12086 <when>
12087 <test>
12088 <equal>
12089 <clip pos="1" side="sl" part="lem"/>
12090 <lit v="after"/>
12091 </equal>
12092 </test>
12093 <let>
12094 <clip pos="1" side="tl" part="lem"/>
12095 <lit v="després de"/>
12096 </let>
12097 </when>
12098 </choose>
12099 <out>
12100 <chunk name="pr" case="caseFirstWord">
12101 <tags>
12102 <tag><lit-tag v="PREP"/></tag>
12103 </tags>
12104 <lu>
12105 <clip pos="1" side="tl" part="lem"/>
12106 <lit-tag v="pr"/><!--perquè per a 'before' i 'after' no envii <cnjadv> -->
12107 </lu>
12108 </chunk>
12109 <b pos="1"/>
12110 <chunk name="have_pp">
12111 <tags>
12112 <tag><lit-tag v="SV"/></tag>
12113 <tag><var n="tipus_verb"/></tag>
12114 <tag><clip pos="2" side="tl" part="temps"/></tag>
12115 </tags>
12116 <lu>
12117 <var n="pronom"/>
12118 <clip pos="2" side="tl" part="lemh"/>
12119 <clip pos="2" side="tl" part="a_verb"/>
12120 <clip pos="2" side="tl" part="temps" link-to="3"/>
12121 <clip pos="2" side="tl" part="lemq"/>
12122 </lu>
12123 <b pos="2"/>
12124 <lu>
12125 <clip pos="3" side="tl" part="lemh"/>
12126 <clip pos="3" side="tl" part="a_pp"/>
12127 <lit-tag v="m.sg"/>
12128 <clip pos="3" side="tl" part="lemq"/>
12129 </lu>
12130 </chunk>
12131 </out>
12132 <let>
12133 <var n="caseFirstWord"/>
12134 <lit v="aa"/>
12135 </let>
12136 </action>
12137 </rule>
12139 <rule comment="PREP HAVERger PARTICIPI clític (without having finished it - sense haver-lo acabat)">
12140 <pattern>
12141 <pattern-item n="prep_cnjadv"/>
12142 <pattern-item n="have_aux"/>
12143 <pattern-item n="pp"/>
12144 <pattern-item n="probj"/>
12145 </pattern>
12146 <action>
12147 <call-macro n="firstWord">
12148 <with-param pos="1"/>
12149 </call-macro>
12150 <call-macro n="tipus_verbs">
12151 <with-param pos="3"/>
12152 </call-macro>
12153 <call-macro n="pron">
12154 <with-param pos="3"/>
12155 </call-macro>
12156 <let>
12157 <clip pos="2" side="tl" part="temps"/>
12158 <lit-tag v="inf"/>
12159 </let>
12160 <choose>
12161 <when>
12162 <test>
12163 <equal>
12164 <clip pos="1" side="sl" part="lem"/>
12165 <lit v="before"/>
12166 </equal>
12167 </test>
12168 <let>
12169 <clip pos="1" side="tl" part="lem"/>
12170 <lit v="abans de"/>
12171 </let>
12172 </when>
12173 <when>
12174 <test>
12175 <equal>
12176 <clip pos="1" side="sl" part="lem"/>
12177 <lit v="after"/>
12178 </equal>
12179 </test>
12180 <let>
12181 <clip pos="1" side="tl" part="lem"/>
12182 <lit v="després de"/>
12183 </let>
12184 </when>
12185 </choose>
12186 <out>
12187 <chunk name="pr" case="caseFirstWord">
12188 <tags>
12189 <tag><lit-tag v="PREP"/></tag>
12190 </tags>
12191 <lu>
12192 <clip pos="1" side="tl" part="lem"/>
12193 <lit-tag v="pr"/><!--perquè per a 'before' i 'after' no envii <cnjadv> -->
12194 </lu>
12195 </chunk>
12196 <b pos="1"/>
12197 <chunk name="have_enc_pp">
12198 <tags>
12199 <tag><lit-tag v="SV"/></tag>
12200 <tag><var n="tipus_verb"/></tag>
12201 <tag><clip pos="2" side="tl" part="temps"/></tag>
12202 <tag><clip pos="2" side="tl" part="pers"/></tag>
12203 <tag><clip pos="2" side="tl" part="nbr"/></tag>
12204 </tags>
12205 <mlu>
12206 <lu>
12207 <clip pos="2" side="tl" part="lemh"/>
12208 <clip pos="2" side="tl" part="a_verb"/>
12209 <clip pos="2" side="tl" part="temps" link-to="3"/>
12210 <clip pos="2" side="tl" part="lemq"/>
12211 </lu>
12212 <lu>
12213 <var n="pronom"/>
12214 <clip pos="4" side="tl" part="lem"/>
12215 <lit-tag v="prn.enc"/>
12216 <clip pos="4" side="tl" part="pers"/>
12217 <clip pos="4" side="tl" part="gen"/>
12218 <clip pos="4" side="tl" part="nbr"/>
12219 </lu>
12220 </mlu>
12221 <b pos="2"/>
12222 <lu>
12223 <clip pos="3" side="tl" part="lemh"/>
12224 <clip pos="3" side="tl" part="a_pp"/>
12225 <lit-tag v="m.sg"/>
12226 <clip pos="3" side="tl" part="lemq"/>
12227 </lu>
12228 </chunk>
12229 </out>
12230 <call-macro n="f_bcond">
12231 <with-param pos="1"/>
12232 </call-macro>
12233 <let>
12234 <var n="caseFirstWord"/>
12235 <lit v="aa"/>
12236 </let>
12237 </action>
12238 </rule>
12242 <!-- <rule comment="REGLA: PART.PRESENT (quan el nom al que acompanya és desconegut) 1ª APROXIMACIÓ">
12243 <pattern>
12244 <pattern-item n="pprs"/>
12245 </pattern>
12246 <action>
12247 <call-macro n="firstWord">
12248 <with-param pos="1"/>
12249 </call-macro>
12250 <call-macro n="tipus_verbs">
12251 <with-param pos="1"/>
12252 </call-macro>
12253 <out>
12254 <chunk name="pprs" case="caseFirstWord">
12255 <tags>
12256 <tag><lit-tag v="SV"/></tag>
12257 <tag><var n="tipus_verb"/></tag>
12258 <tag><lit-tag v="pprs"/></tag>
12259 </tags>
12260 <lu>
12261 <clip pos="1" side="tl" part="lemh"/>
12262 <clip pos="1" side="tl" part="a_verb"/>
12263 <clip pos="1" side="tl" part="temps" link-to="3"/>
12264 <clip pos="1" side="tl" part="lemq"/>
12265 </lu>
12266 </chunk>
12267 </out>
12268 <let>
12269 <var n="caseFirstWord"/>
12270 <lit v="aa"/>
12271 </let>
12272 </action>
12273 </rule> -->
12275 <rule comment="REGLA: VERB SUBS (living -> viure)">
12276 <pattern>
12277 <pattern-item n="vbsubs"/>
12278 </pattern>
12279 <action>
12280 <call-macro n="firstWord">
12281 <with-param pos="1"/>
12282 </call-macro>
12283 <call-macro n="tipus_verbs">
12284 <with-param pos="1"/>
12285 </call-macro>
12286 <out>
12287 <chunk name="subs" case="caseFirstWord">
12288 <tags>
12289 <tag><lit-tag v="SV"/></tag>
12290 <tag><var n="tipus_verb"/></tag>
12291 <tag><lit-tag v="inf"/></tag>
12292 </tags>
12293 <lu>
12294 <clip pos="1" side="tl" part="lemh"/>
12295 <clip pos="1" side="tl" part="a_verb"/>
12296 <clip pos="1" side="tl" part="temps" link-to="3"/>
12297 <clip pos="1" side="tl" part="lemq"/>
12298 </lu>
12299 </chunk>
12300 </out>
12301 <let>
12302 <var n="caseFirstWord"/>
12303 <lit v="aa"/>
12304 </let>
12305 </action>
12306 </rule>
12308 <rule comment="REGLA: VERB SUBS+clític (living it -> viure'l) ATENCIÓ: no he pogut comprovar si funciona -carmentano">
12309 <pattern>
12310 <pattern-item n="vbsubs"/>
12311 <pattern-item n="probj"/>
12312 </pattern>
12313 <action>
12314 <call-macro n="firstWord">
12315 <with-param pos="1"/>
12316 </call-macro>
12317 <call-macro n="tipus_verbs">
12318 <with-param pos="1"/>
12319 </call-macro>
12320 <out>
12321 <chunk name="subs_enc" case="caseFirstWord">
12322 <tags>
12323 <tag><lit-tag v="SV"/></tag>
12324 <tag><var n="tipus_verb"/></tag>
12325 <tag><lit-tag v="inf"/></tag>
12326 </tags>
12327 <mlu>
12328 <lu>
12329 <clip pos="1" side="tl" part="lemh"/>
12330 <clip pos="1" side="tl" part="a_verb"/>
12331 <clip pos="1" side="tl" part="temps" link-to="3"/>
12332 </lu>
12333 <lu>
12334 <clip pos="2" side="tl" part="lem"/>
12335 <lit-tag v="prn.enc"/>
12336 <clip pos="2" side="tl" part="pers"/>
12337 <clip pos="2" side="tl" part="gen"/>
12338 <clip pos="2" side="tl" part="nbr"/>
12339 <clip pos="1" side="tl" part="lemq"/>
12340 </lu>
12341 </mlu>
12342 </chunk>
12343 </out>
12344 <let>
12345 <var n="caseFirstWord"/>
12346 <lit v="aa"/>
12347 </let>
12348 </action>
12349 </rule>
12351 <rule comment="REGLA: VERB PART. Seran GD i ND excepte 'ser' i 'estar'. Caldria afegir el pp en les regles d'adjectiu?)">
12352 <pattern>
12353 <pattern-item n="pp"/>
12354 </pattern>
12355 <action>
12356 <call-macro n="firstWord">
12357 <with-param pos="1"/>
12358 </call-macro>
12359 <choose>
12360 <when><!--si és verb 'ser' o 'estar' només pot ser m sg -->
12361 <test>
12362 <or>
12363 <equal>
12364 <clip pos="1" side="tl" part="a_verb"/>
12365 <lit-tag v="vbser"/>
12366 </equal>
12367 <equal caseless="yes">
12368 <clip pos="1" side="tl" part="lemh"/>
12369 <lit v="estar"/><!--tb agafa multiparaules com 'estar d'acord' -->
12370 </equal>
12371 </or>
12372 </test>
12373 <out>
12374 <chunk name="pp" case="caseFirstWord">
12375 <tags>
12376 <tag><lit-tag v="SA"/></tag>
12377 <tag><lit-tag v="m"/></tag>
12378 <tag><lit-tag v="sg"/></tag>
12379 </tags>
12380 <lu>
12381 <clip pos="1" side="tl" part="lemh"/>
12382 <clip pos="1" side="tl" part="a_pp"/>
12383 <lit-tag v="m.sg"/>
12384 <clip pos="1" side="tl" part="lemq"/>
12385 </lu>
12386 </chunk>
12387 </out>
12388 </when>
12389 <otherwise>
12390 <out>
12391 <chunk name="pp" case="caseFirstWord">
12392 <tags>
12393 <tag><lit-tag v="SA"/></tag>
12394 <tag><lit-tag v="GD"/></tag>
12395 <tag><lit-tag v="ND"/></tag>
12396 </tags>
12397 <lu>
12398 <clip pos="1" side="tl" part="lemh"/>
12399 <clip pos="1" side="tl" part="a_pp"/>
12400 <lit-tag v="2"/>
12401 <lit-tag v="3"/>
12402 <clip pos="1" side="tl" part="lemq"/>
12403 </lu>
12404 </chunk>
12405 </out>
12406 </otherwise>
12407 </choose>
12408 <let>
12409 <var n="caseFirstWord"/>
12410 <lit v="aa"/>
12411 </let>
12412 </action>
12413 </rule>
12418 <rule comment="REGLA: AUX (de temps) VERB (will come, would come)">
12419 <pattern>
12420 <pattern-item n="auxtemps"/>
12421 <pattern-item n="infpres"/>
12422 </pattern>
12423 <action>
12424 <call-macro n="firstWord">
12425 <with-param pos="1"/>
12426 </call-macro>
12427 <call-macro n="tipus_verbs">
12428 <with-param pos="2"/>
12429 </call-macro>
12430 <call-macro n="pron">
12431 <with-param pos="2"/>
12432 </call-macro>
12434 <choose>
12435 <when>
12436 <test>
12437 <or>
12438 <equal caseless="yes">
12439 <clip pos="1" side="sl" part="lem"/>
12440 <lit v="will"/>
12441 </equal>
12442 <equal caseless="yes">
12443 <clip pos="1" side="sl" part="lem"/>
12444 <lit v="shall"/>
12445 </equal>
12446 </or>
12447 </test>
12448 <let>
12449 <clip pos="2" side="tl" part="temps"/>
12450 <lit-tag v="fti"/>
12451 </let>
12452 </when>
12453 <when>
12454 <test>
12455 <equal caseless="yes">
12456 <clip pos="1" side="sl" part="lem"/>
12457 <lit v="would"/>
12458 </equal>
12459 </test>
12460 <let>
12461 <clip pos="2" side="tl" part="temps"/>
12462 <lit-tag v="cni"/>
12463 </let>
12464 </when>
12465 </choose>
12467 <out>
12468 <chunk name="verbcj" case="caseFirstWord">
12469 <tags>
12470 <tag><lit-tag v="SV"/></tag>
12471 <tag><var n="tipus_verb"/></tag>
12472 <tag><clip pos="2" side="tl" part="temps"/></tag>
12473 <tag><lit-tag v="PD"/></tag>
12474 <tag><lit-tag v="ND"/></tag>
12475 </tags>
12476 <lu>
12477 <var n="pronom"/>
12478 <clip pos="2" side="tl" part="lemh"/>
12479 <clip pos="2" side="tl" part="a_verb"/>
12480 <clip pos="2" side="tl" part="temps" link-to="3"/>
12481 <lit-tag v="4"/>
12482 <lit-tag v="5"/>
12483 <clip pos="2" side="tl" part="lemq"/>
12484 </lu>
12485 </chunk>
12486 </out>
12487 <call-macro n="f_bcond">
12488 <with-param pos="1"/>
12489 </call-macro>
12490 <let>
12491 <var n="caseFirstWord"/>
12492 <lit v="aa"/>
12493 </let>
12494 </action>
12495 </rule>
12497 <rule comment="REGLA: AUX (de temps) VERB (will come, would come) + clític: will sing it -> el cantarà">
12498 <pattern>
12499 <pattern-item n="auxtemps"/>
12500 <pattern-item n="infpres"/>
12501 <pattern-item n="probj"/>
12502 </pattern>
12503 <action>
12504 <call-macro n="firstWord">
12505 <with-param pos="1"/>
12506 </call-macro>
12507 <call-macro n="tipus_verbs">
12508 <with-param pos="2"/>
12509 </call-macro>
12510 <call-macro n="pron">
12511 <with-param pos="2"/>
12512 </call-macro>
12514 <choose>
12515 <when>
12516 <test>
12517 <or>
12518 <equal caseless="yes">
12519 <clip pos="1" side="sl" part="lem"/>
12520 <lit v="will"/>
12521 </equal>
12522 <equal caseless="yes">
12523 <clip pos="1" side="sl" part="lem"/>
12524 <lit v="shall"/>
12525 </equal>
12526 </or>
12527 </test>
12528 <let>
12529 <clip pos="2" side="tl" part="temps"/>
12530 <lit-tag v="fti"/>
12531 </let>
12532 </when>
12533 <when>
12534 <test>
12535 <equal caseless="yes">
12536 <clip pos="1" side="sl" part="lem"/>
12537 <lit v="would"/>
12538 </equal>
12539 </test>
12540 <let>
12541 <clip pos="2" side="tl" part="temps"/>
12542 <lit-tag v="cni"/>
12543 </let>
12544 </when>
12545 </choose>
12547 <out>
12548 <chunk name="pro_verbcj" case="caseFirstWord">
12549 <tags>
12550 <tag><lit-tag v="SV"/></tag>
12551 <tag><var n="tipus_verb"/></tag>
12552 <tag><clip pos="2" side="tl" part="temps"/></tag>
12553 <tag><lit-tag v="PD"/></tag>
12554 <tag><lit-tag v="ND"/></tag>
12555 </tags>
12556 <lu>
12557 <var n="pronom"/>
12558 <clip pos="3" side="tl" part="lem"/>
12559 <clip pos="3" side="tl" part="a_prnpro"/>
12560 <clip pos="3" side="tl" part="pers"/>
12561 <clip pos="3" side="tl" part="gen"/>
12562 <clip pos="3" side="tl" part="nbr"/>
12563 </lu>
12564 <b pos="1"/>
12566 <lu>
12567 <clip pos="2" side="tl" part="lemh"/>
12568 <clip pos="2" side="tl" part="a_verb"/>
12569 <clip pos="2" side="tl" part="temps" link-to="3"/>
12570 <lit-tag v="4"/>
12571 <lit-tag v="5"/>
12572 <clip pos="2" side="tl" part="lemq"/>
12573 </lu>
12574 </chunk>
12575 </out>
12576 <call-macro n="f_bcond">
12577 <with-param pos="2"/>
12578 </call-macro>
12579 <let>
12580 <var n="caseFirstWord"/>
12581 <lit v="aa"/>
12582 </let>
12583 </action>
12584 </rule>
12589 <rule comment="REGLA: AUX (de mode) VERB (can come, should come)">
12590 <pattern>
12591 <pattern-item n="auxmod"/>
12592 <pattern-item n="infpres"/>
12593 </pattern>
12594 <action>
12595 <call-macro n="firstWord">
12596 <with-param pos="1"/>
12597 </call-macro>
12598 <call-macro n="tipus_verbs">
12599 <with-param pos="2"/>
12600 </call-macro>
12601 <call-macro n="pron">
12602 <with-param pos="2"/>
12603 </call-macro>
12605 <choose>
12606 <when>
12607 <test>
12608 <and>
12609 <equal caseless="yes">
12610 <clip pos="1" side="sl" part="lem"/>
12611 <lit v="can"/>
12612 </equal>
12613 <equal>
12614 <clip pos="1" side="sl" part="temps"/>
12615 <lit-tag v="pres"/>
12616 </equal>
12617 </and>
12618 </test>
12619 <let>
12620 <clip pos="1" side="tl" part="temps"/>
12621 <lit-tag v="pri"/>
12622 </let>
12623 </when>
12624 <when>
12625 <test>
12626 <and>
12627 <equal caseless="yes">
12628 <clip pos="1" side="sl" part="lem"/>
12629 <lit v="can"/>
12630 </equal>
12631 <equal>
12632 <clip pos="1" side="sl" part="temps"/>
12633 <lit-tag v="past"/>
12634 </equal>
12635 </and>
12636 </test>
12637 <let>
12638 <clip pos="1" side="tl" part="temps"/>
12639 <lit-tag v="cni"/>
12640 </let>
12641 </when>
12642 <when>
12643 <test>
12644 <or>
12645 <equal caseless="yes">
12646 <clip pos="1" side="sl" part="lem"/>
12647 <lit v="must"/>
12648 </equal>
12649 <equal caseless="yes">
12650 <clip pos="1" side="sl" part="lem"/>
12651 <lit v="may"/>
12652 </equal>
12653 </or>
12654 </test>
12655 <let>
12656 <clip pos="1" side="tl" part="temps"/>
12657 <lit-tag v="pri"/>
12658 </let>
12659 </when>
12660 <when>
12661 <test>
12662 <or>
12663 <equal caseless="yes">
12664 <clip pos="1" side="sl" part="lem"/>
12665 <lit v="should"/>
12666 </equal>
12667 <equal caseless="yes">
12668 <clip pos="1" side="sl" part="lem"/>
12669 <lit v="might"/>
12670 </equal>
12671 </or>
12672 </test>
12673 <let>
12674 <clip pos="1" side="tl" part="temps"/>
12675 <lit-tag v="cni"/>
12676 </let>
12677 </when>
12678 </choose>
12679 <out>
12680 <chunk name="auxmod_inf" case="caseFirstWord">
12681 <tags>
12682 <tag><lit-tag v="SV"/></tag>
12683 <tag><var n="tipus_verb"/></tag>
12684 <tag><clip pos="1" side="tl" part="temps"/></tag>
12685 <tag><lit-tag v="PD"/></tag>
12686 <tag><lit-tag v="ND"/></tag>
12687 </tags>
12688 <lu>
12689 <var n="pronom"/>
12690 <clip pos="1" side="tl" part="lemh"/>
12691 <clip pos="1" side="tl" part="a_verb"/>
12692 <clip pos="1" side="tl" part="temps" link-to="3"/>
12693 <lit-tag v="4"/>
12694 <lit-tag v="5"/>
12695 <clip pos="1" side="tl" part="lemq"/>
12696 </lu>
12697 <b pos="1"/>
12698 <lu>
12699 <clip pos="2" side="tl" part="lemh"/>
12700 <clip pos="2" side="tl" part="a_verb"/>
12701 <lit-tag v="inf"/>
12702 <clip pos="2" side="tl" part="lemq"/>
12703 </lu>
12704 </chunk>
12705 </out>
12706 <let>
12707 <var n="caseFirstWord"/>
12708 <lit v="aa"/>
12709 </let>
12710 </action>
12711 </rule>
12713 <rule comment="REGLA: AUX (de mode) VERB (can come, should come) + clític (she should sing it -> l'hauria de cantar)">
12714 <pattern>
12715 <pattern-item n="auxmod"/>
12716 <pattern-item n="infpres"/>
12717 <pattern-item n="probj"/>
12718 </pattern>
12719 <action>
12720 <call-macro n="firstWord">
12721 <with-param pos="1"/>
12722 </call-macro>
12723 <call-macro n="tipus_verbs">
12724 <with-param pos="2"/>
12725 </call-macro>
12726 <call-macro n="pron">
12727 <with-param pos="2"/>
12728 </call-macro>
12730 <choose>
12731 <when>
12732 <test>
12733 <and>
12734 <equal caseless="yes">
12735 <clip pos="1" side="sl" part="lem"/>
12736 <lit v="can"/>
12737 </equal>
12738 <equal>
12739 <clip pos="1" side="sl" part="temps"/>
12740 <lit-tag v="pres"/>
12741 </equal>
12742 </and>
12743 </test>
12744 <let>
12745 <clip pos="1" side="tl" part="temps"/>
12746 <lit-tag v="pri"/>
12747 </let>
12748 </when>
12749 <when>
12750 <test>
12751 <and>
12752 <equal caseless="yes">
12753 <clip pos="1" side="sl" part="lem"/>
12754 <lit v="can"/>
12755 </equal>
12756 <equal>
12757 <clip pos="1" side="sl" part="temps"/>
12758 <lit-tag v="past"/>
12759 </equal>
12760 </and>
12761 </test>
12762 <let>
12763 <clip pos="1" side="tl" part="temps"/>
12764 <lit-tag v="cni"/>
12765 </let>
12766 </when>
12767 <when>
12768 <test>
12769 <or>
12770 <equal caseless="yes">
12771 <clip pos="1" side="sl" part="lem"/>
12772 <lit v="must"/>
12773 </equal>
12774 <equal caseless="yes">
12775 <clip pos="1" side="sl" part="lem"/>
12776 <lit v="may"/>
12777 </equal>
12778 </or>
12779 </test>
12780 <let>
12781 <clip pos="1" side="tl" part="temps"/>
12782 <lit-tag v="pri"/>
12783 </let>
12784 </when>
12785 <when>
12786 <test>
12787 <or>
12788 <equal caseless="yes">
12789 <clip pos="1" side="sl" part="lem"/>
12790 <lit v="should"/>
12791 </equal>
12792 <equal caseless="yes">
12793 <clip pos="1" side="sl" part="lem"/>
12794 <lit v="might"/>
12795 </equal>
12796 </or>
12797 </test>
12798 <let>
12799 <clip pos="1" side="tl" part="temps"/>
12800 <lit-tag v="cni"/>
12801 </let>
12802 </when>
12803 </choose>
12804 <out>
12805 <chunk name="pro_auxmod_inf" case="caseFirstWord">
12806 <tags>
12807 <tag><lit-tag v="SV"/></tag>
12808 <tag><var n="tipus_verb"/></tag>
12809 <tag><clip pos="1" side="tl" part="temps"/></tag>
12810 <tag><lit-tag v="PD"/></tag>
12811 <tag><lit-tag v="ND"/></tag>
12812 </tags>
12813 <lu>
12814 <var n="pronom"/>
12815 <clip pos="3" side="tl" part="lem"/>
12816 <clip pos="3" side="tl" part="a_prnpro"/>
12817 <clip pos="3" side="tl" part="pers"/>
12818 <clip pos="3" side="tl" part="gen"/>
12819 <clip pos="3" side="tl" part="nbr"/>
12820 </lu>
12821 <b pos="1"/>
12822 <lu>
12823 <clip pos="1" side="tl" part="lemh"/>
12824 <clip pos="1" side="tl" part="a_verb"/>
12825 <clip pos="1" side="tl" part="temps" link-to="3"/>
12826 <lit-tag v="4"/>
12827 <lit-tag v="5"/>
12828 <clip pos="1" side="tl" part="lemq"/>
12829 </lu>
12830 <b pos="2"/>
12831 <lu>
12832 <clip pos="2" side="tl" part="lemh"/>
12833 <clip pos="2" side="tl" part="a_verb"/>
12834 <lit-tag v="inf"/>
12835 <clip pos="2" side="tl" part="lemq"/>
12836 </lu>
12837 </chunk>
12838 </out>
12839 <let>
12840 <var n="caseFirstWord"/>
12841 <lit v="aa"/>
12842 </let>
12843 </action>
12844 </rule>
12847 <rule comment="REGLA: DO (aux) VERB (do come, did come -> vénen, van venir)">
12848 <pattern>
12849 <pattern-item n="do"/>
12850 <pattern-item n="infpres"/>
12851 </pattern>
12852 <action>
12853 <call-macro n="firstWord">
12854 <with-param pos="1"/>
12855 </call-macro>
12856 <call-macro n="tipus_verbs">
12857 <with-param pos="2"/>
12858 </call-macro>
12859 <call-macro n="pron">
12860 <with-param pos="2"/>
12861 </call-macro>
12863 <choose>
12864 <when>
12865 <test>
12866 <equal>
12867 <clip pos="1" side="sl" part="temps"/>
12868 <lit-tag v="pri"/>
12869 </equal>
12870 </test>
12871 <let>
12872 <clip pos="2" side="tl" part="temps"/>
12873 <lit-tag v="pri"/>
12874 </let>
12875 <out>
12876 <chunk name="verbcj" case="caseFirstWord">
12877 <tags>
12878 <tag><lit-tag v="SV"/></tag>
12879 <tag><var n="tipus_verb"/></tag>
12880 <tag><clip pos="2" side="tl" part="temps"/></tag>
12881 <tag><clip pos="1" side="sl" part="pers"/></tag>
12882 <tag><clip pos="1" side="sl" part="nbr"/></tag>
12883 </tags>
12884 <lu>
12885 <var n="pronom"/>
12886 <clip pos="2" side="tl" part="lemh"/>
12887 <clip pos="2" side="tl" part="a_verb"/>
12888 <clip pos="2" side="tl" part="temps" link-to="3"/>
12889 <clip pos="1" side="sl" part="pers" link-to="4"/>
12890 <clip pos="1" side="sl" part="nbr" link-to="5"/>
12891 <clip pos="2" side="tl" part="lemq"/>
12892 </lu>
12893 </chunk>
12894 </out>
12895 </when>
12896 <when>
12897 <test>
12898 <or>
12899 <equal>
12900 <clip pos="1" side="sl" part="temps"/>
12901 <lit-tag v="pres"/>
12902 </equal>
12903 <equal>
12904 <clip pos="1" side="sl" part="temps"/>
12905 <lit-tag v="inf"/>
12906 </equal>
12907 </or>
12908 </test>
12909 <let>
12910 <clip pos="2" side="tl" part="temps"/>
12911 <lit-tag v="pri"/>
12912 </let>
12913 <out>
12914 <chunk name="verbcj" case="caseFirstWord">
12915 <tags>
12916 <tag><lit-tag v="SV"/></tag>
12917 <tag><var n="tipus_verb"/></tag>
12918 <tag><clip pos="2" side="tl" part="temps"/></tag>
12919 <tag><lit-tag v="PD"/></tag>
12920 <tag><lit-tag v="ND"/></tag>
12921 </tags>
12922 <lu>
12923 <var n="pronom"/>
12924 <clip pos="2" side="tl" part="lemh"/>
12925 <clip pos="2" side="tl" part="a_verb"/>
12926 <clip pos="2" side="tl" part="temps" link-to="3"/>
12927 <lit-tag v="4"/>
12928 <lit-tag v="5"/>
12929 <clip pos="2" side="tl" part="lemq"/>
12930 </lu>
12931 </chunk>
12932 </out>
12933 </when>
12934 <when>
12935 <test>
12936 <equal>
12937 <clip pos="1" side="sl" part="temps"/>
12938 <lit-tag v="past"/>
12939 </equal>
12940 </test>
12942 <out>
12943 <chunk name="verbcj_perif" case="caseFirstWord">
12944 <tags>
12945 <tag><lit-tag v="SV"/></tag>
12946 <tag><var n="tipus_verb"/></tag>
12947 <tag><lit-tag v="ifip"/></tag>
12948 <tag><lit-tag v="PD"/></tag>
12949 <tag><lit-tag v="ND"/></tag>
12950 </tags>
12951 <lu>
12952 <var n="pronom"/>
12953 <lit v="anar"/>
12954 <lit-tag v="vaux"/>
12955 <lit-tag v="4"/>
12956 <lit-tag v="5"/>
12957 </lu>
12958 <b/>
12959 <lu>
12960 <clip pos="2" side="tl" part="lemh"/>
12961 <clip pos="2" side="tl" part="a_verb"/>
12962 <lit-tag v="inf"/>
12963 <clip pos="2" side="tl" part="lemq"/>
12964 </lu>
12965 </chunk>
12966 </out>
12967 </when>
12968 </choose>
12969 <call-macro n="f_bcond">
12970 <with-param pos="1"/>
12971 </call-macro>
12972 <let>
12973 <var n="caseFirstWord"/>
12974 <lit v="aa"/>
12975 </let>
12976 </action>
12977 </rule>
12979 <rule comment="REGLA: DO (aux) VERB + clític (do come, did come -> vénen, van venir)">
12980 <pattern>
12981 <pattern-item n="do"/>
12982 <pattern-item n="infpres"/>
12983 <pattern-item n="probj"/>
12984 </pattern>
12985 <action>
12986 <call-macro n="firstWord">
12987 <with-param pos="1"/>
12988 </call-macro>
12989 <call-macro n="tipus_verbs">
12990 <with-param pos="2"/>
12991 </call-macro>
12992 <call-macro n="pron">
12993 <with-param pos="2"/>
12994 </call-macro>
12996 <choose>
12997 <when>
12998 <test>
12999 <equal>
13000 <clip pos="1" side="sl" part="temps"/>
13001 <lit-tag v="pri"/>
13002 </equal>
13003 </test>
13004 <let>
13005 <clip pos="2" side="tl" part="temps"/>
13006 <lit-tag v="pri"/>
13007 </let>
13008 <out>
13009 <chunk name="pro_verbcj" case="caseFirstWord">
13010 <tags>
13011 <tag><lit-tag v="SV"/></tag>
13012 <tag><var n="tipus_verb"/></tag>
13013 <tag><clip pos="2" side="tl" part="temps"/></tag>
13014 <tag><clip pos="1" side="sl" part="pers"/></tag>
13015 <tag><clip pos="1" side="sl" part="nbr"/></tag>
13016 </tags>
13017 <lu>
13018 <var n="pronom"/>
13019 <clip pos="3" side="tl" part="lem"/>
13020 <clip pos="3" side="tl" part="a_prnpro"/>
13021 <clip pos="3" side="tl" part="pers"/>
13022 <clip pos="3" side="tl" part="gen"/>
13023 <clip pos="3" side="tl" part="nbr"/>
13024 </lu>
13025 <b pos="1"/>
13026 <lu>
13027 <clip pos="2" side="tl" part="lemh"/>
13028 <clip pos="2" side="tl" part="a_verb"/>
13029 <clip pos="2" side="tl" part="temps" link-to="3"/>
13030 <clip pos="1" side="sl" part="pers" link-to="4"/>
13031 <clip pos="1" side="sl" part="nbr" link-to="5"/>
13032 <clip pos="2" side="tl" part="lemq"/>
13033 </lu>
13034 </chunk>
13035 </out>
13036 </when>
13037 <when>
13038 <test>
13039 <or>
13040 <equal>
13041 <clip pos="1" side="sl" part="temps"/>
13042 <lit-tag v="pres"/>
13043 </equal>
13044 <equal>
13045 <clip pos="1" side="sl" part="temps"/>
13046 <lit-tag v="inf"/>
13047 </equal>
13048 </or>
13049 </test>
13050 <let>
13051 <clip pos="2" side="tl" part="temps"/>
13052 <lit-tag v="pri"/>
13053 </let>
13054 <out>
13055 <chunk name="pro_verbcj" case="caseFirstWord">
13056 <tags>
13057 <tag><lit-tag v="SV"/></tag>
13058 <tag><var n="tipus_verb"/></tag>
13059 <tag><clip pos="2" side="tl" part="temps"/></tag>
13060 <tag><lit-tag v="PD"/></tag>
13061 <tag><lit-tag v="ND"/></tag>
13062 </tags>
13063 <lu>
13064 <var n="pronom"/>
13065 <clip pos="3" side="tl" part="lem"/>
13066 <clip pos="3" side="tl" part="a_prnpro"/>
13067 <clip pos="3" side="tl" part="pers"/>
13068 <clip pos="3" side="tl" part="gen"/>
13069 <clip pos="3" side="tl" part="nbr"/>
13070 </lu>
13071 <b pos="1"/>
13072 <lu>
13073 <clip pos="2" side="tl" part="lemh"/>
13074 <clip pos="2" side="tl" part="a_verb"/>
13075 <clip pos="2" side="tl" part="temps" link-to="3"/>
13076 <lit-tag v="4"/>
13077 <lit-tag v="5"/>
13078 <clip pos="2" side="tl" part="lemq"/>
13079 </lu>
13080 </chunk>
13081 </out>
13082 </when>
13083 <when>
13084 <test>
13085 <equal>
13086 <clip pos="1" side="sl" part="temps"/>
13087 <lit-tag v="past"/>
13088 </equal>
13089 </test>
13091 <out>
13092 <chunk name="pro_verbcj_perif" case="caseFirstWord">
13093 <tags>
13094 <tag><lit-tag v="SV"/></tag>
13095 <tag><var n="tipus_verb"/></tag>
13096 <tag><lit-tag v="ifip"/></tag>
13097 <tag><lit-tag v="PD"/></tag>
13098 <tag><lit-tag v="ND"/></tag>
13099 </tags>
13100 <lu>
13101 <var n="pronom"/>
13102 <clip pos="3" side="tl" part="lem"/>
13103 <clip pos="3" side="tl" part="a_prnpro"/>
13104 <clip pos="3" side="tl" part="pers"/>
13105 <clip pos="3" side="tl" part="gen"/>
13106 <clip pos="3" side="tl" part="nbr"/>
13107 </lu>
13108 <b pos="1"/>
13109 <lu>
13110 <lit v="anar"/>
13111 <lit-tag v="vaux"/>
13112 <lit-tag v="4"/>
13113 <lit-tag v="5"/>
13114 </lu>
13115 <b/>
13116 <lu>
13117 <clip pos="2" side="tl" part="lemh"/>
13118 <clip pos="2" side="tl" part="a_verb"/>
13119 <lit-tag v="inf"/>
13120 <clip pos="2" side="tl" part="lemq"/>
13121 </lu>
13122 </chunk>
13123 </out>
13124 </when>
13125 </choose>
13126 <call-macro n="f_bcond">
13127 <with-param pos="1"/>
13128 </call-macro>
13129 <let>
13130 <var n="caseFirstWord"/>
13131 <lit v="aa"/>
13132 </let>
13133 </action>
13134 </rule>
13137 <rule comment="REGLA: MODAL conjugable + VERB (had to come - va/van haver de venir)">
13139 <pattern>
13140 <pattern-item n="mod"/>
13141 <pattern-item n="infpres"/>
13142 </pattern>
13143 <action>
13144 <call-macro n="firstWord">
13145 <with-param pos="1"/>
13146 </call-macro>
13147 <call-macro n="tipus_verbs">
13148 <with-param pos="2"/>
13149 </call-macro>
13150 <call-macro n="pron">
13151 <with-param pos="2"/>
13152 </call-macro>
13154 <choose>
13155 <when>
13156 <test>
13157 <or>
13158 <equal><!--De moment no sé si el tagger escull bé i els detecto els dos -->
13159 <clip pos="1" side="sl" part="temps"/>
13160 <lit-tag v="inf"/>
13161 </equal>
13162 <equal>
13163 <clip pos="1" side="sl" part="temps"/>
13164 <lit-tag v="pres"/>
13165 </equal>
13166 </or>
13167 </test>
13168 <let>
13169 <clip pos="1" side="tl" part="temps"/>
13170 <lit-tag v="pri"/>
13171 </let>
13172 <out>
13173 <chunk name="mod_inf" case="caseFirstWord">
13174 <tags>
13175 <tag><lit-tag v="SV"/></tag>
13176 <tag><var n="tipus_verb"/></tag>
13177 <tag><clip pos="1" side="tl" part="temps"/></tag>
13178 <tag><lit-tag v="PD"/></tag>
13179 <tag><lit-tag v="ND"/></tag>
13180 </tags>
13181 <lu>
13182 <var n="pronom"/>
13183 <clip pos="1" side="tl" part="lemh"/>
13184 <clip pos="1" side="tl" part="a_verb"/>
13185 <clip pos="1" side="tl" part="temps" link-to="3"/>
13186 <lit-tag v="4"/>
13187 <lit-tag v="5"/>
13188 <clip pos="1" side="tl" part="lemq"/>
13189 </lu>
13190 <b pos="1"/>
13191 <lu>
13192 <clip pos="2" side="tl" part="lemh"/>
13193 <clip pos="2" side="tl" part="a_verb"/>
13194 <lit-tag v="inf"/>
13195 <clip pos="2" side="tl" part="lemq"/>
13196 </lu>
13197 </chunk>
13198 </out>
13199 </when>
13201 <when>
13202 <test>
13203 <or>
13204 <equal>
13205 <clip pos="1" side="sl" part="temps"/>
13206 <lit-tag v="past"/>
13207 </equal>
13208 <equal>
13209 <clip pos="1" side="sl" part="temps"/>
13210 <lit-tag v="pp"/>
13211 </equal>
13212 </or>
13213 </test>
13214 <let>
13215 <clip pos="1" side="tl" part="temps"/>
13216 <lit-tag v="inf"/>
13217 </let>
13218 <out>
13219 <chunk name="mod_inf_perif" case="caseFirstWord">
13220 <tags>
13221 <tag><lit-tag v="SV"/></tag>
13222 <tag><var n="tipus_verb"/></tag>
13223 <tag><lit-tag v="ifip"/></tag>
13224 <tag><lit-tag v="PD"/></tag>
13225 <tag><lit-tag v="ND"/></tag>
13226 </tags>
13227 <lu>
13228 <var n="pronom"/>
13229 <lit v="anar"/>
13230 <lit-tag v="vaux"/>
13231 <lit-tag v="4"/>
13232 <lit-tag v="5"/>
13233 </lu>
13234 <b/>
13235 <lu>
13236 <clip pos="1" side="tl" part="lemh"/>
13237 <clip pos="1" side="tl" part="a_verb"/>
13238 <clip pos="1" side="tl" part="temps"/>
13239 <clip pos="1" side="tl" part="lemq"/>
13240 </lu>
13241 <b pos="1"/>
13242 <lu>
13243 <clip pos="2" side="tl" part="lemh"/>
13244 <clip pos="2" side="tl" part="a_verb"/>
13245 <lit-tag v="inf"/>
13246 <clip pos="2" side="tl" part="lemq"/>
13247 </lu>
13248 </chunk>
13249 </out>
13250 </when>
13252 <otherwise><!-- Quan és pri 3a sg (has) té gen i nbr-->
13253 <out>
13254 <chunk name="mod_inf" case="caseFirstWord">
13255 <tags>
13256 <tag><lit-tag v="SV"/></tag>
13257 <tag><var n="tipus_verb"/></tag>
13258 <tag><clip pos="1" side="tl" part="temps"/></tag>
13259 <tag><clip pos="1" side="tl" part="pers"/></tag>
13260 <tag><clip pos="1" side="tl" part="nbr"/></tag>
13261 </tags>
13262 <lu>
13263 <var n="pronom"/>
13264 <clip pos="1" side="tl" part="lemh"/>
13265 <clip pos="1" side="tl" part="a_verb"/>
13266 <clip pos="1" side="tl" part="temps" link-to="3"/>
13267 <clip pos="1" side="tl" part="pers" link-to="4"/>
13268 <clip pos="1" side="tl" part="nbr" link-to="5"/>
13269 <clip pos="1" side="tl" part="lemq"/>
13270 </lu>
13271 <b pos="1"/>
13272 <lu>
13273 <clip pos="2" side="tl" part="lemh"/>
13274 <clip pos="2" side="tl" part="a_verb"/>
13275 <lit-tag v="inf"/>
13276 <clip pos="2" side="tl" part="lemq"/>
13277 </lu>
13278 </chunk>
13279 </out>
13280 </otherwise>
13281 </choose>
13282 <let>
13283 <var n="caseFirstWord"/>
13284 <lit v="aa"/>
13285 </let>
13286 </action>
13287 </rule>
13289 <rule comment="REGLA: MODAL conjugable + VERB + clític (had to sing it -> el van haver de cantar)">
13291 <pattern>
13292 <pattern-item n="mod"/>
13293 <pattern-item n="infpres"/>
13294 <pattern-item n="probj"/>
13295 </pattern>
13296 <action>
13297 <call-macro n="firstWord">
13298 <with-param pos="1"/>
13299 </call-macro>
13300 <call-macro n="tipus_verbs">
13301 <with-param pos="2"/>
13302 </call-macro>
13303 <call-macro n="pron">
13304 <with-param pos="2"/>
13305 </call-macro>
13307 <choose>
13308 <when>
13309 <test>
13310 <or>
13311 <equal><!--De moment no sé si el tagger escull bé i els detecto els dos -->
13312 <clip pos="1" side="sl" part="temps"/>
13313 <lit-tag v="inf"/>
13314 </equal>
13315 <equal>
13316 <clip pos="1" side="sl" part="temps"/>
13317 <lit-tag v="pres"/>
13318 </equal>
13319 </or>
13320 </test>
13321 <let>
13322 <clip pos="1" side="tl" part="temps"/>
13323 <lit-tag v="pri"/>
13324 </let>
13325 <out>
13326 <chunk name="pro_mod_inf" case="caseFirstWord">
13327 <tags>
13328 <tag><lit-tag v="SV"/></tag>
13329 <tag><var n="tipus_verb"/></tag>
13330 <tag><clip pos="1" side="tl" part="temps"/></tag>
13331 <tag><lit-tag v="PD"/></tag>
13332 <tag><lit-tag v="ND"/></tag>
13333 </tags>
13334 <lu>
13335 <var n="pronom"/>
13336 <clip pos="3" side="tl" part="lem"/>
13337 <clip pos="3" side="tl" part="a_prnpro"/>
13338 <clip pos="3" side="tl" part="pers"/>
13339 <clip pos="3" side="tl" part="gen"/>
13340 <clip pos="3" side="tl" part="nbr"/>
13341 </lu>
13342 <b pos="1"/>
13344 <lu>
13345 <clip pos="1" side="tl" part="lemh"/>
13346 <clip pos="1" side="tl" part="a_verb"/>
13347 <clip pos="1" side="tl" part="temps" link-to="3"/>
13348 <lit-tag v="4"/>
13349 <lit-tag v="5"/>
13350 <clip pos="1" side="tl" part="lemq"/>
13351 </lu>
13352 <b pos="2"/>
13353 <lu>
13354 <clip pos="2" side="tl" part="lemh"/>
13355 <clip pos="2" side="tl" part="a_verb"/>
13356 <lit-tag v="inf"/>
13357 <clip pos="2" side="tl" part="lemq"/>
13358 </lu>
13359 </chunk>
13360 </out>
13361 </when>
13363 <when>
13364 <test>
13365 <or>
13366 <equal>
13367 <clip pos="1" side="sl" part="temps"/>
13368 <lit-tag v="past"/>
13369 </equal>
13370 <equal>
13371 <clip pos="1" side="sl" part="temps"/>
13372 <lit-tag v="pp"/>
13373 </equal>
13374 </or>
13375 </test>
13376 <let>
13377 <clip pos="1" side="tl" part="temps"/>
13378 <lit-tag v="inf"/>
13379 </let>
13380 <out>
13381 <chunk name="pro_mod_inf_perif" case="caseFirstWord">
13382 <tags>
13383 <tag><lit-tag v="SV"/></tag>
13384 <tag><var n="tipus_verb"/></tag>
13385 <tag><lit-tag v="ifip"/></tag>
13386 <tag><lit-tag v="PD"/></tag>
13387 <tag><lit-tag v="ND"/></tag>
13388 </tags>
13389 <lu>
13390 <var n="pronom"/>
13391 <clip pos="3" side="tl" part="lem"/>
13392 <clip pos="3" side="tl" part="a_prnpro"/>
13393 <clip pos="3" side="tl" part="pers"/>
13394 <clip pos="3" side="tl" part="gen"/>
13395 <clip pos="3" side="tl" part="nbr"/>
13396 </lu>
13397 <b pos="1"/>
13398 <lu>
13399 <lit v="anar"/>
13400 <lit-tag v="vaux"/>
13401 <lit-tag v="4"/>
13402 <lit-tag v="5"/>
13403 </lu>
13404 <b/>
13405 <lu>
13406 <clip pos="1" side="tl" part="lemh"/>
13407 <clip pos="1" side="tl" part="a_verb"/>
13408 <clip pos="1" side="tl" part="temps"/>
13409 <clip pos="1" side="tl" part="lemq"/>
13410 </lu>
13411 <b pos="2"/>
13412 <lu>
13413 <clip pos="2" side="tl" part="lemh"/>
13414 <clip pos="2" side="tl" part="a_verb"/>
13415 <lit-tag v="inf"/>
13416 <clip pos="2" side="tl" part="lemq"/>
13417 </lu>
13418 </chunk>
13419 </out>
13420 </when>
13422 <otherwise><!-- Quan és pri 3a sg (has) té gen i nbr-->
13423 <out>
13424 <chunk name="pro_mod_inf" case="caseFirstWord">
13425 <tags>
13426 <tag><lit-tag v="SV"/></tag>
13427 <tag><var n="tipus_verb"/></tag>
13428 <tag><clip pos="1" side="tl" part="temps"/></tag>
13429 <tag><clip pos="1" side="tl" part="pers"/></tag>
13430 <tag><clip pos="1" side="tl" part="nbr"/></tag>
13431 </tags>
13432 <lu>
13433 <var n="pronom"/>
13434 <clip pos="3" side="tl" part="lem"/>
13435 <clip pos="3" side="tl" part="a_prnpro"/>
13436 <clip pos="3" side="tl" part="pers"/>
13437 <clip pos="3" side="tl" part="gen"/>
13438 <clip pos="3" side="tl" part="nbr"/>
13439 </lu>
13440 <b pos="1"/>
13442 <lu>
13443 <clip pos="1" side="tl" part="lemh"/>
13444 <clip pos="1" side="tl" part="a_verb"/>
13445 <clip pos="1" side="tl" part="temps" link-to="3"/>
13446 <clip pos="1" side="tl" part="pers" link-to="4"/>
13447 <clip pos="1" side="tl" part="nbr" link-to="5"/>
13448 <clip pos="1" side="tl" part="lemq"/>
13449 </lu>
13450 <b pos="2"/>
13451 <lu>
13452 <clip pos="2" side="tl" part="lemh"/>
13453 <clip pos="2" side="tl" part="a_verb"/>
13454 <lit-tag v="inf"/>
13455 <clip pos="2" side="tl" part="lemq"/>
13456 </lu>
13457 </chunk>
13458 </out>
13459 </otherwise>
13460 </choose>
13461 <let>
13462 <var n="caseFirstWord"/>
13463 <lit v="aa"/>
13464 </let>
13465 </action>
13466 </rule>
13470 <rule comment="REGLA: AUX + MODAL conjugable + VERB (I will have to come - hauré de venir)">
13472 <pattern>
13473 <pattern-item n="auxnocan"/>
13474 <pattern-item n="modinf"/>
13475 <pattern-item n="infpres"/>
13476 </pattern>
13477 <action>
13478 <call-macro n="firstWord">
13479 <with-param pos="1"/>
13480 </call-macro>
13481 <call-macro n="tipus_verbs">
13482 <with-param pos="3"/>
13483 </call-macro>
13484 <call-macro n="pron">
13485 <with-param pos="3"/>
13486 </call-macro>
13488 <choose>
13489 <when>
13490 <test>
13491 <or>
13492 <equal caseless="yes">
13493 <clip pos="1" side="sl" part="lem"/>
13494 <lit v="will"/>
13495 </equal>
13496 <equal caseless="yes">
13497 <clip pos="1" side="sl" part="lem"/>
13498 <lit v="shall"/>
13499 </equal>
13500 <equal caseless="yes">
13501 <clip pos="1" side="sl" part="lem"/>
13502 <lit v="would"/>
13503 </equal>
13504 </or>
13505 </test>
13506 <choose>
13507 <when>
13508 <test>
13509 <or>
13510 <equal caseless="yes">
13511 <clip pos="1" side="sl" part="lem"/>
13512 <lit v="will"/>
13513 </equal>
13514 <equal caseless="yes">
13515 <clip pos="1" side="sl" part="lem"/>
13516 <lit v="shall"/>
13517 </equal>
13518 </or>
13519 </test>
13520 <let>
13521 <clip pos="2" side="tl" part="temps"/>
13522 <lit-tag v="fti"/>
13523 </let>
13524 </when>
13525 <when>
13526 <test>
13527 <equal caseless="yes">
13528 <clip pos="1" side="sl" part="lem"/>
13529 <lit v="would"/>
13530 </equal>
13531 </test>
13532 <let>
13533 <clip pos="2" side="tl" part="temps"/>
13534 <lit-tag v="cni"/>
13535 </let>
13536 </when>
13537 </choose>
13538 <out>
13539 <chunk name="mod_inf" case="caseFirstWord">
13540 <tags>
13541 <tag><lit-tag v="SV"/></tag>
13542 <tag><var n="tipus_verb"/></tag>
13543 <tag><clip pos="2" side="tl" part="temps"/></tag>
13544 <tag><lit-tag v="PD"/></tag>
13545 <tag><lit-tag v="ND"/></tag>
13546 </tags>
13547 <lu>
13548 <var n="pronom"/>
13549 <clip pos="2" side="tl" part="lemh"/>
13550 <clip pos="2" side="tl" part="a_verb"/>
13551 <clip pos="2" side="tl" part="temps" link-to="3"/>
13552 <lit-tag v="4"/>
13553 <lit-tag v="5"/>
13554 <clip pos="2" side="tl" part="lemq"/>
13555 </lu>
13556 <b pos="2"/>
13557 <lu>
13558 <clip pos="3" side="tl" part="lemh"/>
13559 <clip pos="3" side="tl" part="a_verb"/>
13560 <lit-tag v="inf"/>
13561 <clip pos="3" side="tl" part="lemq"/>
13562 </lu>
13563 </chunk>
13564 </out>
13565 <call-macro n="f_bcond">
13566 <with-param pos="1"/>
13567 </call-macro>
13568 </when>
13569 <when>
13570 <test>
13571 <or>
13572 <equal caseless="yes">
13573 <clip pos="1" side="sl" part="lem"/>
13574 <lit v="may"/>
13575 </equal>
13576 <equal caseless="yes">
13577 <clip pos="1" side="sl" part="lem"/>
13578 <lit v="might"/>
13579 </equal>
13580 </or>
13581 </test>
13582 <choose>
13583 <when>
13584 <test>
13585 <equal caseless="yes">
13586 <clip pos="1" side="sl" part="lem"/>
13587 <lit v="may"/>
13588 </equal>
13589 </test>
13590 <let>
13591 <clip pos="1" side="tl" part="temps"/>
13592 <lit-tag v="pri"/>
13593 </let>
13594 </when>
13595 <when>
13596 <test>
13597 <equal caseless="yes">
13598 <clip pos="1" side="sl" part="lem"/>
13599 <lit v="might"/>
13600 </equal>
13601 </test>
13602 <let>
13603 <clip pos="1" side="tl" part="temps"/>
13604 <lit-tag v="cni"/>
13605 </let>
13606 </when>
13607 </choose>
13608 <out>
13609 <chunk name="auxmod_mod_inf" case="caseFirstWord">
13610 <tags>
13611 <tag><lit-tag v="SV"/></tag>
13612 <tag><var n="tipus_verb"/></tag>
13613 <tag><clip pos="1" side="tl" part="temps"/></tag>
13614 <tag><lit-tag v="PD"/></tag>
13615 <tag><lit-tag v="ND"/></tag>
13616 </tags>
13617 <lu>
13618 <var n="pronom"/>
13619 <clip pos="1" side="tl" part="lemh"/>
13620 <clip pos="1" side="tl" part="a_verb"/>
13621 <clip pos="1" side="tl" part="temps" link-to="3"/>
13622 <lit-tag v="4"/>
13623 <lit-tag v="5"/>
13624 <clip pos="1" side="tl" part="lemq"/>
13625 </lu>
13626 <b pos="1"/>
13627 <lu>
13628 <clip pos="2" side="tl" part="lemh"/>
13629 <clip pos="2" side="tl" part="a_verb"/>
13630 <lit-tag v="inf"/>
13631 <clip pos="2" side="tl" part="lemq"/>
13632 </lu>
13633 <b pos="2"/>
13634 <lu>
13635 <clip pos="3" side="tl" part="lemh"/>
13636 <clip pos="3" side="tl" part="a_verb"/>
13637 <lit-tag v="inf"/>
13638 <clip pos="3" side="tl" part="lemq"/>
13639 </lu>
13640 </chunk>
13641 </out>
13642 </when>
13643 <when>
13644 <test>
13645 <equal caseless="yes">
13646 <clip pos="1" side="sl" part="lem"/>
13647 <lit v="do"/>
13648 </equal>
13649 </test>
13650 <choose>
13651 <when>
13652 <test>
13653 <or>
13654 <equal>
13655 <clip pos="1" side="sl" part="temps"/>
13656 <lit-tag v="pres"/>
13657 </equal>
13658 <equal>
13659 <clip pos="1" side="sl" part="temps"/>
13660 <lit-tag v="pri"/>
13661 </equal>
13662 </or>
13663 </test>
13664 <choose>
13665 <when>
13666 <test>
13667 <equal>
13668 <clip pos="1" side="sl" part="temps"/>
13669 <lit-tag v="pres"/>
13670 </equal>
13671 </test>
13673 <let>
13674 <clip pos="2" side="tl" part="temps"/>
13675 <lit-tag v="pri"/>
13676 </let>
13677 <let>
13678 <var n="paraula2"/>
13679 <clip pos="2" side="tl" part="lemh"/>
13680 </let>
13681 <append n="paraula2">
13682 <clip pos="2" side="tl" part="tags"/>
13683 <lit-tag v="PD"/>
13684 <lit-tag v="ND"/>
13685 <clip pos="2" side="tl" part="lemq"/>
13686 </append>
13687 <let>
13688 <clip pos="2" side="tl" part="whole"/>
13689 <var n="paraula2"/>
13690 </let>
13691 </when>
13692 <when>
13693 <test>
13694 <equal>
13695 <clip pos="1" side="sl" part="temps"/>
13696 <lit-tag v="pri"/>
13697 </equal>
13698 </test>
13699 <let>
13700 <clip pos="2" side="tl" part="temps"/>
13701 <lit-tag v="pri"/>
13702 </let>
13703 <let>
13704 <var n="paraula2"/>
13705 <clip pos="2" side="tl" part="lemh"/>
13706 </let>
13707 <append n="paraula2">
13708 <clip pos="2" side="tl" part="tags"/>
13709 <clip pos="1" side="sl" part="pers"/>
13710 <clip pos="1" side="sl" part="nbr"/>
13711 <clip pos="2" side="tl" part="lemq"/>
13712 </append>
13713 <let>
13714 <clip pos="2" side="tl" part="whole"/>
13715 <var n="paraula2"/>
13716 </let>
13717 </when>
13718 </choose>
13719 <out>
13720 <chunk name="mod_inf" case="caseFirstWord">
13721 <tags>
13722 <tag><lit-tag v="SV"/></tag>
13723 <tag><var n="tipus_verb"/></tag>
13724 <tag><clip pos="2" side="tl" part="temps"/></tag>
13725 <tag><clip pos="2" side="tl" part="pers"/></tag>
13726 <tag><clip pos="2" side="tl" part="nbr"/></tag>
13727 </tags>
13728 <lu>
13729 <var n="pronom"/>
13730 <clip pos="2" side="tl" part="lemh"/>
13731 <clip pos="2" side="tl" part="a_verb"/>
13732 <clip pos="2" side="tl" part="temps" link-to="3"/>
13733 <clip pos="2" side="tl" part="pers" link-to="4"/>
13734 <clip pos="2" side="tl" part="nbr" link-to="5"/>
13735 <clip pos="2" side="tl" part="lemq"/>
13736 </lu>
13737 <b pos="2"/>
13738 <lu>
13739 <clip pos="3" side="tl" part="lemh"/>
13740 <clip pos="3" side="tl" part="a_verb"/>
13741 <lit-tag v="inf"/>
13742 <clip pos="3" side="tl" part="lemq"/>
13743 </lu>
13744 </chunk>
13745 </out>
13746 <call-macro n="f_bcond">
13747 <with-param pos="1"/>
13748 </call-macro>
13749 </when>
13750 <when>
13751 <test>
13752 <equal>
13753 <clip pos="1" side="sl" part="temps"/>
13754 <lit-tag v="past"/>
13755 </equal>
13756 </test>
13757 <out>
13758 <chunk name="mod_inf_perif" case="caseFirstWord">
13759 <tags>
13760 <tag><lit-tag v="SV"/></tag>
13761 <tag><var n="tipus_verb"/></tag>
13762 <tag><lit-tag v="ifip"/></tag>
13763 <tag><lit-tag v="PD"/></tag>
13764 <tag><lit-tag v="ND"/></tag>
13765 </tags>
13766 <lu>
13767 <var n="pronom"/>
13768 <lit v="anar"/>
13769 <lit-tag v="vaux"/>
13770 <lit-tag v="4"/>
13771 <lit-tag v="5"/>
13772 </lu>
13773 <b pos="1"/>
13774 <lu>
13775 <clip pos="2" side="tl" part="lemh"/>
13776 <clip pos="2" side="tl" part="a_verb"/>
13777 <lit-tag v="inf"/>
13778 <clip pos="2" side="tl" part="lemq"/>
13779 </lu>
13780 <b pos="2"/>
13781 <lu>
13782 <clip pos="3" side="tl" part="lemh"/>
13783 <clip pos="3" side="tl" part="a_verb"/>
13784 <lit-tag v="inf"/>
13785 <clip pos="3" side="tl" part="lemq"/>
13786 </lu>
13787 </chunk>
13788 </out>
13789 </when>
13790 </choose>
13791 </when>
13792 </choose>
13793 <let>
13794 <var n="caseFirstWord"/>
13795 <lit v="aa"/>
13796 </let>
13797 </action>
13798 </rule>
13800 <rule comment="REGLA: AUX + MODAL conjugable + VERB + clític (I will have to sing it - l'hauré de cantar)">
13802 <pattern>
13803 <pattern-item n="auxnocan"/>
13804 <pattern-item n="modinf"/>
13805 <pattern-item n="infpres"/>
13806 <pattern-item n="probj"/>
13807 </pattern>
13808 <action>
13809 <call-macro n="firstWord">
13810 <with-param pos="1"/>
13811 </call-macro>
13812 <call-macro n="tipus_verbs">
13813 <with-param pos="3"/>
13814 </call-macro>
13815 <call-macro n="pron">
13816 <with-param pos="3"/>
13817 </call-macro>
13819 <choose>
13820 <when>
13821 <test>
13822 <or>
13823 <equal caseless="yes">
13824 <clip pos="1" side="sl" part="lem"/>
13825 <lit v="will"/>
13826 </equal>
13827 <equal caseless="yes">
13828 <clip pos="1" side="sl" part="lem"/>
13829 <lit v="shall"/>
13830 </equal>
13831 <equal caseless="yes">
13832 <clip pos="1" side="sl" part="lem"/>
13833 <lit v="would"/>
13834 </equal>
13835 </or>
13836 </test>
13837 <choose>
13838 <when>
13839 <test>
13840 <or>
13841 <equal caseless="yes">
13842 <clip pos="1" side="sl" part="lem"/>
13843 <lit v="will"/>
13844 </equal>
13845 <equal caseless="yes">
13846 <clip pos="1" side="sl" part="lem"/>
13847 <lit v="shall"/>
13848 </equal>
13849 </or>
13850 </test>
13851 <let>
13852 <clip pos="2" side="tl" part="temps"/>
13853 <lit-tag v="fti"/>
13854 </let>
13855 </when>
13856 <when>
13857 <test>
13858 <equal caseless="yes">
13859 <clip pos="1" side="sl" part="lem"/>
13860 <lit v="would"/>
13861 </equal>
13862 </test>
13863 <let>
13864 <clip pos="2" side="tl" part="temps"/>
13865 <lit-tag v="cni"/>
13866 </let>
13867 </when>
13868 </choose>
13869 <out>
13870 <chunk name="pro_mod_inf" case="caseFirstWord">
13871 <tags>
13872 <tag><lit-tag v="SV"/></tag>
13873 <tag><var n="tipus_verb"/></tag>
13874 <tag><clip pos="2" side="tl" part="temps"/></tag>
13875 <tag><lit-tag v="PD"/></tag>
13876 <tag><lit-tag v="ND"/></tag>
13877 </tags>
13878 <lu>
13879 <var n="pronom"/>
13880 <clip pos="4" side="tl" part="lem"/>
13881 <clip pos="4" side="tl" part="a_prnpro"/>
13882 <clip pos="4" side="tl" part="pers"/>
13883 <clip pos="4" side="tl" part="gen"/>
13884 <clip pos="4" side="tl" part="nbr"/>
13885 </lu>
13886 <b pos="1"/>
13887 <lu>
13888 <clip pos="2" side="tl" part="lemh"/>
13889 <clip pos="2" side="tl" part="a_verb"/>
13890 <clip pos="2" side="tl" part="temps" link-to="3"/>
13891 <lit-tag v="4"/>
13892 <lit-tag v="5"/>
13893 <clip pos="2" side="tl" part="lemq"/>
13894 </lu>
13895 <b pos="2"/>
13896 <lu>
13897 <clip pos="3" side="tl" part="lemh"/>
13898 <clip pos="3" side="tl" part="a_verb"/>
13899 <lit-tag v="inf"/>
13900 <clip pos="3" side="tl" part="lemq"/>
13901 </lu>
13902 </chunk>
13903 </out>
13904 <call-macro n="f_bcond">
13905 <with-param pos="3"/>
13906 </call-macro>
13907 </when>
13908 <when>
13909 <test>
13910 <or>
13911 <equal caseless="yes">
13912 <clip pos="1" side="sl" part="lem"/>
13913 <lit v="may"/>
13914 </equal>
13915 <equal caseless="yes">
13916 <clip pos="1" side="sl" part="lem"/>
13917 <lit v="might"/>
13918 </equal>
13919 </or>
13920 </test>
13921 <choose>
13922 <when>
13923 <test>
13924 <equal caseless="yes">
13925 <clip pos="1" side="sl" part="lem"/>
13926 <lit v="may"/>
13927 </equal>
13928 </test>
13929 <let>
13930 <clip pos="1" side="tl" part="temps"/>
13931 <lit-tag v="pri"/>
13932 </let>
13933 </when>
13934 <when>
13935 <test>
13936 <equal caseless="yes">
13937 <clip pos="1" side="sl" part="lem"/>
13938 <lit v="might"/>
13939 </equal>
13940 </test>
13941 <let>
13942 <clip pos="1" side="tl" part="temps"/>
13943 <lit-tag v="cni"/>
13944 </let>
13945 </when>
13946 </choose>
13947 <out>
13948 <chunk name="pro_auxmod_mod_inf" case="caseFirstWord">
13949 <tags>
13950 <tag><lit-tag v="SV"/></tag>
13951 <tag><var n="tipus_verb"/></tag>
13952 <tag><clip pos="1" side="tl" part="temps"/></tag>
13953 <tag><lit-tag v="PD"/></tag>
13954 <tag><lit-tag v="ND"/></tag>
13955 </tags>
13956 <lu>
13957 <var n="pronom"/>
13958 <clip pos="4" side="tl" part="lem"/>
13959 <clip pos="4" side="tl" part="a_prnpro"/>
13960 <clip pos="4" side="tl" part="pers"/>
13961 <clip pos="4" side="tl" part="gen"/>
13962 <clip pos="4" side="tl" part="nbr"/>
13963 </lu>
13964 <b pos="1"/>
13965 <lu>
13966 <clip pos="1" side="tl" part="lemh"/>
13967 <clip pos="1" side="tl" part="a_verb"/>
13968 <clip pos="1" side="tl" part="temps" link-to="3"/>
13969 <lit-tag v="4"/>
13970 <lit-tag v="5"/>
13971 <clip pos="1" side="tl" part="lemq"/>
13972 </lu>
13973 <b pos="2"/>
13974 <lu>
13975 <clip pos="2" side="tl" part="lemh"/>
13976 <clip pos="2" side="tl" part="a_verb"/>
13977 <lit-tag v="inf"/>
13978 <clip pos="2" side="tl" part="lemq"/>
13979 </lu>
13980 <b pos="3"/>
13981 <lu>
13982 <clip pos="3" side="tl" part="lemh"/>
13983 <clip pos="3" side="tl" part="a_verb"/>
13984 <lit-tag v="inf"/>
13985 <clip pos="3" side="tl" part="lemq"/>
13986 </lu>
13987 </chunk>
13988 </out>
13989 </when>
13990 <when>
13991 <test>
13992 <equal caseless="yes">
13993 <clip pos="1" side="sl" part="lem"/>
13994 <lit v="do"/>
13995 </equal>
13996 </test>
13997 <choose>
13998 <when>
13999 <test>
14000 <or>
14001 <equal>
14002 <clip pos="1" side="sl" part="temps"/>
14003 <lit-tag v="pres"/>
14004 </equal>
14005 <equal>
14006 <clip pos="1" side="sl" part="temps"/>
14007 <lit-tag v="pri"/>
14008 </equal>
14009 </or>
14010 </test>
14011 <choose>
14012 <when>
14013 <test>
14014 <equal>
14015 <clip pos="1" side="sl" part="temps"/>
14016 <lit-tag v="pres"/>
14017 </equal>
14018 </test>
14020 <let>
14021 <clip pos="2" side="tl" part="temps"/>
14022 <lit-tag v="pri"/>
14023 </let>
14024 <let>
14025 <var n="paraula2"/>
14026 <clip pos="2" side="tl" part="lemh"/>
14027 </let>
14028 <append n="paraula2">
14029 <clip pos="2" side="tl" part="tags"/>
14030 <lit-tag v="PD"/>
14031 <lit-tag v="ND"/>
14032 <clip pos="2" side="tl" part="lemq"/>
14033 </append>
14034 <let>
14035 <clip pos="2" side="tl" part="whole"/>
14036 <var n="paraula2"/>
14037 </let>
14038 </when>
14039 <when>
14040 <test>
14041 <equal>
14042 <clip pos="1" side="sl" part="temps"/>
14043 <lit-tag v="pri"/>
14044 </equal>
14045 </test>
14046 <let>
14047 <clip pos="2" side="tl" part="temps"/>
14048 <lit-tag v="pri"/>
14049 </let>
14050 <let>
14051 <var n="paraula2"/>
14052 <clip pos="2" side="tl" part="lemh"/>
14053 </let>
14054 <append n="paraula2">
14055 <clip pos="2" side="tl" part="tags"/>
14056 <clip pos="1" side="sl" part="pers"/>
14057 <clip pos="1" side="sl" part="nbr"/>
14058 <clip pos="2" side="tl" part="lemq"/>
14059 </append>
14060 <let>
14061 <clip pos="2" side="tl" part="whole"/>
14062 <var n="paraula2"/>
14063 </let>
14064 </when>
14065 </choose>
14066 <out>
14067 <chunk name="pro_mod_inf" case="caseFirstWord">
14068 <tags>
14069 <tag><lit-tag v="SV"/></tag>
14070 <tag><var n="tipus_verb"/></tag>
14071 <tag><clip pos="2" side="tl" part="temps"/></tag>
14072 <tag><clip pos="2" side="tl" part="pers"/></tag>
14073 <tag><clip pos="2" side="tl" part="nbr"/></tag>
14074 </tags>
14075 <lu>
14076 <var n="pronom"/>
14077 <clip pos="4" side="tl" part="lem"/>
14078 <clip pos="4" side="tl" part="a_prnpro"/>
14079 <clip pos="4" side="tl" part="pers"/>
14080 <clip pos="4" side="tl" part="gen"/>
14081 <clip pos="4" side="tl" part="nbr"/>
14082 </lu>
14083 <b pos="1"/>
14084 <lu>
14085 <clip pos="2" side="tl" part="lemh"/>
14086 <clip pos="2" side="tl" part="a_verb"/>
14087 <clip pos="2" side="tl" part="temps" link-to="3"/>
14088 <clip pos="2" side="tl" part="pers" link-to="4"/>
14089 <clip pos="2" side="tl" part="nbr" link-to="5"/>
14090 <clip pos="2" side="tl" part="lemq"/>
14091 </lu>
14092 <b pos="2"/>
14093 <lu>
14094 <clip pos="3" side="tl" part="lemh"/>
14095 <clip pos="3" side="tl" part="a_verb"/>
14096 <lit-tag v="inf"/>
14097 <clip pos="3" side="tl" part="lemq"/>
14098 </lu>
14099 </chunk>
14100 </out>
14101 <call-macro n="f_bcond">
14102 <with-param pos="3"/>
14103 </call-macro>
14104 </when>
14105 <when>
14106 <test>
14107 <equal>
14108 <clip pos="1" side="sl" part="temps"/>
14109 <lit-tag v="past"/>
14110 </equal>
14111 </test>
14112 <out>
14113 <chunk name="pro_mod_inf_perif" case="caseFirstWord">
14114 <tags>
14115 <tag><lit-tag v="SV"/></tag>
14116 <tag><var n="tipus_verb"/></tag>
14117 <tag><lit-tag v="ifip"/></tag>
14118 <tag><lit-tag v="PD"/></tag>
14119 <tag><lit-tag v="ND"/></tag>
14120 </tags>
14121 <lu>
14122 <var n="pronom"/>
14123 <clip pos="4" side="tl" part="lem"/>
14124 <clip pos="4" side="tl" part="a_prnpro"/>
14125 <clip pos="4" side="tl" part="pers"/>
14126 <clip pos="4" side="tl" part="gen"/>
14127 <clip pos="4" side="tl" part="nbr"/>
14128 </lu>
14129 <b pos="1"/>
14130 <lu>
14131 <lit v="anar"/>
14132 <lit-tag v="vaux"/>
14133 <lit-tag v="4"/>
14134 <lit-tag v="5"/>
14135 </lu>
14136 <b pos="2"/>
14137 <lu>
14138 <clip pos="2" side="tl" part="lemh"/>
14139 <clip pos="2" side="tl" part="a_verb"/>
14140 <lit-tag v="inf"/>
14141 <clip pos="2" side="tl" part="lemq"/>
14142 </lu>
14143 <b pos="3"/>
14144 <lu>
14145 <clip pos="3" side="tl" part="lemh"/>
14146 <clip pos="3" side="tl" part="a_verb"/>
14147 <lit-tag v="inf"/>
14148 <clip pos="3" side="tl" part="lemq"/>
14149 </lu>
14150 </chunk>
14151 </out>
14152 </when>
14153 </choose>
14154 </when>
14155 </choose>
14156 <let>
14157 <var n="caseFirstWord"/>
14158 <lit v="aa"/>
14159 </let>
14160 </action>
14161 </rule>
14163 <rule comment="REGLA: AUX + MODAL conjugable + VERB (I will have to - hauré de)">
14165 <pattern>
14166 <pattern-item n="auxnocan"/>
14167 <pattern-item n="modinf"/>
14168 </pattern>
14169 <action>
14170 <call-macro n="firstWord">
14171 <with-param pos="1"/>
14172 </call-macro>
14173 <choose>
14174 <when>
14175 <test>
14176 <or>
14177 <equal caseless="yes">
14178 <clip pos="1" side="sl" part="lem"/>
14179 <lit v="will"/>
14180 </equal>
14181 <equal caseless="yes">
14182 <clip pos="1" side="sl" part="lem"/>
14183 <lit v="shall"/>
14184 </equal>
14185 <equal caseless="yes">
14186 <clip pos="1" side="sl" part="lem"/>
14187 <lit v="would"/>
14188 </equal>
14189 </or>
14190 </test>
14191 <choose>
14192 <when>
14193 <test>
14194 <or>
14195 <equal caseless="yes">
14196 <clip pos="1" side="sl" part="lem"/>
14197 <lit v="will"/>
14198 </equal>
14199 <equal caseless="yes">
14200 <clip pos="1" side="sl" part="lem"/>
14201 <lit v="shall"/>
14202 </equal>
14203 </or>
14204 </test>
14205 <let>
14206 <clip pos="2" side="tl" part="temps"/>
14207 <lit-tag v="fti"/>
14208 </let>
14209 </when>
14210 <when>
14211 <test>
14212 <equal caseless="yes">
14213 <clip pos="1" side="sl" part="lem"/>
14214 <lit v="would"/>
14215 </equal>
14216 </test>
14217 <let>
14218 <clip pos="2" side="tl" part="temps"/>
14219 <lit-tag v="cni"/>
14220 </let>
14221 </when>
14222 </choose>
14223 <out>
14224 <chunk name="mod" case="caseFirstWord">
14225 <tags>
14226 <tag><lit-tag v="SV"/></tag>
14227 <tag><clip pos="2" side="tl" part="a_verb"/></tag>
14228 <tag><clip pos="2" side="tl" part="temps"/></tag>
14229 <tag><lit-tag v="PD"/></tag>
14230 <tag><lit-tag v="ND"/></tag>
14231 </tags>
14232 <lu>
14233 <clip pos="2" side="tl" part="lemh"/>
14234 <clip pos="2" side="tl" part="a_verb"/>
14235 <clip pos="2" side="tl" part="temps" link-to="3"/>
14236 <lit-tag v="4"/>
14237 <lit-tag v="5"/>
14238 <clip pos="2" side="tl" part="lemq"/>
14239 </lu>
14240 </chunk>
14241 </out>
14242 <call-macro n="f_bcond">
14243 <with-param pos="1"/>
14244 </call-macro>
14245 </when>
14246 <when>
14247 <test>
14248 <or>
14249 <equal caseless="yes">
14250 <clip pos="1" side="sl" part="lem"/>
14251 <lit v="may"/>
14252 </equal>
14253 <equal caseless="yes">
14254 <clip pos="1" side="sl" part="lem"/>
14255 <lit v="might"/>
14256 </equal>
14257 </or>
14258 </test>
14259 <choose>
14260 <when>
14261 <test>
14262 <equal caseless="yes">
14263 <clip pos="1" side="sl" part="lem"/>
14264 <lit v="may"/>
14265 </equal>
14266 </test>
14267 <let>
14268 <clip pos="1" side="tl" part="temps"/>
14269 <lit-tag v="pri"/>
14270 </let>
14271 </when>
14272 <when>
14273 <test>
14274 <equal caseless="yes">
14275 <clip pos="1" side="sl" part="lem"/>
14276 <lit v="might"/>
14277 </equal>
14278 </test>
14279 <let>
14280 <clip pos="1" side="tl" part="temps"/>
14281 <lit-tag v="cni"/>
14282 </let>
14283 </when>
14284 </choose>
14285 <out>
14286 <chunk name="aux_mod" case="caseFirstWord">
14287 <tags>
14288 <tag><lit-tag v="SV"/></tag>
14289 <tag><clip pos="1" side="tl" part="a_verb"/></tag>
14290 <tag><clip pos="1" side="tl" part="temps"/></tag>
14291 <tag><lit-tag v="PD"/></tag>
14292 <tag><lit-tag v="ND"/></tag>
14293 </tags>
14294 <lu>
14295 <clip pos="1" side="tl" part="lemh"/>
14296 <clip pos="1" side="tl" part="a_verb"/>
14297 <clip pos="1" side="tl" part="temps" link-to="3"/>
14298 <lit-tag v="4"/>
14299 <lit-tag v="5"/>
14300 <clip pos="1" side="tl" part="lemq"/>
14301 </lu>
14302 <b pos="1"/>
14303 <lu>
14304 <clip pos="2" side="tl" part="lemh"/>
14305 <clip pos="2" side="tl" part="a_verb"/>
14306 <lit-tag v="inf"/>
14307 <clip pos="2" side="tl" part="lemq"/>
14308 </lu>
14309 </chunk>
14310 </out>
14311 </when>
14312 <when>
14313 <test>
14314 <equal caseless="yes">
14315 <clip pos="1" side="sl" part="lem"/>
14316 <lit v="do"/>
14317 </equal>
14318 </test>
14319 <choose>
14320 <when>
14321 <test>
14322 <or>
14323 <equal>
14324 <clip pos="1" side="sl" part="temps"/>
14325 <lit-tag v="pres"/>
14326 </equal>
14327 <equal>
14328 <clip pos="1" side="sl" part="temps"/>
14329 <lit-tag v="pri"/>
14330 </equal>
14331 </or>
14332 </test>
14333 <choose>
14334 <when>
14335 <test>
14336 <equal>
14337 <clip pos="1" side="sl" part="temps"/>
14338 <lit-tag v="pres"/>
14339 </equal>
14340 </test>
14342 <let>
14343 <clip pos="2" side="tl" part="temps"/>
14344 <lit-tag v="pri"/>
14345 </let>
14346 <let>
14347 <var n="paraula2"/>
14348 <clip pos="2" side="tl" part="lemh"/>
14349 </let>
14350 <append n="paraula2">
14351 <clip pos="2" side="tl" part="tags"/>
14352 <lit-tag v="PD"/>
14353 <lit-tag v="ND"/>
14354 <clip pos="2" side="tl" part="lemq"/>
14355 </append>
14356 <let>
14357 <clip pos="2" side="tl" part="whole"/>
14358 <var n="paraula2"/>
14359 </let>
14360 </when>
14361 <when>
14362 <test>
14363 <equal>
14364 <clip pos="1" side="sl" part="temps"/>
14365 <lit-tag v="pri"/>
14366 </equal>
14367 </test>
14368 <let>
14369 <clip pos="2" side="tl" part="temps"/>
14370 <lit-tag v="pri"/>
14371 </let>
14372 <let>
14373 <var n="paraula2"/>
14374 <clip pos="2" side="tl" part="lemh"/>
14375 </let>
14376 <append n="paraula2">
14377 <clip pos="2" side="tl" part="tags"/>
14378 <clip pos="1" side="sl" part="pers"/>
14379 <clip pos="1" side="sl" part="nbr"/>
14380 <clip pos="2" side="tl" part="lemq"/>
14381 </append>
14382 <let>
14383 <clip pos="2" side="tl" part="whole"/>
14384 <var n="paraula2"/>
14385 </let>
14386 </when>
14387 </choose>
14388 <out>
14389 <chunk name="mod" case="caseFirstWord">
14390 <tags>
14391 <tag><lit-tag v="SV"/></tag>
14392 <tag><clip pos="2" side="tl" part="a_verb"/></tag>
14393 <tag><clip pos="2" side="tl" part="temps"/></tag>
14394 <tag><clip pos="2" side="tl" part="pers"/></tag>
14395 <tag><clip pos="2" side="tl" part="nbr"/></tag>
14396 </tags>
14397 <lu>
14398 <clip pos="2" side="tl" part="lemh"/>
14399 <clip pos="2" side="tl" part="a_verb"/>
14400 <clip pos="2" side="tl" part="temps" link-to="3"/>
14401 <clip pos="2" side="tl" part="pers" link-to="4"/>
14402 <clip pos="2" side="tl" part="nbr" link-to="5"/>
14403 <clip pos="2" side="tl" part="lemq"/>
14404 </lu>
14405 </chunk>
14406 </out>
14407 <call-macro n="f_bcond">
14408 <with-param pos="1"/>
14409 </call-macro>
14410 </when>
14411 <when>
14412 <test>
14413 <equal>
14414 <clip pos="1" side="sl" part="temps"/>
14415 <lit-tag v="past"/>
14416 </equal>
14417 </test>
14418 <out>
14419 <chunk name="mod_perif" case="caseFirstWord">
14420 <tags>
14421 <tag><lit-tag v="SV"/></tag>
14422 <tag><clip pos="2" side="tl" part="a_verb"/></tag>
14423 <tag><lit-tag v="ifip"/></tag>
14424 <tag><lit-tag v="PD"/></tag>
14425 <tag><lit-tag v="ND"/></tag>
14426 </tags>
14427 <lu>
14428 <lit v="anar"/>
14429 <lit-tag v="vaux"/>
14430 <lit-tag v="4"/>
14431 <lit-tag v="5"/>
14432 </lu>
14433 <b pos="1"/>
14434 <lu>
14435 <clip pos="2" side="tl" part="lemh"/>
14436 <clip pos="2" side="tl" part="a_verb"/>
14437 <lit-tag v="inf"/>
14438 <clip pos="2" side="tl" part="lemq"/>
14439 </lu>
14440 </chunk>
14441 </out>
14442 </when>
14443 </choose>
14444 </when>
14445 </choose>
14446 <let>
14447 <var n="caseFirstWord"/>
14448 <lit v="aa"/>
14449 </let>
14450 </action>
14451 </rule>
14455 <rule comment="HAVER PARTICIPI (have finished - han acabat)">
14456 <pattern>
14457 <pattern-item n="have_aux"/>
14458 <pattern-item n="pp"/>
14459 </pattern>
14460 <action>
14461 <call-macro n="firstWord">
14462 <with-param pos="1"/>
14463 </call-macro>
14464 <call-macro n="tipus_verbs">
14465 <with-param pos="2"/>
14466 </call-macro>
14467 <call-macro n="pron">
14468 <with-param pos="2"/>
14469 </call-macro>
14470 <choose>
14471 <when>
14472 <test>
14473 <or>
14474 <equal><!--De moment no sé si el tagger escull bé i els detecto els dos -->
14475 <clip pos="1" side="sl" part="temps"/>
14476 <lit-tag v="inf"/>
14477 </equal>
14478 <equal>
14479 <clip pos="1" side="sl" part="temps"/>
14480 <lit-tag v="pres"/>
14481 </equal>
14482 </or>
14483 </test>
14484 <let>
14485 <clip pos="1" side="tl" part="temps"/>
14486 <lit-tag v="pri"/>
14487 </let>
14488 </when>
14489 <when>
14490 <test>
14491 <equal>
14492 <clip pos="1" side="sl" part="temps"/>
14493 <lit-tag v="past"/>
14494 </equal>
14495 </test>
14496 <let>
14497 <clip pos="1" side="tl" part="temps"/>
14498 <lit-tag v="pii"/>
14499 </let>
14500 </when>
14501 </choose>
14502 <choose>
14503 <when>
14504 <test>
14505 <not>
14506 <and>
14507 <equal>
14508 <clip pos="1" side="tl" part="pers"/>
14509 <lit-tag v="p3"/>
14510 </equal>
14511 <equal>
14512 <clip pos="1" side="tl" part="nbr"/>
14513 <lit-tag v="sg"/>
14514 </equal>
14515 </and>
14516 </not>
14517 </test>
14518 <let>
14519 <var n="paraula1"/>
14520 <clip pos="1" side="tl" part="lemh"/>
14521 </let>
14522 <append n="paraula1">
14523 <clip pos="1" side="tl" part="tags"/>
14524 <lit-tag v="PD"/>
14525 <lit-tag v="ND"/>
14526 <clip pos="1" side="tl" part="lemq"/>
14527 </append>
14528 <let>
14529 <clip pos="1" side="tl" part="whole"/>
14530 <var n="paraula1"/>
14531 </let>
14532 </when>
14533 </choose>
14534 <choose>
14535 <when>
14536 <test><!--MG: quan és gerundi, dintre del verb no hi ha pers i nbr, però en el chunk sí que hi ha PD i ND, per si en el
14537 t2x es fa alguna operació que li assigna pers i nbr (en aquest cas caldrà que en el t3x es passin a dins, al verb, ja que no hi ha enllaç) -->
14538 <equal>
14539 <clip pos="1" side="sl" part="temps"/>
14540 <lit-tag v="ger"/>
14541 </equal>
14542 </test>
14543 <out>
14544 <chunk name="have_pp" case="caseFirstWord">
14545 <tags>
14546 <tag><lit-tag v="SV"/></tag>
14547 <tag><var n="tipus_verb"/></tag>
14548 <tag><clip pos="1" side="tl" part="temps"/></tag>
14549 <tag><clip pos="1" side="tl" part="pers"/></tag>
14550 <tag><clip pos="1" side="tl" part="nbr"/></tag>
14551 </tags>
14552 <lu>
14553 <var n="pronom"/>
14554 <clip pos="1" side="tl" part="lemh"/>
14555 <clip pos="1" side="tl" part="a_verb"/>
14556 <clip pos="1" side="tl" part="temps" link-to="3"/>
14557 <clip pos="1" side="tl" part="lemq"/>
14558 </lu>
14559 <b pos="1"/>
14560 <lu>
14561 <clip pos="2" side="tl" part="lemh"/>
14562 <clip pos="2" side="tl" part="a_pp"/>
14563 <lit-tag v="m.sg"/>
14564 <clip pos="2" side="tl" part="lemq"/>
14565 </lu>
14566 </chunk>
14567 </out>
14568 </when>
14569 <otherwise>
14570 <out>
14571 <chunk name="have_pp" case="caseFirstWord">
14572 <tags>
14573 <tag><lit-tag v="SV"/></tag>
14574 <tag><var n="tipus_verb"/></tag>
14575 <tag><clip pos="1" side="tl" part="temps"/></tag>
14576 <tag><clip pos="1" side="tl" part="pers"/></tag>
14577 <tag><clip pos="1" side="tl" part="nbr"/></tag>
14578 </tags>
14579 <lu>
14580 <var n="pronom"/>
14581 <clip pos="1" side="tl" part="lemh"/>
14582 <clip pos="1" side="tl" part="a_verb"/>
14583 <clip pos="1" side="tl" part="temps" link-to="3"/>
14584 <clip pos="1" side="tl" part="pers" link-to="4"/>
14585 <clip pos="1" side="tl" part="nbr" link-to="5"/>
14586 <clip pos="1" side="tl" part="lemq"/>
14587 </lu>
14588 <b pos="1"/>
14589 <lu>
14590 <clip pos="2" side="tl" part="lemh"/>
14591 <clip pos="2" side="tl" part="a_pp"/>
14592 <lit-tag v="m.sg"/>
14593 <clip pos="2" side="tl" part="lemq"/>
14594 </lu>
14595 </chunk>
14596 </out>
14597 </otherwise>
14598 </choose>
14599 <let>
14600 <var n="caseFirstWord"/>
14601 <lit v="aa"/>
14602 </let>
14603 </action>
14604 </rule>
14606 <rule comment="HAVER PARTICIPI clític (have finished it - l'han acabat)">
14607 <pattern>
14608 <pattern-item n="have_aux"/>
14609 <pattern-item n="pp"/>
14610 <pattern-item n="probj"/>
14611 </pattern>
14612 <action>
14613 <call-macro n="firstWord">
14614 <with-param pos="1"/>
14615 </call-macro>
14616 <call-macro n="tipus_verbs">
14617 <with-param pos="2"/>
14618 </call-macro>
14619 <call-macro n="pron">
14620 <with-param pos="2"/>
14621 </call-macro>
14623 <choose>
14624 <when>
14625 <test>
14626 <or>
14627 <equal><!--De moment no sé si el tagger escull bé i els detecto els dos -->
14628 <clip pos="1" side="sl" part="temps"/>
14629 <lit-tag v="inf"/>
14630 </equal>
14631 <equal>
14632 <clip pos="1" side="sl" part="temps"/>
14633 <lit-tag v="pres"/>
14634 </equal>
14635 </or>
14636 </test>
14637 <let>
14638 <clip pos="1" side="tl" part="temps"/>
14639 <lit-tag v="pri"/>
14640 </let>
14641 </when>
14642 <when>
14643 <test>
14644 <equal>
14645 <clip pos="1" side="sl" part="temps"/>
14646 <lit-tag v="past"/>
14647 </equal>
14648 </test>
14649 <let>
14650 <clip pos="1" side="tl" part="temps"/>
14651 <lit-tag v="pii"/>
14652 </let>
14653 </when>
14654 </choose>
14655 <choose>
14656 <when>
14657 <test>
14658 <not>
14659 <and>
14660 <equal>
14661 <clip pos="1" side="tl" part="pers"/>
14662 <lit-tag v="p3"/>
14663 </equal>
14664 <equal>
14665 <clip pos="1" side="tl" part="nbr"/>
14666 <lit-tag v="sg"/>
14667 </equal>
14668 </and>
14669 </not>
14670 </test>
14671 <let>
14672 <var n="paraula1"/>
14673 <clip pos="1" side="tl" part="lemh"/>
14674 </let>
14675 <append n="paraula1">
14676 <clip pos="1" side="tl" part="tags"/>
14677 <lit-tag v="PD"/>
14678 <lit-tag v="ND"/>
14679 <clip pos="1" side="tl" part="lemq"/>
14680 </append>
14681 <let>
14682 <clip pos="1" side="tl" part="whole"/>
14683 <var n="paraula1"/>
14684 </let>
14685 </when>
14686 </choose>
14687 <choose>
14688 <when>
14689 <test><!--MG: quan és gerundi, dintre del verb no hi ha pers i nbr, però en el chunk sí que hi ha PD i ND, per si en el
14690 t2x es fa alguna operació que li assigna pers i nbr (en aquest cas caldrà que en el t3x es passin a dins, al verb, ja que no hi ha enllaç) -->
14691 <equal>
14692 <clip pos="1" side="sl" part="temps"/>
14693 <lit-tag v="ger"/>
14694 </equal>
14695 </test>
14696 <out>
14697 <chunk name="pro_have_pp" case="caseFirstWord">
14698 <tags>
14699 <tag><lit-tag v="SV"/></tag>
14700 <tag><var n="tipus_verb"/></tag>
14701 <tag><clip pos="1" side="tl" part="temps"/></tag>
14702 <tag><clip pos="1" side="tl" part="pers"/></tag>
14703 <tag><clip pos="1" side="tl" part="nbr"/></tag>
14704 </tags>
14705 <lu>
14706 <var n="pronom"/>
14707 <clip pos="3" side="tl" part="lem"/>
14708 <clip pos="3" side="tl" part="a_prnpro"/>
14709 <clip pos="3" side="tl" part="pers"/>
14710 <clip pos="3" side="tl" part="gen"/>
14711 <clip pos="3" side="tl" part="nbr"/>
14712 </lu>
14713 <b pos="1"/>
14714 <lu>
14715 <clip pos="1" side="tl" part="lemh"/>
14716 <clip pos="1" side="tl" part="a_verb"/>
14717 <clip pos="1" side="tl" part="temps" link-to="3"/>
14718 <clip pos="1" side="tl" part="lemq"/>
14719 </lu>
14720 <b pos="2"/>
14721 <lu>
14722 <clip pos="2" side="tl" part="lemh"/>
14723 <clip pos="2" side="tl" part="a_pp"/>
14724 <lit-tag v="m.sg"/>
14725 <clip pos="2" side="tl" part="lemq"/>
14726 </lu>
14727 </chunk>
14728 </out>
14729 </when>
14730 <otherwise>
14731 <out>
14732 <chunk name="pro_have_pp" case="caseFirstWord">
14733 <tags>
14734 <tag><lit-tag v="SV"/></tag>
14735 <tag><var n="tipus_verb"/></tag>
14736 <tag><clip pos="1" side="tl" part="temps"/></tag>
14737 <tag><clip pos="1" side="tl" part="pers"/></tag>
14738 <tag><clip pos="1" side="tl" part="nbr"/></tag>
14739 </tags>
14740 <lu>
14741 <var n="pronom"/>
14742 <clip pos="3" side="tl" part="lem"/>
14743 <clip pos="3" side="tl" part="a_prnpro"/>
14744 <clip pos="3" side="tl" part="pers"/>
14745 <clip pos="3" side="tl" part="gen"/>
14746 <clip pos="3" side="tl" part="nbr"/>
14747 </lu>
14748 <b pos="1"/>
14749 <lu>
14750 <clip pos="1" side="tl" part="lemh"/>
14751 <clip pos="1" side="tl" part="a_verb"/>
14752 <clip pos="1" side="tl" part="temps" link-to="3"/>
14753 <clip pos="1" side="tl" part="pers" link-to="4"/>
14754 <clip pos="1" side="tl" part="nbr" link-to="5"/>
14755 <clip pos="1" side="tl" part="lemq"/>
14756 </lu>
14757 <b pos="2"/>
14758 <lu>
14759 <clip pos="2" side="tl" part="lemh"/>
14760 <clip pos="2" side="tl" part="a_pp"/>
14761 <lit-tag v="m.sg"/>
14762 <clip pos="2" side="tl" part="lemq"/>
14763 </lu>
14764 </chunk>
14765 </out>
14766 </otherwise>
14767 </choose>
14768 <let>
14769 <var n="caseFirstWord"/>
14770 <lit v="aa"/>
14771 </let>
14772 </action>
14773 </rule>
14776 <rule comment="HAVER PARTICIPIcontrolverb TO INF (BCN)">
14777 <pattern>
14778 <pattern-item n="have_aux"/>
14779 <pattern-item n="controlverbpp"/>
14780 <pattern-item n="to"/>
14781 <pattern-item n="inf"/>
14782 </pattern>
14783 <action>
14784 <call-macro n="firstWord">
14785 <with-param pos="1"/>
14786 </call-macro>
14787 <call-macro n="tipus_verbs">
14788 <with-param pos="2"/>
14789 </call-macro>
14790 <call-macro n="tipus_verbs2">
14791 <with-param pos="4"/>
14792 </call-macro>
14793 <call-macro n="pronenc">
14794 <with-param pos="4"/>
14795 </call-macro>
14796 <choose>
14797 <when>
14798 <test>
14799 <equal>
14800 <clip pos="2" side="sl" part="lem"/>
14801 <lit v="try"/>
14802 </equal>
14803 </test>
14804 <let>
14805 <clip pos="2" side="tl" part="lem"/>
14806 <lit v="intentar"/>
14807 </let>
14808 </when>
14809 </choose>
14810 <choose>
14811 <when>
14812 <test>
14813 <or>
14814 <equal><!--De moment no sé si el tagger escull bé i els detecto els dos -->
14815 <clip pos="1" side="sl" part="temps"/>
14816 <lit-tag v="inf"/>
14817 </equal>
14818 <equal>
14819 <clip pos="1" side="sl" part="temps"/>
14820 <lit-tag v="pres"/>
14821 </equal>
14822 </or>
14823 </test>
14824 <let>
14825 <clip pos="1" side="tl" part="temps"/>
14826 <lit-tag v="pri"/>
14827 </let>
14828 </when>
14829 <when>
14830 <test>
14831 <equal>
14832 <clip pos="1" side="sl" part="temps"/>
14833 <lit-tag v="past"/>
14834 </equal>
14835 </test>
14836 <let>
14837 <clip pos="1" side="tl" part="temps"/>
14838 <lit-tag v="pii"/>
14839 </let>
14840 </when>
14841 </choose>
14842 <choose>
14843 <when>
14844 <test>
14845 <not>
14846 <and>
14847 <equal>
14848 <clip pos="1" side="tl" part="pers"/>
14849 <lit-tag v="p3"/>
14850 </equal>
14851 <equal>
14852 <clip pos="1" side="tl" part="nbr"/>
14853 <lit-tag v="sg"/>
14854 </equal>
14855 </and>
14856 </not>
14857 </test>
14858 <let>
14859 <var n="paraula1"/>
14860 <clip pos="1" side="tl" part="lemh"/>
14861 </let>
14862 <append n="paraula1">
14863 <clip pos="1" side="tl" part="tags"/>
14864 <lit-tag v="PD"/>
14865 <lit-tag v="ND"/>
14866 <clip pos="1" side="tl" part="lemq"/>
14867 </append>
14868 <let>
14869 <clip pos="1" side="tl" part="whole"/>
14870 <var n="paraula1"/>
14871 </let>
14872 </when>
14873 </choose>
14874 <out>
14875 <chunk name="have_pp_inf" case="caseFirstWord">
14876 <tags>
14877 <tag><lit-tag v="SV"/></tag>
14878 <tag><var n="tipus_verb"/></tag>
14879 <tag><clip pos="1" side="tl" part="temps"/></tag>
14880 <tag><clip pos="1" side="tl" part="pers"/></tag>
14881 <tag><clip pos="1" side="tl" part="nbr"/></tag>
14882 </tags>
14883 <lu>
14884 <var n="pronom"/>
14885 <clip pos="1" side="tl" part="lemh"/>
14886 <clip pos="1" side="tl" part="a_verb"/>
14887 <clip pos="1" side="tl" part="temps" link-to="3"/>
14888 <clip pos="1" side="tl" part="pers" link-to="4"/>
14889 <clip pos="1" side="tl" part="nbr" link-to="5"/>
14890 <clip pos="1" side="tl" part="lemq"/>
14891 </lu>
14892 <b pos="1"/>
14893 <lu>
14894 <clip pos="2" side="tl" part="lemh"/>
14895 <clip pos="2" side="tl" part="a_pp"/>
14896 <lit-tag v="m.sg"/>
14897 <clip pos="2" side="tl" part="lemq"/>
14898 </lu>
14899 <b pos="2"/>
14900 <lu>
14901 <clip pos="4" side="tl" part="lemh"/>
14902 <clip pos="4" side="tl" part="a_verb"/>
14903 <lit-tag v="inf"/>
14904 <var n="pronomenc"/>
14905 <clip pos="4" side="tl" part="lemq"/>
14906 </lu>
14907 </chunk>
14908 </out>
14909 <let>
14910 <var n="caseFirstWord"/>
14911 <lit v="aa"/>
14912 </let>
14913 </action>
14914 </rule>
14917 <rule comment="REGLA: VERBcontrol + to + INF (BCN 'try/need/... to do this -> intentar/necessitar/ fer'">
14918 <pattern>
14919 <pattern-item n="controlverb"/>
14920 <pattern-item n="to"/>
14921 <pattern-item n="inf"/>
14922 </pattern>
14923 <action>
14924 <call-macro n="firstWord">
14925 <with-param pos="1"/>
14926 </call-macro>
14927 <call-macro n="tipus_verbs">
14928 <with-param pos="1"/>
14929 </call-macro>
14930 <call-macro n="pron">
14931 <with-param pos="1"/>
14932 </call-macro>
14933 <call-macro n="tipus_verbs2">
14934 <with-param pos="3"/>
14935 </call-macro>
14936 <call-macro n="pronenc">
14937 <with-param pos="3"/>
14938 </call-macro>
14939 <choose>
14940 <when>
14941 <test>
14942 <equal>
14943 <clip pos="1" side="sl" part="lem"/>
14944 <lit v="try"/>
14945 </equal>
14946 </test>
14947 <let>
14948 <clip pos="1" side="tl" part="lem"/>
14949 <lit v="intentar"/>
14950 </let>
14951 </when>
14952 </choose>
14953 <choose>
14954 <when>
14955 <test>
14956 <and>
14957 <equal>
14958 <clip pos="1" side="sl" part="temps"/>
14959 <lit-tag v="past"/>
14960 </equal>
14961 <equal>
14962 <clip pos="1" side="sl" part="pers"/>
14963 <lit v=""/>
14964 </equal>
14965 <equal>
14966 <clip pos="1" side="sl" part="nbr"/>
14967 <lit v=""/>
14968 </equal>
14969 </and>
14970 </test>
14971 <out>
14972 <chunk name="verbcj_inf_perif" case="caseFirstWord">
14973 <tags>
14974 <tag><lit-tag v="SV"/></tag>
14975 <tag><var n="tipus_verb"/></tag>
14976 <tag><lit-tag v="ifip"/></tag>
14977 <tag><lit-tag v="PD"/></tag>
14978 <tag><lit-tag v="ND"/></tag>
14979 </tags>
14980 <lu>
14981 <var n="pronom"/>
14982 <lit v="anar"/>
14983 <lit-tag v="vaux"/>
14984 <lit-tag v="4"/>
14985 <lit-tag v="5"/>
14986 </lu>
14987 <b/>
14988 <lu>
14989 <clip pos="1" side="tl" part="lemh"/>
14990 <clip pos="1" side="tl" part="a_verb"/>
14991 <lit-tag v="inf"/>
14992 <clip pos="1" side="tl" part="lemq"/>
14993 </lu>
14994 <b pos="1"/>
14995 <lu>
14996 <clip pos="3" side="tl" part="lemh"/>
14997 <clip pos="3" side="tl" part="a_verb"/>
14998 <lit-tag v="inf"/>
14999 <var n="pronomenc"/>
15000 <clip pos="3" side="tl" part="lemq"/>
15001 </lu>
15002 </chunk>
15003 </out>
15004 </when>
15005 <when>
15006 <test>
15007 <equal><!--és el cas de 'was' i algun altre, que tenen pers i nbr -->
15008 <clip pos="1" side="sl" part="temps"/>
15009 <lit-tag v="past"/>
15010 </equal>
15011 </test>
15012 <out>
15013 <chunk name="verbcj_inf_perif" case="caseFirstWord">
15014 <tags>
15015 <tag><lit-tag v="SV"/></tag>
15016 <tag><var n="tipus_verb"/></tag>
15017 <tag><lit-tag v="ifip"/></tag>
15018 <tag><clip pos="1" side="tl" part="pers"/></tag>
15019 <tag><clip pos="1" side="tl" part="nbr"/></tag>
15020 </tags>
15021 <lu>
15022 <var n="pronom"/>
15023 <lit v="anar"/>
15024 <lit-tag v="vaux"/>
15025 <clip pos="1" side="tl" part="pers" link-to="4"/>
15026 <clip pos="1" side="tl" part="nbr" link-to="5"/>
15027 </lu>
15028 <b/>
15029 <lu>
15030 <clip pos="1" side="tl" part="lemh"/>
15031 <clip pos="1" side="tl" part="a_verb"/>
15032 <lit-tag v="inf"/>
15033 <clip pos="1" side="tl" part="lemq"/>
15034 </lu>
15035 <b pos="1"/>
15036 <lu>
15037 <clip pos="3" side="tl" part="lemh"/>
15038 <clip pos="3" side="tl" part="a_verb"/>
15039 <lit-tag v="inf"/>
15040 <var n="pronomenc"/>
15041 <clip pos="3" side="tl" part="lemq"/>
15042 </lu>
15043 </chunk>
15044 </out>
15045 </when>
15046 <when>
15047 <test>
15048 <equal>
15049 <clip pos="1" side="sl" part="temps"/>
15050 <lit-tag v="pres"/>
15051 </equal>
15052 </test>
15053 <let>
15054 <clip pos="1" side="tl" part="temps"/>
15055 <lit-tag v="pri"/>
15056 </let>
15057 <out>
15058 <chunk name="verbcj_inf" case="caseFirstWord">
15059 <tags>
15060 <tag><lit-tag v="SV"/></tag>
15061 <tag><var n="tipus_verb"/></tag>
15062 <tag><clip pos="1" side="tl" part="temps"/></tag>
15063 <tag><lit-tag v="PD"/></tag>
15064 <tag><lit-tag v="ND"/></tag>
15065 </tags>
15066 <lu>
15067 <var n="pronom"/>
15068 <clip pos="1" side="tl" part="lemh"/>
15069 <clip pos="1" side="tl" part="a_verb"/>
15070 <clip pos="1" side="tl" part="temps" link-to="3"/>
15071 <lit-tag v="4"/>
15072 <lit-tag v="5"/>
15073 <clip pos="1" side="tl" part="lemq"/>
15074 </lu>
15075 <b pos="1"/>
15076 <lu>
15077 <clip pos="3" side="tl" part="lemh"/>
15078 <clip pos="3" side="tl" part="a_verb"/>
15079 <lit-tag v="inf"/>
15080 <var n="pronomenc"/>
15081 <clip pos="3" side="tl" part="lemq"/>
15082 </lu>
15083 </chunk>
15084 </out>
15085 </when>
15087 <when>
15088 <test>
15089 <equal>
15090 <clip pos="1" side="sl" part="temps"/>
15091 <lit-tag v="pri"/>
15092 </equal>
15093 </test>
15094 <out>
15095 <chunk name="verbcj_inf" case="caseFirstWord">
15096 <tags>
15097 <tag><lit-tag v="SV"/></tag>
15098 <tag><var n="tipus_verb"/></tag>
15099 <tag><clip pos="1" side="tl" part="temps"/></tag>
15100 <tag><clip pos="1" side="tl" part="pers"/></tag>
15101 <tag><clip pos="1" side="tl" part="nbr"/></tag>
15102 </tags>
15103 <lu>
15104 <var n="pronom"/>
15105 <clip pos="1" side="tl" part="lemh"/>
15106 <clip pos="1" side="tl" part="a_verb"/>
15107 <clip pos="1" side="tl" part="temps" link-to="3"/>
15108 <clip pos="1" side="tl" part="pers" link-to="4"/>
15109 <clip pos="1" side="tl" part="nbr" link-to="5"/>
15110 <clip pos="1" side="tl" part="lemq"/>
15111 </lu>
15112 <b pos="1"/>
15113 <lu>
15114 <clip pos="3" side="tl" part="lemh"/>
15115 <clip pos="3" side="tl" part="a_verb"/>
15116 <lit-tag v="inf"/>
15117 <var n="pronomenc"/>
15118 <clip pos="3" side="tl" part="lemq"/>
15119 </lu>
15120 </chunk>
15121 </out>
15122 </when>
15123 <when>
15124 <test>
15125 <equal>
15126 <clip pos="1" side="sl" part="temps"/>
15127 <lit-tag v="ger"/>
15128 </equal>
15129 </test>
15130 <out>
15131 <chunk name="verbcj_inf" case="caseFirstWord">
15132 <tags>
15133 <tag><lit-tag v="SV"/></tag>
15134 <tag><var n="tipus_verb"/></tag>
15135 <tag><clip pos="1" side="tl" part="temps"/></tag>
15136 <tag><lit-tag v="PD"/></tag> <!-- BCN pingui -->
15137 <tag><lit-tag v="ND"/></tag> <!-- BCN -->
15138 </tags>
15139 <lu>
15140 <clip pos="1" side="tl" part="lemh"/>
15141 <clip pos="1" side="tl" part="a_verb"/>
15142 <clip pos="1" side="tl" part="temps" link-to="3"/>
15143 <clip pos="1" side="tl" part="lemq"/>
15144 </lu>
15145 <b pos="1"/>
15146 <lu>
15147 <clip pos="3" side="tl" part="lemh"/>
15148 <clip pos="3" side="tl" part="a_verb"/>
15149 <lit-tag v="inf"/>
15150 <var n="pronomenc"/>
15151 <clip pos="3" side="tl" part="lemq"/>
15152 </lu>
15153 </chunk>
15154 </out>
15155 </when>
15156 <otherwise><!--només queda si és 'inf' -->
15157 <out>
15158 <chunk name="inf_inf">
15159 <tags>
15160 <tag><lit-tag v="SV"/></tag>
15161 <tag><var n="tipus_verb"/></tag>
15162 <tag><clip pos="1" side="tl" part="temps"/></tag>
15163 <tag><lit-tag v="PD"/></tag>
15164 <tag><lit-tag v="ND"/></tag>
15165 </tags>
15166 <lu>
15167 <var n="pronom"/>
15168 <clip pos="1" side="tl" part="lemh"/>
15169 <clip pos="1" side="tl" part="a_verb"/>
15170 <clip pos="1" side="tl" part="temps" link-to="3"/>
15171 <clip pos="1" side="tl" part="lemq"/>
15172 </lu>
15173 <b pos="1"/>
15174 <lu>
15175 <clip pos="3" side="tl" part="lemh"/>
15176 <clip pos="3" side="tl" part="a_verb"/>
15177 <lit-tag v="inf"/>
15178 <var n="pronomenc"/>
15179 <clip pos="3" side="tl" part="lemq"/>
15180 </lu>
15181 </chunk>
15182 </out>
15183 </otherwise>
15184 </choose>
15185 <let>
15186 <var n="caseFirstWord"/>
15187 <lit v="aa"/>
15188 </let>
15189 </action>
15190 </rule>
15192 <!-- <rule comment="REGLA: VERBcontrol + to + INF (BCN 'try/need/... to do this -> intentar/necessitar/ fer. MG: PENDENT, no m'aclareixo amb els pronoms i els pronominals'">
15193 <pattern>
15194 <pattern-item n="controlverb"/>
15195 <pattern-item n="to"/>
15196 <pattern-item n="inf"/>
15197 <pattern-item n="probj"/>
15198 </pattern>
15199 <action>
15200 <call-macro n="firstWord">
15201 <with-param pos="1"/>
15202 </call-macro>
15203 <call-macro n="tipus_verbs">
15204 <with-param pos="1"/>
15205 </call-macro>
15206 <call-macro n="pron">
15207 <with-param pos="1"/>
15208 </call-macro>
15209 <call-macro n="tipus_verbs2">
15210 <with-param pos="3"/>
15211 </call-macro>
15212 <call-macro n="pronenc">
15213 <with-param pos="3"/>
15214 </call-macro>
15215 <choose>
15216 <when>
15217 <test>
15218 <and>
15219 <equal>
15220 <clip pos="1" side="sl" part="temps"/>
15221 <lit-tag v="past"/>
15222 </equal>
15223 <equal>
15224 <clip pos="1" side="sl" part="pers"/>
15225 <lit v=""/>
15226 </equal>
15227 <equal>
15228 <clip pos="1" side="sl" part="nbr"/>
15229 <lit v=""/>
15230 </equal>
15231 </and>
15232 </test>
15233 <out>
15234 <chunk name="verbcj_inf_perif" case="caseFirstWord">
15235 <tags>
15236 <tag><lit-tag v="SV"/></tag>
15237 <tag><var n="tipus_verb"/></tag>
15238 <tag><lit-tag v="ifip"/></tag>
15239 <tag><lit-tag v="PD"/></tag>
15240 <tag><lit-tag v="ND"/></tag>
15241 </tags>
15242 <lu>
15243 <var n="pronom"/>
15244 <lit v="anar"/>
15245 <lit-tag v="vaux"/>
15246 <lit-tag v="4"/>
15247 <lit-tag v="5"/>
15248 </lu>
15249 <b/>
15250 <lu>
15251 <clip pos="1" side="tl" part="lemh"/>
15252 <clip pos="1" side="tl" part="a_verb"/>
15253 <lit-tag v="inf"/>
15254 <clip pos="1" side="tl" part="lemq"/>
15255 </lu>
15256 <b pos="1"/>
15257 <lu>
15258 <clip pos="3" side="tl" part="lemh"/>
15259 <clip pos="3" side="tl" part="a_verb"/>
15260 <lit-tag v="inf"/>
15261 <var n="pronomenc"/>
15262 <clip pos="3" side="tl" part="lemq"/>
15263 </lu>
15264 </chunk>
15265 </out>
15266 </when>
15267 <when>
15268 <test>
15269 <equal><!-x-és el cas de 'was' i algun altre, que tenen pers i nbr -x->
15270 <clip pos="1" side="sl" part="temps"/>
15271 <lit-tag v="past"/>
15272 </equal>
15273 </test>
15274 <out>
15275 <chunk name="verbcj_inf_perif" case="caseFirstWord">
15276 <tags>
15277 <tag><lit-tag v="SV"/></tag>
15278 <tag><var n="tipus_verb"/></tag>
15279 <tag><lit-tag v="ifip"/></tag>
15280 <tag><clip pos="1" side="tl" part="pers"/></tag>
15281 <tag><clip pos="1" side="tl" part="nbr"/></tag>
15282 </tags>
15283 <lu>
15284 <var n="pronom"/>
15285 <lit v="anar"/>
15286 <lit-tag v="vaux"/>
15287 <clip pos="1" side="tl" part="pers" link-to="4"/>
15288 <clip pos="1" side="tl" part="nbr" link-to="5"/>
15289 </lu>
15290 <b/>
15291 <lu>
15292 <clip pos="1" side="tl" part="lemh"/>
15293 <clip pos="1" side="tl" part="a_verb"/>
15294 <lit-tag v="inf"/>
15295 <clip pos="1" side="tl" part="lemq"/>
15296 </lu>
15297 <b pos="1"/>
15298 <lu>
15299 <clip pos="3" side="tl" part="lemh"/>
15300 <clip pos="3" side="tl" part="a_verb"/>
15301 <lit-tag v="inf"/>
15302 <var n="pronomenc"/>
15303 <clip pos="3" side="tl" part="lemq"/>
15304 </lu>
15305 </chunk>
15306 </out>
15307 </when>
15308 <when>
15309 <test>
15310 <equal>
15311 <clip pos="1" side="sl" part="temps"/>
15312 <lit-tag v="pres"/>
15313 </equal>
15314 </test>
15315 <let>
15316 <clip pos="1" side="tl" part="temps"/>
15317 <lit-tag v="pri"/>
15318 </let>
15319 <out>
15320 <chunk name="verbcj_inf" case="caseFirstWord">
15321 <tags>
15322 <tag><lit-tag v="SV"/></tag>
15323 <tag><var n="tipus_verb"/></tag>
15324 <tag><clip pos="1" side="tl" part="temps"/></tag>
15325 <tag><lit-tag v="PD"/></tag>
15326 <tag><lit-tag v="ND"/></tag>
15327 </tags>
15328 <lu>
15329 <var n="pronom"/>
15330 <clip pos="1" side="tl" part="lemh"/>
15331 <clip pos="1" side="tl" part="a_verb"/>
15332 <clip pos="1" side="tl" part="temps" link-to="3"/>
15333 <lit-tag v="4"/>
15334 <lit-tag v="5"/>
15335 <clip pos="1" side="tl" part="lemq"/>
15336 </lu>
15337 <b pos="1"/>
15338 <lu>
15339 <clip pos="3" side="tl" part="lemh"/>
15340 <clip pos="3" side="tl" part="a_verb"/>
15341 <lit-tag v="inf"/>
15342 <var n="pronomenc"/>
15343 <clip pos="3" side="tl" part="lemq"/>
15344 </lu>
15345 </chunk>
15346 </out>
15347 </when>
15349 <when>
15350 <test>
15351 <equal>
15352 <clip pos="1" side="sl" part="temps"/>
15353 <lit-tag v="pri"/>
15354 </equal>
15355 </test>
15356 <out>
15357 <chunk name="verbcj_inf" case="caseFirstWord">
15358 <tags>
15359 <tag><lit-tag v="SV"/></tag>
15360 <tag><var n="tipus_verb"/></tag>
15361 <tag><clip pos="1" side="tl" part="temps"/></tag>
15362 <tag><clip pos="1" side="tl" part="pers"/></tag>
15363 <tag><clip pos="1" side="tl" part="nbr"/></tag>
15364 </tags>
15365 <lu>
15366 <var n="pronom"/>
15367 <clip pos="1" side="tl" part="lemh"/>
15368 <clip pos="1" side="tl" part="a_verb"/>
15369 <clip pos="1" side="tl" part="temps" link-to="3"/>
15370 <clip pos="1" side="tl" part="pers" link-to="4"/>
15371 <clip pos="1" side="tl" part="nbr" link-to="5"/>
15372 <clip pos="1" side="tl" part="lemq"/>
15373 </lu>
15374 <b pos="1"/>
15375 <lu>
15376 <clip pos="3" side="tl" part="lemh"/>
15377 <clip pos="3" side="tl" part="a_verb"/>
15378 <lit-tag v="inf"/>
15379 <var n="pronomenc"/>
15380 <clip pos="3" side="tl" part="lemq"/>
15381 </lu>
15382 </chunk>
15383 </out>
15384 </when>
15385 <when>
15386 <test>
15387 <equal>
15388 <clip pos="1" side="sl" part="temps"/>
15389 <lit-tag v="ger"/>
15390 </equal>
15391 </test>
15392 <out>
15393 <chunk name="verbcj_inf" case="caseFirstWord">
15394 <tags>
15395 <tag><lit-tag v="SV"/></tag>
15396 <tag><var n="tipus_verb"/></tag>
15397 <tag><clip pos="1" side="tl" part="temps"/></tag>
15398 <tag><lit-tag v="PD"/></tag> <!-x- BCN pingui -x->
15399 <tag><lit-tag v="ND"/></tag> <!-x- BCN -x->
15400 </tags>
15401 <lu>
15402 <clip pos="1" side="tl" part="lemh"/>
15403 <clip pos="1" side="tl" part="a_verb"/>
15404 <clip pos="1" side="tl" part="temps" link-to="3"/>
15405 <clip pos="1" side="tl" part="lemq"/>
15406 </lu>
15407 <b pos="1"/>
15408 <lu>
15409 <clip pos="3" side="tl" part="lemh"/>
15410 <clip pos="3" side="tl" part="a_verb"/>
15411 <lit-tag v="inf"/>
15412 <var n="pronomenc"/>
15413 <clip pos="3" side="tl" part="lemq"/>
15414 </lu>
15415 </chunk>
15416 </out>
15417 </when>
15418 </choose>
15419 <let>
15420 <var n="caseFirstWord"/>
15421 <lit v="aa"/>
15422 </let>
15423 </action>
15424 </rule>
15429 <rule comment="REGLA: AUX + VERBcontrol + to + INF (BCN 'try/need/... to do this -> intentar/necessitar/ fer'">
15430 <pattern>
15431 <pattern-item n="auxmod"/>
15432 <pattern-item n="controlverb"/>
15433 <pattern-item n="to"/>
15434 <pattern-item n="inf"/>
15435 </pattern>
15436 <action>
15437 <call-macro n="firstWord">
15438 <with-param pos="1"/>
15439 </call-macro>
15440 <call-macro n="tipus_verbs">
15441 <with-param pos="2"/>
15442 </call-macro>
15443 <call-macro n="tipus_verbs2">
15444 <with-param pos="4"/>
15445 </call-macro>
15446 <call-macro n="pronenc">
15447 <with-param pos="4"/>
15448 </call-macro>
15449 <!-- <call-macro n="pron">
15450 <with-param pos="2"/>
15451 </call-macro> els controlverbs no són per ara pronominals-->
15452 <choose>
15453 <when>
15454 <test>
15455 <equal>
15456 <clip pos="2" side="sl" part="lem"/>
15457 <lit v="try"/>
15458 </equal>
15459 </test>
15460 <let>
15461 <clip pos="2" side="tl" part="lem"/>
15462 <lit v="intentar"/>
15463 </let>
15464 </when>
15465 </choose>
15466 <choose>
15467 <when>
15468 <test>
15469 <and>
15470 <equal caseless="yes">
15471 <clip pos="1" side="sl" part="lem"/>
15472 <lit v="can"/>
15473 </equal>
15474 <equal>
15475 <clip pos="1" side="sl" part="temps"/>
15476 <lit-tag v="pres"/>
15477 </equal>
15478 </and>
15479 </test>
15480 <let>
15481 <clip pos="1" side="tl" part="temps"/>
15482 <lit-tag v="pri"/>
15483 </let>
15484 </when>
15485 <when>
15486 <test>
15487 <and>
15488 <equal caseless="yes">
15489 <clip pos="1" side="sl" part="lem"/>
15490 <lit v="can"/>
15491 </equal>
15492 <equal>
15493 <clip pos="1" side="sl" part="temps"/>
15494 <lit-tag v="past"/>
15495 </equal>
15496 </and>
15497 </test>
15498 <let>
15499 <clip pos="1" side="tl" part="temps"/>
15500 <lit-tag v="cni"/>
15501 </let>
15502 </when>
15503 <when>
15504 <test>
15505 <or>
15506 <equal caseless="yes">
15507 <clip pos="1" side="sl" part="lem"/>
15508 <lit v="must"/>
15509 </equal>
15510 <equal caseless="yes">
15511 <clip pos="1" side="sl" part="lem"/>
15512 <lit v="may"/>
15513 </equal>
15514 </or>
15515 </test>
15516 <let>
15517 <clip pos="1" side="tl" part="temps"/>
15518 <lit-tag v="pri"/>
15519 </let>
15520 </when>
15521 <when>
15522 <test>
15523 <or>
15524 <equal caseless="yes">
15525 <clip pos="1" side="sl" part="lem"/>
15526 <lit v="should"/>
15527 </equal>
15528 <equal caseless="yes">
15529 <clip pos="1" side="sl" part="lem"/>
15530 <lit v="might"/>
15531 </equal>
15532 </or>
15533 </test>
15534 <let>
15535 <clip pos="1" side="tl" part="temps"/>
15536 <lit-tag v="cni"/>
15537 </let>
15538 </when>
15539 </choose>
15540 <out>
15541 <chunk name="auxmod_inf_inf" case="caseFirstWord">
15542 <tags>
15543 <tag><lit-tag v="SV"/></tag>
15544 <tag><var n="tipus_verb"/></tag>
15545 <tag><clip pos="1" side="tl" part="temps"/></tag>
15546 <tag><lit-tag v="PD"/></tag>
15547 <tag><lit-tag v="ND"/></tag>
15548 </tags>
15549 <lu>
15550 <var n="pronom"/>
15551 <clip pos="1" side="tl" part="lemh"/>
15552 <clip pos="1" side="tl" part="a_verb"/>
15553 <clip pos="1" side="tl" part="temps" link-to="3"/>
15554 <lit-tag v="4"/>
15555 <lit-tag v="5"/>
15556 <clip pos="1" side="tl" part="lemq"/>
15557 </lu>
15558 <b pos="1"/>
15559 <lu>
15560 <clip pos="2" side="tl" part="lemh"/>
15561 <clip pos="2" side="tl" part="a_verb"/>
15562 <lit-tag v="inf"/>
15563 <clip pos="2" side="tl" part="lemq"/>
15564 </lu>
15565 <b pos="2"/>
15566 <lu>
15567 <clip pos="4" side="tl" part="lemh"/>
15568 <clip pos="4" side="tl" part="a_verb"/>
15569 <lit-tag v="inf"/>
15570 <var n="pronomenc"/>
15571 <clip pos="4" side="tl" part="lemq"/>
15572 </lu>
15573 </chunk>
15574 </out>
15575 <let>
15576 <var n="caseFirstWord"/>
15577 <lit v="aa"/>
15578 </let>
15579 </action>
15580 </rule>
15583 <rule comment="REGLA: AUX + ADV + VERBcontrol + to + INF (BCN 'try/need/... to do this -> intentar/necessitar/ fer'">
15584 <pattern>
15585 <pattern-item n="auxmod"/>
15586 <pattern-item n="adv"/>
15587 <pattern-item n="controlverb"/>
15588 <pattern-item n="to"/>
15589 <pattern-item n="inf"/>
15590 </pattern>
15591 <action>
15592 <call-macro n="firstWord">
15593 <with-param pos="1"/>
15594 </call-macro>
15595 <call-macro n="tipus_verbs">
15596 <with-param pos="3"/>
15597 </call-macro>
15598 <call-macro n="tipus_verbs2">
15599 <with-param pos="5"/>
15600 </call-macro>
15601 <call-macro n="pronenc">
15602 <with-param pos="5"/>
15603 </call-macro>
15604 <choose>
15605 <when>
15606 <test>
15607 <equal>
15608 <clip pos="3" side="sl" part="lem"/>
15609 <lit v="try"/>
15610 </equal>
15611 </test>
15612 <let>
15613 <clip pos="3" side="tl" part="lem"/>
15614 <lit v="intentar"/>
15615 </let>
15616 </when>
15617 </choose>
15618 <choose>
15619 <when>
15620 <test>
15621 <in caseless="yes">
15622 <clip pos="2" side="sl" part="lem"/>
15623 <list n="adv_neg"/>
15624 </in>
15625 </test>
15626 <let>
15627 <var n="paraula2"/>
15628 <clip pos="2" side="tl" part="whole"/>
15629 </let>
15630 <append n="paraula2">
15631 <lit-tag v="NEG"/>
15632 </append>
15633 <let>
15634 <clip pos="2" side="tl" part="whole"/>
15635 <var n="paraula2"/>
15636 </let>
15637 </when>
15638 </choose>
15639 <out>
15640 <chunk name="adv" case="caseFirstWord">
15641 <tags>
15642 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
15643 <tag><clip pos="2" side="tl" part="neg"/></tag>
15644 </tags>
15645 <lu>
15646 <clip pos="2" side="tl" part="lem"/>
15647 <clip pos="2" side="tl" part="a_adv"/>
15648 </lu>
15649 </chunk>
15650 <b pos="1"/>
15651 </out>
15653 <choose>
15654 <when>
15655 <test>
15656 <and>
15657 <equal caseless="yes">
15658 <clip pos="1" side="sl" part="lem"/>
15659 <lit v="can"/>
15660 </equal>
15661 <equal>
15662 <clip pos="1" side="sl" part="temps"/>
15663 <lit-tag v="pres"/>
15664 </equal>
15665 </and>
15666 </test>
15667 <let>
15668 <clip pos="1" side="tl" part="temps"/>
15669 <lit-tag v="pri"/>
15670 </let>
15671 </when>
15672 <when>
15673 <test>
15674 <and>
15675 <equal caseless="yes">
15676 <clip pos="1" side="sl" part="lem"/>
15677 <lit v="can"/>
15678 </equal>
15679 <equal>
15680 <clip pos="1" side="sl" part="temps"/>
15681 <lit-tag v="past"/>
15682 </equal>
15683 </and>
15684 </test>
15685 <let>
15686 <clip pos="1" side="tl" part="temps"/>
15687 <lit-tag v="cni"/>
15688 </let>
15689 </when>
15690 <when>
15691 <test>
15692 <or>
15693 <equal caseless="yes">
15694 <clip pos="1" side="sl" part="lem"/>
15695 <lit v="must"/>
15696 </equal>
15697 <equal caseless="yes">
15698 <clip pos="1" side="sl" part="lem"/>
15699 <lit v="may"/>
15700 </equal>
15701 </or>
15702 </test>
15703 <let>
15704 <clip pos="1" side="tl" part="temps"/>
15705 <lit-tag v="pri"/>
15706 </let>
15707 </when>
15708 <when>
15709 <test>
15710 <or>
15711 <equal caseless="yes">
15712 <clip pos="1" side="sl" part="lem"/>
15713 <lit v="should"/>
15714 </equal>
15715 <equal caseless="yes">
15716 <clip pos="1" side="sl" part="lem"/>
15717 <lit v="might"/>
15718 </equal>
15719 </or>
15720 </test>
15721 <let>
15722 <clip pos="1" side="tl" part="temps"/>
15723 <lit-tag v="cni"/>
15724 </let>
15725 </when>
15726 </choose>
15727 <out>
15728 <chunk name="auxmod_inf_inf" case="caseFirstWord">
15729 <tags>
15730 <tag><lit-tag v="SV"/></tag>
15731 <tag><var n="tipus_verb"/></tag>
15732 <tag><clip pos="1" side="tl" part="temps"/></tag>
15733 <tag><lit-tag v="PD"/></tag>
15734 <tag><lit-tag v="ND"/></tag>
15735 </tags>
15736 <lu>
15737 <var n="pronom"/>
15738 <clip pos="1" side="tl" part="lemh"/>
15739 <clip pos="1" side="tl" part="a_verb"/>
15740 <clip pos="1" side="tl" part="temps" link-to="3"/>
15741 <lit-tag v="4"/>
15742 <lit-tag v="5"/>
15743 <clip pos="1" side="tl" part="lemq"/>
15744 </lu>
15745 <b pos="1"/>
15746 <lu>
15747 <clip pos="3" side="tl" part="lemh"/>
15748 <clip pos="3" side="tl" part="a_verb"/>
15749 <lit-tag v="inf"/>
15750 <clip pos="3" side="tl" part="lemq"/>
15751 </lu>
15752 <b pos="2"/>
15753 <lu>
15754 <clip pos="5" side="tl" part="lemh"/>
15755 <clip pos="5" side="tl" part="a_verb"/>
15756 <lit-tag v="inf"/>
15757 <var n="pronomenc"/>
15758 <clip pos="5" side="tl" part="lemq"/>
15759 </lu>
15760 </chunk>
15761 </out>
15762 <let>
15763 <var n="caseFirstWord"/>
15764 <lit v="aa"/>
15765 </let>
15766 </action>
15767 </rule>
15769 <rule comment="REGLA: AUX (temps) + VERBcontrol + to + INF (BCN 'try/need/... to do this -> intentar/necessitar/ fer'">
15770 <pattern>
15771 <pattern-item n="auxtemps"/>
15772 <pattern-item n="controlverb"/>
15773 <pattern-item n="to"/>
15774 <pattern-item n="inf"/>
15775 </pattern>
15776 <action>
15777 <call-macro n="firstWord">
15778 <with-param pos="1"/>
15779 </call-macro>
15780 <call-macro n="tipus_verbs">
15781 <with-param pos="2"/>
15782 </call-macro>
15783 <call-macro n="tipus_verbs2">
15784 <with-param pos="4"/>
15785 </call-macro>
15786 <call-macro n="pronenc">
15787 <with-param pos="4"/>
15788 </call-macro>
15789 <choose>
15790 <when>
15791 <test>
15792 <equal>
15793 <clip pos="2" side="sl" part="lem"/>
15794 <lit v="try"/>
15795 </equal>
15796 </test>
15797 <let>
15798 <clip pos="2" side="tl" part="lem"/>
15799 <lit v="intentar"/>
15800 </let>
15801 </when>
15802 </choose>
15803 <choose>
15804 <when>
15805 <test>
15806 <or>
15807 <equal caseless="yes">
15808 <clip pos="1" side="sl" part="lem"/>
15809 <lit v="will"/>
15810 </equal>
15811 <equal caseless="yes">
15812 <clip pos="1" side="sl" part="lem"/>
15813 <lit v="shall"/>
15814 </equal>
15815 </or>
15816 </test>
15817 <let>
15818 <clip pos="2" side="tl" part="temps"/>
15819 <lit-tag v="fti"/>
15820 </let>
15821 </when>
15822 <when>
15823 <test>
15824 <equal caseless="yes">
15825 <clip pos="1" side="sl" part="lem"/>
15826 <lit v="would"/>
15827 </equal>
15828 </test>
15829 <let>
15830 <clip pos="2" side="tl" part="temps"/>
15831 <lit-tag v="cni"/>
15832 </let>
15833 </when>
15834 </choose>
15835 <out>
15836 <chunk name="verbcj_inf" case="caseFirstWord">
15837 <tags>
15838 <tag><lit-tag v="SV"/></tag>
15839 <tag><var n="tipus_verb"/></tag>
15840 <tag><clip pos="2" side="tl" part="temps"/></tag>
15841 <tag><lit-tag v="PD"/></tag>
15842 <tag><lit-tag v="ND"/></tag>
15843 </tags>
15844 <lu>
15845 <var n="pronom"/>
15846 <clip pos="2" side="tl" part="lemh"/>
15847 <clip pos="2" side="tl" part="a_verb"/>
15848 <clip pos="2" side="tl" part="temps" link-to="3"/>
15849 <lit-tag v="4"/>
15850 <lit-tag v="5"/>
15851 <clip pos="2" side="tl" part="lemq"/>
15852 </lu>
15853 <b pos="1"/>
15854 <lu>
15855 <clip pos="4" side="tl" part="lemh"/>
15856 <clip pos="4" side="tl" part="a_verb"/>
15857 <lit-tag v="inf"/>
15858 <var n="pronomenc"/>
15859 <clip pos="4" side="tl" part="lemq"/>
15860 </lu>
15861 </chunk>
15862 </out>
15863 <let>
15864 <var n="caseFirstWord"/>
15865 <lit v="aa"/>
15866 </let>
15867 </action>
15868 </rule>
15871 <rule comment="REGLA: AUX (temps) + ADV + VERBcontrol + to + INF (BCN 'try/need/... to do this -> intentar/necessitar/ fer'">
15872 <pattern>
15873 <pattern-item n="auxtemps"/>
15874 <pattern-item n="adv"/>
15875 <pattern-item n="controlverb"/>
15876 <pattern-item n="to"/>
15877 <pattern-item n="inf"/>
15878 </pattern>
15879 <action>
15880 <call-macro n="firstWord">
15881 <with-param pos="1"/>
15882 </call-macro>
15883 <call-macro n="tipus_verbs">
15884 <with-param pos="3"/>
15885 </call-macro>
15886 <call-macro n="tipus_verbs2">
15887 <with-param pos="5"/>
15888 </call-macro>
15889 <call-macro n="pronenc">
15890 <with-param pos="5"/>
15891 </call-macro>
15892 <choose>
15893 <when>
15894 <test>
15895 <equal>
15896 <clip pos="3" side="sl" part="lem"/>
15897 <lit v="try"/>
15898 </equal>
15899 </test>
15900 <let>
15901 <clip pos="3" side="tl" part="lem"/>
15902 <lit v="intentar"/>
15903 </let>
15904 </when>
15905 </choose>
15906 <choose>
15907 <when>
15908 <test>
15909 <in caseless="yes">
15910 <clip pos="2" side="sl" part="lem"/>
15911 <list n="adv_neg"/>
15912 </in>
15913 </test>
15914 <let>
15915 <var n="paraula2"/>
15916 <clip pos="2" side="tl" part="whole"/>
15917 </let>
15918 <append n="paraula2">
15919 <lit-tag v="NEG"/>
15920 </append>
15921 <let>
15922 <clip pos="2" side="tl" part="whole"/>
15923 <var n="paraula2"/>
15924 </let>
15925 </when>
15926 </choose>
15927 <out>
15928 <chunk name="adv" case="caseFirstWord">
15929 <tags>
15930 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
15931 <tag><clip pos="2" side="tl" part="neg"/></tag>
15932 </tags>
15933 <lu>
15934 <clip pos="2" side="tl" part="lem"/>
15935 <clip pos="2" side="tl" part="a_adv"/>
15936 </lu>
15937 </chunk>
15938 <b pos="1"/>
15939 </out>
15940 <choose>
15941 <when>
15942 <test>
15943 <or>
15944 <equal caseless="yes">
15945 <clip pos="1" side="sl" part="lem"/>
15946 <lit v="will"/>
15947 </equal>
15948 <equal caseless="yes">
15949 <clip pos="1" side="sl" part="lem"/>
15950 <lit v="shall"/>
15951 </equal>
15952 </or>
15953 </test>
15954 <let>
15955 <clip pos="3" side="tl" part="temps"/>
15956 <lit-tag v="fti"/>
15957 </let>
15958 </when>
15959 <when>
15960 <test>
15961 <equal caseless="yes">
15962 <clip pos="1" side="sl" part="lem"/>
15963 <lit v="would"/>
15964 </equal>
15965 </test>
15966 <let>
15967 <clip pos="3" side="tl" part="temps"/>
15968 <lit-tag v="cni"/>
15969 </let>
15970 </when>
15971 </choose>
15973 <out>
15974 <chunk name="verbcj_inf" case="caseFirstWord">
15975 <tags>
15976 <tag><lit-tag v="SV"/></tag>
15977 <tag><var n="tipus_verb"/></tag>
15978 <tag><clip pos="3" side="tl" part="temps"/></tag>
15979 <tag><lit-tag v="PD"/></tag>
15980 <tag><lit-tag v="ND"/></tag>
15981 </tags>
15982 <lu>
15983 <var n="pronom"/>
15984 <clip pos="3" side="tl" part="lemh"/>
15985 <clip pos="3" side="tl" part="a_verb"/>
15986 <clip pos="3" side="tl" part="temps" link-to="3"/>
15987 <lit-tag v="4"/>
15988 <lit-tag v="5"/>
15989 <clip pos="3" side="tl" part="lemq"/>
15990 </lu>
15991 <b pos="1"/>
15992 <lu>
15993 <clip pos="5" side="tl" part="lemh"/>
15994 <clip pos="5" side="tl" part="a_verb"/>
15995 <lit-tag v="inf"/>
15996 <var n="pronomenc"/>
15997 <clip pos="5" side="tl" part="lemq"/>
15998 </lu>
15999 </chunk>
16000 </out>
16001 <let>
16002 <var n="caseFirstWord"/>
16003 <lit v="aa"/>
16004 </let>
16005 </action>
16006 </rule>
16009 <!--***************** present i past continuous ****************************** -->
16014 <rule comment="REGLA: BE GER (am saying -> estic dient)">
16015 <pattern>
16016 <pattern-item n="be"/>
16017 <pattern-item n="ger"/>
16018 </pattern>
16019 <action>
16020 <call-macro n="firstWord">
16021 <with-param pos="1"/>
16022 </call-macro>
16023 <call-macro n="tipus_verbs">
16024 <with-param pos="2"/>
16025 </call-macro>
16026 <call-macro n="pron">
16027 <with-param pos="2"/>
16028 </call-macro>
16029 <choose>
16030 <when> <!-- if BE=pp then estar, i envia pronom si el verb és pronominal-->
16031 <test>
16032 <and>
16033 <equal>
16034 <clip pos="1" side="sl" part="temps"/>
16035 <lit-tag v="pp"/>
16036 </equal>
16037 <equal>
16038 <clip pos="2" side="tl" part="a_verb"/>
16039 <lit-tag v="vblex.pron"/>
16040 </equal>
16041 </and>
16042 </test>
16043 <let>
16044 <clip pos="1" side="tl" part="lemh"/>
16045 <lit v="estar"/>
16046 </let>
16047 <let>
16048 <clip pos="1" side="tl" part="a_verb"/>
16049 <lit-tag v="vblex"/>
16050 </let>
16051 <out>
16052 <chunk name="be_ger_enc" case="caseFirstWord">
16053 <tags>
16054 <tag><lit-tag v="SV"/></tag>
16055 <tag><var n="tipus_verb"/></tag>
16056 <tag><clip pos="1" side="tl" part="temps"/></tag>
16057 <tag><lit-tag v="m"/></tag>
16058 <tag><lit-tag v="sg"/></tag>
16059 </tags>
16060 <lu>
16061 <clip pos="1" side="tl" part="lemh"/>
16062 <clip pos="1" side="tl" part="a_verb"/>
16063 <clip pos="1" side="tl" part="temps" link-to="3"/>
16064 <lit-tag v="4"/>
16065 <lit-tag v="5"/>
16066 <clip pos="1" side="tl" part="lemq"/>
16067 </lu>
16068 <b pos="1"/>
16069 <mlu>
16070 <lu>
16071 <clip pos="2" side="tl" part="lemh"/>
16072 <clip pos="2" side="tl" part="a_verb"/>
16073 <clip pos="2" side="tl" part="temps"/>
16074 <clip pos="2" side="tl" part="lemq"/>
16075 </lu>
16076 <lu><!--enviem el pronom reflexiu perquè en aquest cas, quan es dóna el chunk 'been + ger' sense el 'have', vol dir que el 'have' està lluny i per tant, per ara, no es pot determinar la persona de l'enclític ('he has, in recent years, been caring....' -->
16077 <lit v="es"/>
16078 <lit-tag v="prn.enc.ref.p3.mf.sp"/>
16079 <clip pos="3" side="tl" part="lemq"/>
16080 </lu>
16081 </mlu>
16082 </chunk>
16083 </out>
16084 </when>
16085 <when> <!-- if BE=pp then estar (entra per aquí si el verb no és pronominal)-->
16086 <test>
16087 <equal>
16088 <clip pos="1" side="sl" part="temps"/>
16089 <lit-tag v="pp"/>
16090 </equal>
16091 </test>
16092 <let>
16093 <clip pos="1" side="tl" part="lemh"/>
16094 <lit v="estar"/>
16095 </let>
16096 <let>
16097 <clip pos="1" side="tl" part="a_verb"/>
16098 <lit-tag v="vblex"/>
16099 </let>
16100 <out>
16101 <chunk name="be_ger" case="caseFirstWord">
16102 <tags>
16103 <tag><lit-tag v="SV"/></tag>
16104 <tag><var n="tipus_verb"/></tag>
16105 <tag><clip pos="1" side="tl" part="temps"/></tag>
16106 <tag><lit-tag v="m"/></tag>
16107 <tag><lit-tag v="sg"/></tag>
16108 </tags>
16109 <lu>
16110 <clip pos="1" side="tl" part="lemh"/>
16111 <clip pos="1" side="tl" part="a_verb"/>
16112 <clip pos="1" side="tl" part="temps" link-to="3"/>
16113 <lit-tag v="4"/>
16114 <lit-tag v="5"/>
16115 <clip pos="1" side="tl" part="lemq"/>
16116 </lu>
16117 <b pos="1"/>
16118 <lu>
16119 <clip pos="2" side="tl" part="lemh"/>
16120 <clip pos="2" side="tl" part="a_verb"/>
16121 <clip pos="2" side="tl" part="temps"/>
16122 <clip pos="2" side="tl" part="lemq"/>
16123 </lu>
16124 </chunk>
16125 </out>
16126 </when>
16127 <otherwise>
16128 <choose>
16129 <when>
16130 <test>
16131 <equal>
16132 <clip pos="1" side="sl" part="temps"/>
16133 <lit-tag v="past"/>
16134 </equal>
16135 </test>
16136 <let>
16137 <clip pos="2" side="tl" part="temps"/>
16138 <lit-tag v="pii"/><!--'deia' -->
16139 </let>
16140 <call-macro n="f_bcond">
16141 <with-param pos="1"/>
16142 </call-macro>
16143 <out><!--was/were, les dues formes són ambigues en quant a pers/nbr, per tant PD i ND si temps = past-->
16144 <chunk name="verbcj" case="caseFirstWord">
16145 <tags>
16146 <tag><lit-tag v="SV"/></tag>
16147 <tag><var n="tipus_verb"/></tag>
16148 <tag><clip pos="2" side="tl" part="temps"/></tag>
16149 <tag><lit-tag v="PD"/></tag>
16150 <tag><lit-tag v="ND"/></tag>
16151 </tags>
16152 <lu>
16153 <var n="pronom"/>
16154 <clip pos="2" side="tl" part="lemh"/>
16155 <clip pos="2" side="tl" part="a_verb"/>
16156 <clip pos="2" side="tl" part="temps" link-to="3"/>
16157 <lit-tag v="4"/>
16158 <lit-tag v="5"/>
16159 <clip pos="2" side="tl" part="lemq"/>
16160 </lu>
16161 </chunk>
16162 </out>
16163 </when>
16164 <otherwise>
16165 <choose>
16166 <when>
16167 <test>
16168 <and>
16169 <equal><!--Si no té pers, tampoc té nbr, llavors serà PD i ND -->
16170 <clip pos="1" side="tl" part="pers"/>
16171 <lit v=""/>
16172 </equal>
16173 <not><!--a menys que siguin inf o ger, ja que llavors no tenen prs ni nbr -->
16174 <or>
16175 <equal>
16176 <clip pos="1" side="sl" part="temps"/>
16177 <lit-tag v="inf"/>
16178 </equal>
16179 <equal>
16180 <clip pos="1" side="sl" part="temps"/>
16181 <lit-tag v="ger"/>
16182 </equal>
16183 </or>
16184 </not>
16185 </and>
16186 </test>
16187 <let>
16188 <var n="paraula1"/>
16189 <clip pos="1" side="tl" part="lemh"/>
16190 </let>
16191 <append n="paraula1">
16192 <clip pos="1" side="tl" part="tags"/>
16193 <lit-tag v="PD"/>
16194 <lit-tag v="ND"/>
16195 <clip pos="1" side="tl" part="lemq"/>
16196 </append>
16197 <let>
16198 <clip pos="1" side="tl" part="whole"/>
16199 <var n="paraula1"/>
16200 </let>
16201 </when>
16202 </choose>
16204 <choose>
16205 <when>
16206 <test>
16207 <or>
16208 <equal>
16209 <clip pos="1" side="sl" part="temps"/>
16210 <lit-tag v="pri"/>
16211 </equal>
16212 <equal>
16213 <clip pos="1" side="sl" part="temps"/>
16214 <lit-tag v="pres"/>
16215 </equal>
16216 </or>
16217 </test>
16218 <let>
16219 <clip pos="1" side="tl" part="temps"/>
16220 <lit-tag v="pri"/>
16221 </let>
16222 <let>
16223 <clip pos="1" side="tl" part="lemh"/>
16224 <lit v="estar"/>
16225 </let>
16226 <let>
16227 <clip pos="1" side="tl" part="a_verb"/>
16228 <lit-tag v="vblex"/>
16229 </let>
16230 </when>
16231 </choose>
16232 <out>
16233 <chunk name="be_ger" case="caseFirstWord">
16234 <tags>
16235 <tag><lit-tag v="SV"/></tag>
16236 <tag><var n="tipus_verb"/></tag>
16237 <tag><clip pos="1" side="tl" part="temps"/></tag>
16238 <tag><clip pos="1" side="tl" part="pers"/></tag>
16239 <tag><clip pos="1" side="tl" part="nbr"/></tag>
16240 </tags>
16241 <lu>
16242 <var n="pronom"/>
16243 <clip pos="1" side="tl" part="lemh"/>
16244 <clip pos="1" side="tl" part="a_verb"/>
16245 <clip pos="1" side="tl" part="temps" link-to="3"/>
16246 <clip pos="1" side="tl" part="pers" link-to="4"/>
16247 <clip pos="1" side="tl" part="nbr" link-to="5"/>
16248 <clip pos="1" side="tl" part="lemq"/>
16249 </lu>
16250 <b pos="1"/>
16251 <lu>
16252 <clip pos="2" side="tl" part="lemh"/>
16253 <clip pos="2" side="tl" part="a_verb"/>
16254 <clip pos="2" side="tl" part="temps"/>
16255 <clip pos="2" side="tl" part="lemq"/>
16256 </lu>
16257 </chunk>
16258 </out>
16259 </otherwise>
16260 </choose>
16261 </otherwise>
16262 </choose>
16263 <let>
16264 <var n="caseFirstWord"/>
16265 <lit v="aa"/>
16266 </let>
16267 </action>
16268 </rule>
16270 <rule comment="REGLA: BE GER clític (am saying it-> ho estic dient)">
16271 <pattern>
16272 <pattern-item n="be"/>
16273 <pattern-item n="ger"/>
16274 <pattern-item n="probj"/>
16275 </pattern>
16276 <action>
16277 <call-macro n="firstWord">
16278 <with-param pos="1"/>
16279 </call-macro>
16280 <call-macro n="tipus_verbs">
16281 <with-param pos="2"/>
16282 </call-macro>
16283 <call-macro n="pron">
16284 <with-param pos="2"/>
16285 </call-macro>
16286 <choose>
16287 <when>
16288 <test>
16289 <equal>
16290 <clip pos="1" side="sl" part="temps"/>
16291 <lit-tag v="pp"/>
16292 </equal>
16293 </test>
16294 <let>
16295 <clip pos="1" side="tl" part="lemh"/>
16296 <lit v="estar"/>
16297 </let>
16298 <let>
16299 <clip pos="1" side="tl" part="a_verb"/>
16300 <lit-tag v="vblex"/>
16301 </let>
16302 <out>
16303 <chunk name="be_ger_enc" case="caseFirstWord">
16304 <tags>
16305 <tag><lit-tag v="SV"/></tag>
16306 <tag><var n="tipus_verb"/></tag>
16307 <tag><clip pos="1" side="tl" part="temps"/></tag>
16308 <tag><lit-tag v="m"/></tag>
16309 <tag><lit-tag v="sg"/></tag>
16310 </tags>
16311 <lu>
16312 <clip pos="1" side="tl" part="lemh"/>
16313 <clip pos="1" side="tl" part="a_verb"/>
16314 <clip pos="1" side="tl" part="temps" link-to="3"/>
16315 <lit-tag v="4"/>
16316 <lit-tag v="5"/>
16317 <clip pos="1" side="tl" part="lemq"/>
16318 </lu>
16319 <b pos="1"/>
16320 <mlu>
16321 <lu>
16322 <clip pos="2" side="tl" part="lemh"/>
16323 <clip pos="2" side="tl" part="a_verb"/>
16324 <clip pos="2" side="tl" part="temps"/>
16325 <clip pos="2" side="tl" part="lemq"/>
16326 </lu>
16327 <lu>
16328 <clip pos="3" side="tl" part="lem"/>
16329 <lit-tag v="prn.enc"/>
16330 <clip pos="3" side="tl" part="pers"/>
16331 <clip pos="3" side="tl" part="gen"/>
16332 <clip pos="3" side="tl" part="nbr"/>
16333 </lu>
16334 </mlu>
16335 </chunk>
16336 </out>
16337 <call-macro n="f_bcond">
16338 <with-param pos="2"/>
16339 </call-macro>
16340 </when>
16341 <otherwise>
16343 <choose>
16344 <when>
16345 <test>
16346 <equal>
16347 <clip pos="1" side="sl" part="temps"/>
16348 <lit-tag v="past"/>
16349 </equal>
16350 </test>
16351 <let>
16352 <clip pos="2" side="tl" part="temps"/>
16353 <lit-tag v="pii"/><!--'deia' -->
16354 </let>
16355 <call-macro n="f_bcond">
16356 <with-param pos="1"/>
16357 </call-macro>
16358 <out><!--was/were, les dues formes són ambigues en quant a pers/nbr, per tant PD i ND si temps = past-->
16359 <chunk name="pro_verbcj" case="caseFirstWord">
16360 <tags>
16361 <tag><lit-tag v="SV"/></tag>
16362 <tag><var n="tipus_verb"/></tag>
16363 <tag><clip pos="2" side="tl" part="temps"/></tag>
16364 <tag><lit-tag v="PD"/></tag>
16365 <tag><lit-tag v="ND"/></tag>
16366 </tags>
16367 <lu>
16368 <var n="pronom"/>
16369 <clip pos="3" side="tl" part="lem"/>
16370 <clip pos="3" side="tl" part="a_prnpro"/>
16371 <clip pos="3" side="tl" part="pers"/>
16372 <clip pos="3" side="tl" part="gen"/>
16373 <clip pos="3" side="tl" part="nbr"/>
16374 </lu>
16375 <b pos="2"/>
16376 <lu>
16377 <clip pos="2" side="tl" part="lemh"/>
16378 <clip pos="2" side="tl" part="a_verb"/>
16379 <clip pos="2" side="tl" part="temps" link-to="3"/>
16380 <lit-tag v="4"/>
16381 <lit-tag v="5"/>
16382 <clip pos="2" side="tl" part="lemq"/>
16383 </lu>
16384 </chunk>
16385 </out>
16386 </when>
16387 <otherwise>
16388 <choose>
16389 <when>
16390 <test>
16391 <and>
16392 <equal><!--Si no té pers, tampoc té nbr, llavors serà PD i ND -->
16393 <clip pos="1" side="tl" part="pers"/>
16394 <lit v=""/>
16395 </equal>
16396 <not><!--a menys que siguin inf o ger, ja que llavors no tenen prs ni nbr -->
16397 <or>
16398 <equal>
16399 <clip pos="1" side="sl" part="temps"/>
16400 <lit-tag v="inf"/>
16401 </equal>
16402 <equal>
16403 <clip pos="1" side="sl" part="temps"/>
16404 <lit-tag v="ger"/>
16405 </equal>
16406 </or>
16407 </not>
16408 </and>
16409 </test>
16410 <let>
16411 <var n="paraula1"/>
16412 <clip pos="1" side="tl" part="lemh"/>
16413 </let>
16414 <append n="paraula1">
16415 <clip pos="1" side="tl" part="tags"/>
16416 <lit-tag v="PD"/>
16417 <lit-tag v="ND"/>
16418 <clip pos="1" side="tl" part="lemq"/>
16419 </append>
16420 <let>
16421 <clip pos="1" side="tl" part="whole"/>
16422 <var n="paraula1"/>
16423 </let>
16424 </when>
16425 </choose>
16426 <choose>
16427 <when>
16428 <test>
16429 <or>
16430 <equal>
16431 <clip pos="1" side="sl" part="temps"/>
16432 <lit-tag v="pri"/>
16433 </equal>
16434 <equal>
16435 <clip pos="1" side="sl" part="temps"/>
16436 <lit-tag v="pres"/>
16437 </equal>
16438 </or>
16439 </test>
16440 <let>
16441 <clip pos="1" side="tl" part="temps"/>
16442 <lit-tag v="pri"/>
16443 </let>
16444 <let>
16445 <clip pos="1" side="tl" part="lemh"/>
16446 <lit v="estar"/>
16447 </let>
16448 <let>
16449 <clip pos="1" side="tl" part="a_verb"/>
16450 <lit-tag v="vblex"/>
16451 </let>
16452 </when>
16453 </choose>
16454 <out>
16455 <chunk name="pro_be_ger" case="caseFirstWord">
16456 <tags>
16457 <tag><lit-tag v="SV"/></tag>
16458 <tag><var n="tipus_verb"/></tag>
16459 <tag><clip pos="1" side="tl" part="temps"/></tag>
16460 <tag><clip pos="1" side="tl" part="pers"/></tag>
16461 <tag><clip pos="1" side="tl" part="nbr"/></tag>
16462 </tags>
16463 <lu>
16464 <var n="pronom"/>
16465 <clip pos="3" side="tl" part="lem"/>
16466 <clip pos="3" side="tl" part="a_prnpro"/>
16467 <clip pos="3" side="tl" part="pers"/>
16468 <clip pos="3" side="tl" part="gen"/>
16469 <clip pos="3" side="tl" part="nbr"/>
16470 </lu>
16471 <b pos="1"/>
16472 <lu>
16473 <clip pos="1" side="tl" part="lemh"/>
16474 <clip pos="1" side="tl" part="a_verb"/>
16475 <clip pos="1" side="tl" part="temps" link-to="3"/>
16476 <clip pos="1" side="tl" part="pers" link-to="4"/>
16477 <clip pos="1" side="tl" part="nbr" link-to="5"/>
16478 <clip pos="1" side="tl" part="lemq"/>
16479 </lu>
16480 <b pos="2"/>
16481 <lu>
16482 <clip pos="2" side="tl" part="lemh"/>
16483 <clip pos="2" side="tl" part="a_verb"/>
16484 <clip pos="2" side="tl" part="temps"/>
16485 <clip pos="2" side="tl" part="lemq"/>
16486 </lu>
16487 </chunk>
16488 </out>
16489 </otherwise>
16490 </choose>
16491 </otherwise>
16492 </choose>
16493 <let>
16494 <var n="caseFirstWord"/>
16495 <lit v="aa"/>
16496 </let>
16497 </action>
16498 </rule>
16502 <rule comment="REGLA: BE ADV GER (is always/not working -> sempre/no està treballant">
16503 <pattern>
16504 <pattern-item n="be"/>
16505 <pattern-item n="adv"/>
16506 <pattern-item n="ger"/>
16507 </pattern>
16508 <action>
16509 <call-macro n="firstWord">
16510 <with-param pos="1"/>
16511 </call-macro>
16512 <call-macro n="tipus_verbs">
16513 <with-param pos="3"/>
16514 </call-macro>
16515 <call-macro n="pron">
16516 <with-param pos="2"/>
16517 </call-macro>
16519 <choose>
16520 <when>
16521 <test>
16522 <in caseless="yes">
16523 <clip pos="2" side="sl" part="lem"/>
16524 <list n="adv_neg"/>
16525 </in>
16526 </test>
16527 <let>
16528 <var n="paraula2"/>
16529 <clip pos="2" side="tl" part="whole"/>
16530 </let>
16531 <append n="paraula2">
16532 <lit-tag v="NEG"/>
16533 </append>
16534 <let>
16535 <clip pos="2" side="tl" part="whole"/>
16536 <var n="paraula2"/>
16537 </let>
16538 </when>
16539 </choose>
16540 <out>
16541 <chunk name="adv" case="caseFirstWord">
16542 <tags>
16543 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
16544 <tag><clip pos="2" side="tl" part="neg"/></tag>
16545 </tags>
16546 <lu>
16547 <clip pos="2" side="tl" part="lem"/>
16548 <clip pos="2" side="tl" part="a_adv"/>
16549 </lu>
16550 </chunk>
16551 <b pos="1"/>
16552 </out>
16553 <choose><!--i a partir d'aquí, és el tractament de 'be' + 'ger', igual que a la regla anterior -->
16554 <when>
16555 <test>
16556 <equal>
16557 <clip pos="1" side="sl" part="temps"/>
16558 <lit-tag v="pp"/>
16559 </equal>
16560 </test>
16561 <let>
16562 <clip pos="1" side="tl" part="lemh"/>
16563 <lit v="estar"/>
16564 </let>
16565 <let>
16566 <clip pos="1" side="tl" part="a_verb"/>
16567 <lit-tag v="vblex"/>
16568 </let>
16570 <out>
16571 <chunk name="be_ger" case="caseFirstWord">
16572 <tags>
16573 <tag><lit-tag v="SV"/></tag>
16574 <tag><var n="tipus_verb"/></tag>
16575 <tag><clip pos="1" side="tl" part="temps"/></tag>
16576 <tag><lit-tag v="m"/></tag>
16577 <tag><lit-tag v="sg"/></tag>
16578 </tags>
16579 <lu>
16580 <clip pos="1" side="tl" part="lemh"/>
16581 <clip pos="1" side="tl" part="a_verb"/>
16582 <clip pos="1" side="tl" part="temps" link-to="3"/>
16583 <lit-tag v="4"/>
16584 <lit-tag v="5"/>
16585 <clip pos="1" side="tl" part="lemq"/>
16586 </lu>
16587 <b pos="2"/>
16588 <lu>
16589 <clip pos="3" side="tl" part="lemh"/>
16590 <clip pos="3" side="tl" part="a_verb"/>
16591 <clip pos="3" side="tl" part="temps"/>
16592 <clip pos="3" side="tl" part="lemq"/>
16593 </lu>
16594 </chunk>
16595 </out>
16596 </when>
16597 <otherwise>
16598 <choose>
16600 <when>
16601 <test>
16602 <equal>
16603 <clip pos="1" side="sl" part="temps"/>
16604 <lit-tag v="past"/>
16605 </equal>
16606 </test>
16607 <let>
16608 <clip pos="3" side="tl" part="temps"/>
16609 <lit-tag v="pii"/><!--'deia' -->
16610 </let>
16611 <call-macro n="f_bcond">
16612 <with-param pos="2"/>
16613 </call-macro>
16614 <call-macro n="firstWord">
16615 <with-param pos="1"/>
16616 </call-macro>
16617 <out><!--was/were, les dues formes són ambigues en quant a pers/nbr, per tant PD i ND si temps = past-->
16618 <chunk name="verbcj">
16619 <tags>
16620 <tag><lit-tag v="SV"/></tag>
16621 <tag><var n="tipus_verb"/></tag>
16622 <tag><clip pos="3" side="tl" part="temps"/></tag>
16623 <tag><lit-tag v="PD"/></tag>
16624 <tag><lit-tag v="ND"/></tag>
16625 </tags>
16626 <lu>
16627 <var n="pronom"/>
16628 <clip pos="3" side="tl" part="lemh"/>
16629 <clip pos="3" side="tl" part="a_verb"/>
16630 <clip pos="3" side="tl" part="temps" link-to="3"/>
16631 <lit-tag v="4"/>
16632 <lit-tag v="5"/>
16633 <clip pos="3" side="tl" part="lemq"/>
16634 </lu>
16635 </chunk>
16636 </out>
16637 </when>
16638 <otherwise>
16639 <choose>
16640 <when>
16641 <test>
16642 <and>
16643 <equal><!--Si no té pers, tampoc té nbr, llavors serà PD i ND -->
16644 <clip pos="1" side="tl" part="pers"/>
16645 <lit v=""/>
16646 </equal>
16647 <not><!--a menys que siguin inf o ger, ja que llavors no tenen prs ni nbr -->
16648 <or>
16649 <equal>
16650 <clip pos="1" side="sl" part="temps"/>
16651 <lit-tag v="inf"/>
16652 </equal>
16653 <equal>
16654 <clip pos="1" side="sl" part="temps"/>
16655 <lit-tag v="ger"/>
16656 </equal>
16657 </or>
16658 </not>
16659 </and>
16660 </test>
16661 <let>
16662 <var n="paraula1"/>
16663 <clip pos="1" side="tl" part="lemh"/>
16664 </let>
16665 <append n="paraula1">
16666 <clip pos="1" side="tl" part="tags"/>
16667 <lit-tag v="PD"/>
16668 <lit-tag v="ND"/>
16669 <clip pos="1" side="tl" part="lemq"/>
16670 </append>
16671 <let>
16672 <clip pos="1" side="tl" part="whole"/>
16673 <var n="paraula1"/>
16674 </let>
16675 </when>
16676 </choose>
16677 <choose>
16678 <when>
16679 <test>
16680 <or>
16681 <equal>
16682 <clip pos="1" side="sl" part="temps"/>
16683 <lit-tag v="pri"/>
16684 </equal>
16685 <equal>
16686 <clip pos="1" side="sl" part="temps"/>
16687 <lit-tag v="pres"/>
16688 </equal>
16689 </or>
16690 </test>
16691 <let>
16692 <clip pos="1" side="tl" part="temps"/>
16693 <lit-tag v="pri"/>
16694 </let>
16695 <let>
16696 <clip pos="1" side="tl" part="lemh"/>
16697 <lit v="estar"/>
16698 </let>
16699 <let>
16700 <clip pos="1" side="tl" part="a_verb"/>
16701 <lit-tag v="vblex"/>
16702 </let>
16703 </when>
16704 </choose>
16705 <out>
16706 <chunk name="be_ger">
16707 <tags>
16708 <tag><lit-tag v="SV"/></tag>
16709 <tag><var n="tipus_verb"/></tag>
16710 <tag><clip pos="1" side="tl" part="temps"/></tag>
16711 <tag><clip pos="1" side="tl" part="pers"/></tag>
16712 <tag><clip pos="1" side="tl" part="nbr"/></tag>
16713 </tags>
16714 <lu>
16715 <var n="pronom"/>
16716 <clip pos="1" side="tl" part="lemh"/>
16717 <clip pos="1" side="tl" part="a_verb"/>
16718 <clip pos="1" side="tl" part="temps" link-to="3"/>
16719 <clip pos="1" side="tl" part="pers" link-to="4"/>
16720 <clip pos="1" side="tl" part="nbr" link-to="5"/>
16721 <clip pos="1" side="tl" part="lemq"/>
16722 </lu>
16723 <b pos="2"/>
16724 <lu>
16725 <clip pos="3" side="tl" part="lemh"/>
16726 <clip pos="3" side="tl" part="a_verb"/>
16727 <clip pos="3" side="tl" part="temps"/>
16728 <clip pos="3" side="tl" part="lemq"/>
16729 </lu>
16730 </chunk>
16731 </out>
16732 </otherwise>
16733 </choose>
16734 </otherwise>
16735 </choose>
16736 <let>
16737 <var n="caseFirstWord"/>
16738 <lit v="aa"/>
16739 </let>
16740 </action>
16741 </rule>
16743 <rule comment="REGLA: BE ADV GER clític (is always singing it-> sempre l'està cantant">
16744 <pattern>
16745 <pattern-item n="be"/>
16746 <pattern-item n="adv"/>
16747 <pattern-item n="ger"/>
16748 <pattern-item n="probj"/>
16749 </pattern>
16750 <action>
16751 <call-macro n="firstWord">
16752 <with-param pos="1"/>
16753 </call-macro>
16754 <call-macro n="tipus_verbs">
16755 <with-param pos="3"/>
16756 </call-macro>
16757 <call-macro n="pron">
16758 <with-param pos="3"/>
16759 </call-macro>
16761 <choose>
16762 <when>
16763 <test>
16764 <in caseless="yes">
16765 <clip pos="2" side="sl" part="lem"/>
16766 <list n="adv_neg"/>
16767 </in>
16768 </test>
16769 <let>
16770 <var n="paraula2"/>
16771 <clip pos="2" side="tl" part="whole"/>
16772 </let>
16773 <append n="paraula2">
16774 <lit-tag v="NEG"/>
16775 </append>
16776 <let>
16777 <clip pos="2" side="tl" part="whole"/>
16778 <var n="paraula2"/>
16779 </let>
16780 </when>
16781 </choose>
16782 <out>
16783 <chunk name="adv" case="caseFirstWord">
16784 <tags>
16785 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
16786 <tag><clip pos="2" side="tl" part="neg"/></tag>
16787 </tags>
16788 <lu>
16789 <clip pos="2" side="tl" part="lem"/>
16790 <clip pos="2" side="tl" part="a_adv"/>
16791 </lu>
16792 </chunk>
16793 <b pos="1"/>
16794 </out>
16795 <choose><!--i a partir d'aquí, és el tractament de 'be' + 'ger', igual que a la regla anterior -->
16796 <when>
16797 <test>
16799 <equal>
16800 <clip pos="1" side="sl" part="temps"/>
16801 <lit-tag v="pp"/>
16802 </equal>
16803 </test>
16804 <let>
16805 <clip pos="1" side="tl" part="lemh"/>
16806 <lit v="estar"/>
16807 </let>
16808 <let>
16809 <clip pos="1" side="tl" part="a_verb"/>
16810 <lit-tag v="vblex"/>
16811 </let>
16812 <out>
16813 <chunk name="be_ger_enc" case="caseFirstWord">
16814 <tags>
16815 <tag><lit-tag v="SV"/></tag>
16816 <tag><var n="tipus_verb"/></tag>
16817 <tag><clip pos="1" side="tl" part="temps"/></tag>
16818 <tag><lit-tag v="m"/></tag>
16819 <tag><lit-tag v="sg"/></tag>
16820 </tags>
16821 <lu>
16822 <clip pos="1" side="tl" part="lemh"/>
16823 <clip pos="1" side="tl" part="a_verb"/>
16824 <clip pos="1" side="tl" part="temps" link-to="3"/>
16825 <lit-tag v="4"/>
16826 <lit-tag v="5"/>
16827 <clip pos="1" side="tl" part="lemq"/>
16828 </lu>
16830 <b pos="2"/>
16831 <mlu>
16832 <lu>
16833 <clip pos="3" side="tl" part="lemh"/>
16834 <clip pos="3" side="tl" part="a_verb"/>
16835 <clip pos="3" side="tl" part="temps"/>
16836 <clip pos="3" side="tl" part="lemq"/>
16837 </lu>
16838 <lu>
16839 <clip pos="4" side="tl" part="lem"/>
16840 <lit-tag v="prn.enc"/>
16841 <clip pos="4" side="tl" part="pers"/>
16842 <clip pos="4" side="tl" part="gen"/>
16843 <clip pos="4" side="tl" part="nbr"/>
16844 </lu>
16845 </mlu>
16846 </chunk>
16847 </out>
16848 <call-macro n="f_bcond">
16849 <with-param pos="2"/>
16850 </call-macro>
16851 </when>
16852 <otherwise>
16853 <choose>
16854 <when>
16855 <test>
16856 <equal>
16857 <clip pos="1" side="sl" part="temps"/>
16858 <lit-tag v="past"/>
16859 </equal>
16860 </test>
16861 <let>
16862 <clip pos="3" side="tl" part="temps"/>
16863 <lit-tag v="pii"/><!--'deia' -->
16864 </let>
16865 <call-macro n="f_bcond">
16866 <with-param pos="2"/>
16867 </call-macro>
16868 <call-macro n="firstWord">
16869 <with-param pos="1"/>
16870 </call-macro>
16871 <out><!--was/were, les dues formes són ambigues en quant a pers/nbr, per tant PD i ND si temps = past-->
16872 <chunk name="pro_verbcj">
16873 <tags>
16874 <tag><lit-tag v="SV"/></tag>
16875 <tag><var n="tipus_verb"/></tag>
16876 <tag><clip pos="3" side="tl" part="temps"/></tag>
16877 <tag><lit-tag v="PD"/></tag>
16878 <tag><lit-tag v="ND"/></tag>
16879 </tags>
16880 <lu>
16881 <var n="pronom"/>
16882 <clip pos="4" side="tl" part="lem"/>
16883 <clip pos="4" side="tl" part="a_prnpro"/>
16884 <clip pos="4" side="tl" part="pers"/>
16885 <clip pos="4" side="tl" part="gen"/>
16886 <clip pos="4" side="tl" part="nbr"/>
16887 </lu>
16888 <b pos="2"/>
16889 <lu>
16890 <clip pos="3" side="tl" part="lemh"/>
16891 <clip pos="3" side="tl" part="a_verb"/>
16892 <clip pos="3" side="tl" part="temps" link-to="3"/>
16893 <lit-tag v="4"/>
16894 <lit-tag v="5"/>
16895 <clip pos="3" side="tl" part="lemq"/>
16896 </lu>
16897 </chunk>
16898 </out>
16899 <call-macro n="f_bcond">
16900 <with-param pos="3"/>
16901 </call-macro>
16902 </when>
16903 <otherwise>
16904 <choose>
16905 <when>
16906 <test>
16907 <and>
16908 <equal><!--Si no té pers, tampoc té nbr, llavors serà PD i ND -->
16909 <clip pos="1" side="tl" part="pers"/>
16910 <lit v=""/>
16911 </equal>
16912 <not><!--a menys que siguin inf o ger, ja que llavors no tenen prs ni nbr -->
16913 <or>
16914 <equal>
16915 <clip pos="1" side="sl" part="temps"/>
16916 <lit-tag v="inf"/>
16917 </equal>
16918 <equal>
16919 <clip pos="1" side="sl" part="temps"/>
16920 <lit-tag v="ger"/>
16921 </equal>
16922 </or>
16923 </not>
16924 </and>
16925 </test>
16926 <let>
16927 <var n="paraula1"/>
16928 <clip pos="1" side="tl" part="lemh"/>
16929 </let>
16930 <append n="paraula1">
16931 <clip pos="1" side="tl" part="tags"/>
16932 <lit-tag v="PD"/>
16933 <lit-tag v="ND"/>
16934 <clip pos="1" side="tl" part="lemq"/>
16935 </append>
16936 <let>
16937 <clip pos="1" side="tl" part="whole"/>
16938 <var n="paraula1"/>
16939 </let>
16940 </when>
16941 </choose>
16942 <choose>
16943 <when>
16944 <test>
16945 <or>
16946 <equal>
16947 <clip pos="1" side="sl" part="temps"/>
16948 <lit-tag v="pri"/>
16949 </equal>
16950 <equal>
16951 <clip pos="1" side="sl" part="temps"/>
16952 <lit-tag v="pres"/>
16953 </equal>
16954 </or>
16955 </test>
16956 <let>
16957 <clip pos="1" side="tl" part="temps"/>
16958 <lit-tag v="pri"/>
16959 </let>
16960 <let>
16961 <clip pos="1" side="tl" part="lemh"/>
16962 <lit v="estar"/>
16963 </let>
16964 <let>
16965 <clip pos="1" side="tl" part="a_verb"/>
16966 <lit-tag v="vblex"/>
16967 </let>
16968 </when>
16969 </choose>
16970 <out>
16971 <chunk name="pro_be_ger">
16972 <tags>
16973 <tag><lit-tag v="SV"/></tag>
16974 <tag><var n="tipus_verb"/></tag>
16975 <tag><clip pos="1" side="tl" part="temps"/></tag>
16976 <tag><clip pos="1" side="tl" part="pers"/></tag>
16977 <tag><clip pos="1" side="tl" part="nbr"/></tag>
16978 </tags>
16979 <lu>
16980 <var n="pronom"/>
16981 <clip pos="4" side="tl" part="lem"/>
16982 <clip pos="4" side="tl" part="a_prnpro"/>
16983 <clip pos="4" side="tl" part="pers"/>
16984 <clip pos="4" side="tl" part="gen"/>
16985 <clip pos="4" side="tl" part="nbr"/>
16986 </lu>
16987 <b pos="2"/>
16988 <lu>
16989 <clip pos="1" side="tl" part="lemh"/>
16990 <clip pos="1" side="tl" part="a_verb"/>
16991 <clip pos="1" side="tl" part="temps" link-to="3"/>
16992 <clip pos="1" side="tl" part="pers" link-to="4"/>
16993 <clip pos="1" side="tl" part="nbr" link-to="5"/>
16994 <clip pos="1" side="tl" part="lemq"/>
16995 </lu>
16996 <b pos="3"/>
16997 <lu>
16998 <clip pos="3" side="tl" part="lemh"/>
16999 <clip pos="3" side="tl" part="a_verb"/>
17000 <clip pos="3" side="tl" part="temps"/>
17001 <clip pos="3" side="tl" part="lemq"/>
17002 </lu>
17003 </chunk>
17004 </out>
17005 </otherwise>
17006 </choose>
17007 </otherwise>
17008 </choose>
17009 <let>
17010 <var n="caseFirstWord"/>
17011 <lit v="aa"/>
17012 </let>
17013 </action>
17014 </rule>
17018 <rule comment="REGLA: BE CONTROLger TO INF(BCN am planing to go -> estic planejant anar)">
17019 <pattern>
17020 <pattern-item n="be"/>
17021 <pattern-item n="controlverbger"/>
17022 <pattern-item n="to"/>
17023 <pattern-item n="inf"/>
17024 </pattern>
17025 <action>
17026 <call-macro n="firstWord">
17027 <with-param pos="1"/>
17028 </call-macro>
17029 <call-macro n="tipus_verbs">
17030 <with-param pos="2"/>
17031 </call-macro>
17032 <call-macro n="tipus_verbs2">
17033 <with-param pos="4"/>
17034 </call-macro>
17035 <call-macro n="pronenc">
17036 <with-param pos="4"/>
17037 </call-macro>
17038 <choose>
17039 <when>
17040 <test>
17041 <equal>
17042 <clip pos="2" side="sl" part="lem"/>
17043 <lit v="try"/>
17044 </equal>
17045 </test>
17046 <let>
17047 <clip pos="2" side="tl" part="lem"/>
17048 <lit v="intentar"/>
17049 </let>
17050 </when>
17051 </choose>
17052 <choose>
17053 <when>
17054 <test>
17055 <equal>
17056 <clip pos="1" side="sl" part="temps"/>
17057 <lit-tag v="pp"/>
17058 </equal>
17059 </test>
17060 <let>
17061 <clip pos="1" side="tl" part="lemh"/>
17062 <lit v="estar"/>
17063 </let>
17064 <let>
17065 <clip pos="1" side="tl" part="a_verb"/>
17066 <lit-tag v="vblex"/>
17067 </let>
17068 <out>
17069 <chunk name="be_inf_inf" case="caseFirstWord">
17070 <tags>
17071 <tag><lit-tag v="SV"/></tag>
17072 <tag><var n="tipus_verb"/></tag>
17073 <tag><clip pos="1" side="tl" part="temps"/></tag>
17074 <tag><lit-tag v="m"/></tag>
17075 <tag><lit-tag v="sg"/></tag>
17076 </tags>
17077 <lu>
17078 <clip pos="1" side="tl" part="lemh"/>
17079 <clip pos="1" side="tl" part="a_verb"/>
17080 <clip pos="1" side="tl" part="temps" link-to="3"/>
17081 <lit-tag v="4"/>
17082 <lit-tag v="5"/>
17083 <clip pos="1" side="tl" part="lemq"/>
17084 </lu>
17085 <b pos="1"/>
17086 <lu>
17087 <clip pos="2" side="tl" part="lemh"/>
17088 <clip pos="2" side="tl" part="a_verb"/>
17089 <clip pos="2" side="tl" part="temps"/>
17090 <clip pos="2" side="tl" part="lemq"/>
17091 </lu>
17092 <b pos="2"/>
17093 <lu>
17094 <clip pos="4" side="tl" part="lemh"/>
17095 <clip pos="4" side="tl" part="a_verb"/>
17096 <lit-tag v="inf"/>
17097 <var n="pronomenc"/>
17098 <clip pos="4" side="tl" part="lemq"/>
17099 </lu>
17100 </chunk>
17101 </out>
17102 </when>
17103 <otherwise>
17104 <choose>
17105 <when>
17106 <test>
17107 <equal>
17108 <clip pos="1" side="sl" part="temps"/>
17109 <lit-tag v="past"/>
17110 </equal>
17111 </test>
17112 <let>
17113 <clip pos="2" side="tl" part="temps"/>
17114 <lit-tag v="pii"/><!--'deia' -->
17115 </let>
17116 <call-macro n="f_bcond">
17117 <with-param pos="1"/>
17118 </call-macro>
17119 <out><!--was/were, les dues formes són ambigues en quant a pers/nbr, per tant PD i ND si temps = past-->
17120 <chunk name="verbcj_inf" case="caseFirstWord">
17121 <tags>
17122 <tag><lit-tag v="SV"/></tag>
17123 <tag><var n="tipus_verb"/></tag>
17124 <tag><clip pos="2" side="tl" part="temps"/></tag>
17125 <tag><lit-tag v="PD"/></tag>
17126 <tag><lit-tag v="ND"/></tag>
17127 </tags>
17128 <lu>
17129 <var n="pronom"/>
17130 <clip pos="2" side="tl" part="lemh"/>
17131 <clip pos="2" side="tl" part="a_verb"/>
17132 <clip pos="2" side="tl" part="temps" link-to="3"/>
17133 <lit-tag v="4"/>
17134 <lit-tag v="5"/>
17135 <clip pos="2" side="tl" part="lemq"/>
17136 </lu>
17137 <b pos="1"/>
17138 <lu>
17139 <clip pos="4" side="tl" part="lemh"/>
17140 <clip pos="4" side="tl" part="a_verb"/>
17141 <lit-tag v="inf"/>
17142 <var n="pronomenc"/>
17143 <clip pos="4" side="tl" part="lemq"/>
17144 </lu>
17145 </chunk>
17146 </out>
17147 </when>
17148 <otherwise>
17149 <choose>
17150 <when>
17151 <test>
17152 <and>
17153 <equal><!--Si no té pers, tampoc té nbr, llavors serà PD i ND -->
17154 <clip pos="1" side="tl" part="pers"/>
17155 <lit v=""/>
17156 </equal>
17157 <not><!--a menys que siguin inf o ger, ja que llavors no tenen prs ni nbr -->
17158 <or>
17159 <equal>
17160 <clip pos="1" side="sl" part="temps"/>
17161 <lit-tag v="inf"/>
17162 </equal>
17163 <equal>
17164 <clip pos="1" side="sl" part="temps"/>
17165 <lit-tag v="ger"/>
17166 </equal>
17167 </or>
17168 </not>
17169 </and>
17170 </test>
17171 <let>
17172 <var n="paraula1"/>
17173 <clip pos="1" side="tl" part="lemh"/>
17174 </let>
17175 <append n="paraula1">
17176 <clip pos="1" side="tl" part="tags"/>
17177 <lit-tag v="PD"/>
17178 <lit-tag v="ND"/>
17179 <clip pos="1" side="tl" part="lemq"/>
17180 </append>
17181 <let>
17182 <clip pos="1" side="tl" part="whole"/>
17183 <var n="paraula1"/>
17184 </let>
17185 </when>
17186 </choose>
17188 <choose>
17189 <when>
17190 <test>
17191 <or>
17192 <equal>
17193 <clip pos="1" side="sl" part="temps"/>
17194 <lit-tag v="pri"/>
17195 </equal>
17196 <equal>
17197 <clip pos="1" side="sl" part="temps"/>
17198 <lit-tag v="pres"/>
17199 </equal>
17200 </or>
17201 </test>
17202 <let>
17203 <clip pos="1" side="tl" part="temps"/>
17204 <lit-tag v="pri"/>
17205 </let>
17206 <let>
17207 <clip pos="1" side="tl" part="lemh"/>
17208 <lit v="estar"/>
17209 </let>
17210 <let>
17211 <clip pos="1" side="tl" part="a_verb"/>
17212 <lit-tag v="vblex"/>
17213 </let>
17214 </when>
17215 </choose>
17216 <out>
17217 <chunk name="be_inf_inf" case="caseFirstWord">
17218 <tags>
17219 <tag><lit-tag v="SV"/></tag>
17220 <tag><var n="tipus_verb"/></tag>
17221 <tag><clip pos="1" side="tl" part="temps"/></tag>
17222 <tag><clip pos="1" side="tl" part="pers"/></tag>
17223 <tag><clip pos="1" side="tl" part="nbr"/></tag>
17224 </tags>
17225 <lu>
17226 <var n="pronom"/>
17227 <clip pos="1" side="tl" part="lemh"/>
17228 <clip pos="1" side="tl" part="a_verb"/>
17229 <clip pos="1" side="tl" part="temps" link-to="3"/>
17230 <clip pos="1" side="tl" part="pers" link-to="4"/>
17231 <clip pos="1" side="tl" part="nbr" link-to="5"/>
17232 <clip pos="1" side="tl" part="lemq"/>
17233 </lu>
17234 <b pos="1"/>
17235 <lu>
17236 <clip pos="2" side="tl" part="lemh"/>
17237 <clip pos="2" side="tl" part="a_verb"/>
17238 <clip pos="2" side="tl" part="temps"/>
17239 <clip pos="2" side="tl" part="lemq"/>
17240 </lu>
17241 <b pos="2"/>
17242 <lu>
17243 <clip pos="4" side="tl" part="lemh"/>
17244 <clip pos="4" side="tl" part="a_verb"/>
17245 <lit-tag v="inf"/>
17246 <var n="pronomenc"/>
17247 <clip pos="4" side="tl" part="lemq"/>
17248 </lu>
17249 </chunk>
17250 </out>
17251 </otherwise>
17252 </choose>
17253 </otherwise>
17254 </choose>
17255 <let>
17256 <var n="caseFirstWord"/>
17257 <lit v="aa"/>
17258 </let>
17259 </action>
17260 </rule>
17263 <rule comment="REGLA: AUX ADV VERB (will always think -> sempre pensaré. will not think -> no pensaré.)">
17264 <pattern>
17265 <pattern-item n="auxtemps"/>
17266 <pattern-item n="adv"/>
17267 <pattern-item n="infpres"/>
17268 </pattern>
17269 <action>
17270 <call-macro n="firstWord">
17271 <with-param pos="1"/>
17272 </call-macro>
17273 <call-macro n="tipus_verbs">
17274 <with-param pos="3"/>
17275 </call-macro>
17276 <call-macro n="pron">
17277 <with-param pos="3"/>
17278 </call-macro>
17280 <choose>
17281 <when>
17282 <test>
17283 <in caseless="yes">
17284 <clip pos="2" side="sl" part="lem"/>
17285 <list n="adv_neg"/>
17286 </in>
17287 </test>
17288 <let>
17289 <var n="paraula2"/>
17290 <clip pos="2" side="tl" part="whole"/>
17291 </let>
17292 <append n="paraula2">
17293 <lit-tag v="NEG"/>
17294 </append>
17295 <let>
17296 <clip pos="2" side="tl" part="whole"/>
17297 <var n="paraula2"/>
17298 </let>
17299 </when>
17300 </choose>
17301 <out>
17302 <chunk name="adv" case="caseFirstWord">
17303 <tags>
17304 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
17305 <tag><clip pos="2" side="tl" part="neg"/></tag>
17306 </tags>
17307 <lu>
17308 <clip pos="2" side="tl" part="lem"/>
17309 <clip pos="2" side="tl" part="a_adv"/>
17310 </lu>
17311 </chunk>
17312 <b pos="1"/>
17313 </out>
17314 <choose>
17315 <when>
17316 <test>
17317 <or>
17318 <equal caseless="yes">
17319 <clip pos="1" side="sl" part="lem"/>
17320 <lit v="will"/>
17321 </equal>
17322 <equal caseless="yes">
17323 <clip pos="1" side="sl" part="lem"/>
17324 <lit v="shall"/>
17325 </equal>
17326 </or>
17327 </test>
17328 <let>
17329 <clip pos="3" side="tl" part="temps"/>
17330 <lit-tag v="fti"/>
17331 </let>
17332 </when>
17333 <when>
17334 <test>
17335 <equal caseless="yes">
17336 <clip pos="1" side="sl" part="lem"/>
17337 <lit v="would"/>
17338 </equal>
17339 </test>
17340 <let>
17341 <clip pos="3" side="tl" part="temps"/>
17342 <lit-tag v="cni"/>
17343 </let>
17344 </when>
17345 </choose>
17347 <out>
17348 <chunk name="verbcj">
17349 <tags>
17350 <tag><lit-tag v="SV"/></tag>
17351 <tag><var n="tipus_verb"/></tag>
17352 <tag><clip pos="3" side="tl" part="temps"/></tag>
17353 <tag><lit-tag v="PD"/></tag>
17354 <tag><lit-tag v="ND"/></tag>
17355 </tags>
17356 <lu>
17357 <var n="pronom"/>
17358 <clip pos="3" side="tl" part="lemh"/>
17359 <clip pos="3" side="tl" part="a_verb"/>
17360 <clip pos="3" side="tl" part="temps" link-to="3"/>
17361 <lit-tag v="4"/>
17362 <lit-tag v="5"/>
17363 <clip pos="3" side="tl" part="lemq"/>
17364 </lu>
17365 </chunk>
17366 </out>
17367 <call-macro n="f_bcond">
17368 <with-param pos="2"/>
17369 </call-macro>
17370 <let>
17371 <var n="caseFirstWord"/>
17372 <lit v="aa"/>
17373 </let>
17374 </action>
17375 </rule>
17377 <rule comment="REGLA: AUX ADV VERB clític (will always sing it-> sempre el cantaré. will not sing it-> no el cantaré.)">
17378 <pattern>
17379 <pattern-item n="auxtemps"/>
17380 <pattern-item n="adv"/>
17381 <pattern-item n="infpres"/>
17382 <pattern-item n="probj"/>
17383 </pattern>
17384 <action>
17385 <call-macro n="firstWord">
17386 <with-param pos="1"/>
17387 </call-macro>
17388 <call-macro n="tipus_verbs">
17389 <with-param pos="3"/>
17390 </call-macro>
17391 <call-macro n="pron">
17392 <with-param pos="3"/>
17393 </call-macro>
17395 <choose>
17396 <when>
17397 <test>
17398 <in caseless="yes">
17399 <clip pos="2" side="sl" part="lem"/>
17400 <list n="adv_neg"/>
17401 </in>
17402 </test>
17403 <let>
17404 <var n="paraula2"/>
17405 <clip pos="2" side="tl" part="whole"/>
17406 </let>
17407 <append n="paraula2">
17408 <lit-tag v="NEG"/>
17409 </append>
17410 <let>
17411 <clip pos="2" side="tl" part="whole"/>
17412 <var n="paraula2"/>
17413 </let>
17414 </when>
17415 </choose>
17416 <out>
17417 <chunk name="adv" case="caseFirstWord">
17418 <tags>
17419 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
17420 <tag><clip pos="2" side="tl" part="neg"/></tag>
17421 </tags>
17422 <lu>
17423 <clip pos="2" side="tl" part="lem"/>
17424 <clip pos="2" side="tl" part="a_adv"/>
17425 </lu>
17426 </chunk>
17427 <b pos="1"/>
17428 </out>
17429 <choose>
17430 <when>
17431 <test>
17432 <or>
17433 <equal caseless="yes">
17434 <clip pos="1" side="sl" part="lem"/>
17435 <lit v="will"/>
17436 </equal>
17437 <equal caseless="yes">
17438 <clip pos="1" side="sl" part="lem"/>
17439 <lit v="shall"/>
17440 </equal>
17441 </or>
17442 </test>
17443 <let>
17444 <clip pos="3" side="tl" part="temps"/>
17445 <lit-tag v="fti"/>
17446 </let>
17447 </when>
17448 <when>
17449 <test>
17450 <equal caseless="yes">
17451 <clip pos="1" side="sl" part="lem"/>
17452 <lit v="would"/>
17453 </equal>
17454 </test>
17455 <let>
17456 <clip pos="3" side="tl" part="temps"/>
17457 <lit-tag v="cni"/>
17458 </let>
17459 </when>
17460 </choose>
17462 <out>
17463 <chunk name="pro_verbcj">
17464 <tags>
17465 <tag><lit-tag v="SV"/></tag>
17466 <tag><var n="tipus_verb"/></tag>
17467 <tag><clip pos="3" side="tl" part="temps"/></tag>
17468 <tag><lit-tag v="PD"/></tag>
17469 <tag><lit-tag v="ND"/></tag>
17470 </tags>
17471 <lu>
17472 <var n="pronom"/>
17473 <clip pos="4" side="tl" part="lem"/>
17474 <clip pos="4" side="tl" part="a_prnpro"/>
17475 <clip pos="4" side="tl" part="pers"/>
17476 <clip pos="4" side="tl" part="gen"/>
17477 <clip pos="4" side="tl" part="nbr"/>
17478 </lu>
17479 <b pos="2"/>
17481 <lu>
17482 <clip pos="3" side="tl" part="lemh"/>
17483 <clip pos="3" side="tl" part="a_verb"/>
17484 <clip pos="3" side="tl" part="temps" link-to="3"/>
17485 <lit-tag v="4"/>
17486 <lit-tag v="5"/>
17487 <clip pos="3" side="tl" part="lemq"/>
17488 </lu>
17489 </chunk>
17490 </out>
17491 <call-macro n="f_bcond">
17492 <with-param pos="3"/>
17493 </call-macro>
17494 <let>
17495 <var n="caseFirstWord"/>
17496 <lit v="aa"/>
17497 </let>
17498 </action>
17499 </rule>
17502 <rule comment="REGLA: AUX ADV VERB (can always think -> sempre puc pensar)">
17503 <pattern>
17504 <pattern-item n="auxmod"/>
17505 <pattern-item n="adv"/>
17506 <pattern-item n="infpres"/>
17507 </pattern>
17508 <action>
17509 <call-macro n="firstWord">
17510 <with-param pos="1"/>
17511 </call-macro>
17512 <call-macro n="tipus_verbs">
17513 <with-param pos="3"/>
17514 </call-macro>
17515 <call-macro n="pron">
17516 <with-param pos="3"/>
17517 </call-macro>
17519 <choose>
17520 <when>
17521 <test>
17522 <in caseless="yes">
17523 <clip pos="2" side="sl" part="lem"/>
17524 <list n="adv_neg"/>
17525 </in>
17526 </test>
17527 <let>
17528 <var n="paraula2"/>
17529 <clip pos="2" side="tl" part="whole"/>
17530 </let>
17531 <append n="paraula2">
17532 <lit-tag v="NEG"/>
17533 </append>
17534 <let>
17535 <clip pos="2" side="tl" part="whole"/>
17536 <var n="paraula2"/>
17537 </let>
17538 </when>
17539 </choose>
17540 <out>
17541 <chunk name="adv" case="caseFirstWord">
17542 <tags>
17543 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
17544 <tag><clip pos="2" side="tl" part="neg"/></tag>
17545 </tags>
17546 <lu>
17547 <clip pos="2" side="tl" part="lem"/>
17548 <clip pos="2" side="tl" part="a_adv"/>
17549 </lu>
17550 </chunk>
17551 <b pos="1"/>
17552 </out>
17553 <choose>
17554 <when>
17555 <test>
17556 <and>
17557 <equal caseless="yes">
17558 <clip pos="1" side="sl" part="lem"/>
17559 <lit v="can"/>
17560 </equal>
17561 <equal>
17562 <clip pos="1" side="sl" part="temps"/>
17563 <lit-tag v="pres"/>
17564 </equal>
17565 </and>
17566 </test>
17567 <let>
17568 <clip pos="1" side="tl" part="temps"/>
17569 <lit-tag v="pri"/>
17570 </let>
17571 </when>
17572 <when>
17573 <test>
17574 <and>
17575 <equal caseless="yes">
17576 <clip pos="1" side="sl" part="lem"/>
17577 <lit v="can"/>
17578 </equal>
17579 <equal>
17580 <clip pos="1" side="sl" part="temps"/>
17581 <lit-tag v="past"/>
17582 </equal>
17583 </and>
17584 </test>
17585 <let>
17586 <clip pos="1" side="tl" part="temps"/>
17587 <lit-tag v="cni"/>
17588 </let>
17589 </when>
17590 <when>
17591 <test>
17592 <or>
17593 <equal caseless="yes">
17594 <clip pos="1" side="sl" part="lem"/>
17595 <lit v="must"/>
17596 </equal>
17597 <equal caseless="yes">
17598 <clip pos="1" side="sl" part="lem"/>
17599 <lit v="may"/>
17600 </equal>
17601 </or>
17602 </test>
17603 <let>
17604 <clip pos="1" side="tl" part="temps"/>
17605 <lit-tag v="pri"/>
17606 </let>
17607 </when>
17608 <when>
17609 <test>
17610 <or>
17611 <equal caseless="yes">
17612 <clip pos="1" side="sl" part="lem"/>
17613 <lit v="should"/>
17614 </equal>
17615 <equal caseless="yes">
17616 <clip pos="1" side="sl" part="lem"/>
17617 <lit v="might"/>
17618 </equal>
17619 </or>
17620 </test>
17621 <let>
17622 <clip pos="1" side="tl" part="temps"/>
17623 <lit-tag v="cni"/>
17624 </let>
17625 </when>
17626 </choose>
17627 <out>
17628 <chunk name="auxmod_inf">
17629 <tags>
17630 <tag><lit-tag v="SV"/></tag>
17631 <tag><var n="tipus_verb"/></tag>
17632 <tag><clip pos="1" side="tl" part="temps"/></tag>
17633 <tag><lit-tag v="PD"/></tag>
17634 <tag><lit-tag v="ND"/></tag>
17635 </tags>
17636 <lu>
17637 <var n="pronom"/>
17638 <clip pos="1" side="tl" part="lemh"/>
17639 <clip pos="1" side="tl" part="a_verb"/>
17640 <clip pos="1" side="tl" part="temps" link-to="3"/>
17641 <lit-tag v="4"/>
17642 <lit-tag v="5"/>
17643 <clip pos="1" side="tl" part="lemq"/>
17644 </lu>
17645 <b pos="2"/>
17646 <lu>
17647 <clip pos="3" side="tl" part="lemh"/>
17648 <clip pos="3" side="tl" part="a_verb"/>
17649 <lit-tag v="inf"/>
17650 <clip pos="3" side="tl" part="lemq"/>
17651 </lu>
17652 </chunk>
17653 </out>
17654 <let>
17655 <var n="caseFirstWord"/>
17656 <lit v="aa"/>
17657 </let>
17658 </action>
17659 </rule>
17661 <rule comment="REGLA: AUX ADV VERB clític (can always think it -> sempre el puc pensar)">
17662 <pattern>
17663 <pattern-item n="auxmod"/>
17664 <pattern-item n="adv"/>
17665 <pattern-item n="infpres"/>
17666 <pattern-item n="probj"/>
17667 </pattern>
17668 <action>
17669 <call-macro n="firstWord">
17670 <with-param pos="1"/>
17671 </call-macro>
17672 <call-macro n="tipus_verbs">
17673 <with-param pos="3"/>
17674 </call-macro>
17675 <call-macro n="pron">
17676 <with-param pos="3"/>
17677 </call-macro>
17679 <choose>
17680 <when>
17681 <test>
17682 <in caseless="yes">
17683 <clip pos="2" side="sl" part="lem"/>
17684 <list n="adv_neg"/>
17685 </in>
17686 </test>
17687 <let>
17688 <var n="paraula2"/>
17689 <clip pos="2" side="tl" part="whole"/>
17690 </let>
17691 <append n="paraula2">
17692 <lit-tag v="NEG"/>
17693 </append>
17694 <let>
17695 <clip pos="2" side="tl" part="whole"/>
17696 <var n="paraula2"/>
17697 </let>
17698 </when>
17699 </choose>
17700 <out>
17701 <chunk name="adv" case="caseFirstWord">
17702 <tags>
17703 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
17704 <tag><clip pos="2" side="tl" part="neg"/></tag>
17705 </tags>
17706 <lu>
17707 <clip pos="2" side="tl" part="lem"/>
17708 <clip pos="2" side="tl" part="a_adv"/>
17709 </lu>
17710 </chunk>
17711 <b pos="1"/>
17712 </out>
17713 <choose>
17714 <when>
17715 <test>
17716 <and>
17717 <equal caseless="yes">
17718 <clip pos="1" side="sl" part="lem"/>
17719 <lit v="can"/>
17720 </equal>
17721 <equal>
17722 <clip pos="1" side="sl" part="temps"/>
17723 <lit-tag v="pres"/>
17724 </equal>
17725 </and>
17726 </test>
17727 <let>
17728 <clip pos="1" side="tl" part="temps"/>
17729 <lit-tag v="pri"/>
17730 </let>
17731 </when>
17732 <when>
17733 <test>
17734 <and>
17735 <equal caseless="yes">
17736 <clip pos="1" side="sl" part="lem"/>
17737 <lit v="can"/>
17738 </equal>
17739 <equal>
17740 <clip pos="1" side="sl" part="temps"/>
17741 <lit-tag v="past"/>
17742 </equal>
17743 </and>
17744 </test>
17745 <let>
17746 <clip pos="1" side="tl" part="temps"/>
17747 <lit-tag v="cni"/>
17748 </let>
17749 </when>
17750 <when>
17751 <test>
17752 <or>
17753 <equal caseless="yes">
17754 <clip pos="1" side="sl" part="lem"/>
17755 <lit v="must"/>
17756 </equal>
17757 <equal caseless="yes">
17758 <clip pos="1" side="sl" part="lem"/>
17759 <lit v="may"/>
17760 </equal>
17761 </or>
17762 </test>
17763 <let>
17764 <clip pos="1" side="tl" part="temps"/>
17765 <lit-tag v="pri"/>
17766 </let>
17767 </when>
17768 <when>
17769 <test>
17770 <or>
17771 <equal caseless="yes">
17772 <clip pos="1" side="sl" part="lem"/>
17773 <lit v="should"/>
17774 </equal>
17775 <equal caseless="yes">
17776 <clip pos="1" side="sl" part="lem"/>
17777 <lit v="might"/>
17778 </equal>
17779 </or>
17780 </test>
17781 <let>
17782 <clip pos="1" side="tl" part="temps"/>
17783 <lit-tag v="cni"/>
17784 </let>
17785 </when>
17786 </choose>
17787 <out>
17788 <chunk name="pro_auxmod_inf">
17789 <tags>
17790 <tag><lit-tag v="SV"/></tag>
17791 <tag><var n="tipus_verb"/></tag>
17792 <tag><clip pos="1" side="tl" part="temps"/></tag>
17793 <tag><lit-tag v="PD"/></tag>
17794 <tag><lit-tag v="ND"/></tag>
17795 </tags>
17796 <lu>
17797 <var n="pronom"/>
17798 <clip pos="4" side="tl" part="lem"/>
17799 <clip pos="4" side="tl" part="a_prnpro"/>
17800 <clip pos="4" side="tl" part="pers"/>
17801 <clip pos="4" side="tl" part="gen"/>
17802 <clip pos="4" side="tl" part="nbr"/>
17803 </lu>
17804 <b pos="2"/>
17805 <lu>
17806 <clip pos="1" side="tl" part="lemh"/>
17807 <clip pos="1" side="tl" part="a_verb"/>
17808 <clip pos="1" side="tl" part="temps" link-to="3"/>
17809 <lit-tag v="4"/>
17810 <lit-tag v="5"/>
17811 <clip pos="1" side="tl" part="lemq"/>
17812 </lu>
17813 <b pos="3"/>
17814 <lu>
17815 <clip pos="3" side="tl" part="lemh"/>
17816 <clip pos="3" side="tl" part="a_verb"/>
17817 <lit-tag v="inf"/>
17818 <clip pos="3" side="tl" part="lemq"/>
17819 </lu>
17820 </chunk>
17821 </out>
17822 <let>
17823 <var n="caseFirstWord"/>
17824 <lit v="aa"/>
17825 </let>
17826 </action>
17827 </rule>
17832 <rule comment="REGLA: AUX ADV VERB (I do not think -> no penso. I do always think -> sempre penso)">
17833 <pattern>
17834 <pattern-item n="do"/>
17835 <pattern-item n="adv"/>
17836 <pattern-item n="infpres"/>
17837 </pattern>
17838 <action>
17839 <call-macro n="firstWord">
17840 <with-param pos="1"/>
17841 </call-macro>
17842 <call-macro n="tipus_verbs">
17843 <with-param pos="3"/>
17844 </call-macro>
17845 <call-macro n="pron">
17846 <with-param pos="3"/>
17847 </call-macro>
17849 <choose>
17850 <when>
17851 <test>
17852 <in caseless="yes">
17853 <clip pos="2" side="sl" part="lem"/>
17854 <list n="adv_neg"/>
17855 </in>
17856 </test>
17857 <let>
17858 <var n="paraula2"/>
17859 <clip pos="2" side="tl" part="whole"/>
17860 </let>
17861 <append n="paraula2">
17862 <lit-tag v="NEG"/>
17863 </append>
17864 <let>
17865 <clip pos="2" side="tl" part="whole"/>
17866 <var n="paraula2"/>
17867 </let>
17868 </when>
17869 </choose>
17870 <out>
17871 <chunk name="adv" case="caseFirstWord">
17872 <tags>
17873 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
17874 <tag><clip pos="2" side="tl" part="neg"/></tag>
17875 </tags>
17876 <lu>
17877 <clip pos="2" side="tl" part="lem"/>
17878 <clip pos="2" side="tl" part="a_adv"/>
17879 </lu>
17880 </chunk>
17881 <b pos="1"/>
17882 </out>
17883 <choose>
17884 <when>
17885 <test>
17886 <equal>
17887 <clip pos="1" side="sl" part="temps"/>
17888 <lit-tag v="pri"/>
17889 </equal>
17890 </test>
17891 <let>
17892 <clip pos="3" side="tl" part="temps"/>
17893 <lit-tag v="pri"/>
17894 </let>
17895 <out>
17896 <chunk name="verbcj">
17897 <tags>
17898 <tag><lit-tag v="SV"/></tag>
17899 <tag><var n="tipus_verb"/></tag>
17900 <tag><clip pos="3" side="tl" part="temps"/></tag>
17901 <tag><clip pos="1" side="sl" part="pers"/></tag>
17902 <tag><clip pos="1" side="sl" part="nbr"/></tag>
17903 </tags>
17904 <lu>
17905 <var n="pronom"/>
17906 <clip pos="3" side="tl" part="lemh"/>
17907 <clip pos="3" side="tl" part="a_verb"/>
17908 <clip pos="3" side="tl" part="temps" link-to="3"/>
17909 <clip pos="1" side="sl" part="pers" link-to="4"/>
17910 <clip pos="1" side="sl" part="nbr" link-to="5"/>
17911 <clip pos="3" side="tl" part="lemq"/>
17912 </lu>
17913 </chunk>
17914 </out>
17915 </when>
17916 <when>
17917 <test>
17918 <or>
17919 <equal>
17920 <clip pos="1" side="sl" part="temps"/>
17921 <lit-tag v="pres"/>
17922 </equal>
17923 <equal>
17924 <clip pos="1" side="sl" part="temps"/>
17925 <lit-tag v="inf"/>
17926 </equal>
17927 </or>
17928 </test>
17929 <let>
17930 <clip pos="3" side="tl" part="temps"/>
17931 <lit-tag v="pri"/>
17932 </let>
17933 <out>
17934 <chunk name="verbcj">
17935 <tags>
17936 <tag><lit-tag v="SV"/></tag>
17937 <tag><var n="tipus_verb"/></tag>
17938 <tag><clip pos="3" side="tl" part="temps"/></tag>
17939 <tag><lit-tag v="PD"/></tag>
17940 <tag><lit-tag v="ND"/></tag>
17941 </tags>
17942 <lu>
17943 <var n="pronom"/>
17944 <clip pos="3" side="tl" part="lemh"/>
17945 <clip pos="3" side="tl" part="a_verb"/>
17946 <clip pos="3" side="tl" part="temps" link-to="3"/>
17947 <lit-tag v="4"/>
17948 <lit-tag v="5"/>
17949 <clip pos="3" side="tl" part="lemq"/>
17950 </lu>
17951 </chunk>
17952 </out>
17953 </when>
17954 <when>
17955 <test>
17956 <equal>
17957 <clip pos="1" side="sl" part="temps"/>
17958 <lit-tag v="past"/>
17959 </equal>
17960 </test>
17962 <out>
17963 <chunk name="verbcj_perif">
17964 <tags>
17965 <tag><lit-tag v="SV"/></tag>
17966 <tag><var n="tipus_verb"/></tag>
17967 <tag><lit-tag v="ifip"/></tag>
17968 <tag><lit-tag v="PD"/></tag>
17969 <tag><lit-tag v="ND"/></tag>
17970 </tags>
17971 <lu>
17972 <var n="pronom"/>
17973 <lit v="anar"/>
17974 <lit-tag v="vaux"/>
17975 <lit-tag v="4"/>
17976 <lit-tag v="5"/>
17977 </lu>
17978 <b/>
17979 <lu>
17980 <clip pos="3" side="tl" part="lemh"/>
17981 <clip pos="3" side="tl" part="a_verb"/>
17982 <lit-tag v="inf"/>
17983 <clip pos="3" side="tl" part="lemq"/>
17984 </lu>
17985 </chunk>
17986 </out>
17987 </when>
17988 </choose>
17989 <call-macro n="f_bcond">
17990 <with-param pos="1"/>
17991 </call-macro>
17992 <let>
17993 <var n="caseFirstWord"/>
17994 <lit v="aa"/>
17995 </let>
17996 </action>
17997 </rule>
17999 <rule comment="REGLA: AUX ADV VERB clític (I do not sing it -> no el canto. I do always sing it-> sempre el canto)">
18000 <pattern>
18001 <pattern-item n="do"/>
18002 <pattern-item n="adv"/>
18003 <pattern-item n="infpres"/>
18004 <pattern-item n="probj"/>
18005 </pattern>
18006 <action>
18007 <call-macro n="firstWord">
18008 <with-param pos="1"/>
18009 </call-macro>
18010 <call-macro n="tipus_verbs">
18011 <with-param pos="3"/>
18012 </call-macro>
18013 <call-macro n="pron">
18014 <with-param pos="3"/>
18015 </call-macro>
18016 <choose>
18017 <when>
18018 <test>
18019 <in caseless="yes">
18020 <clip pos="2" side="sl" part="lem"/>
18021 <list n="adv_neg"/>
18022 </in>
18023 </test>
18024 <let>
18025 <var n="paraula2"/>
18026 <clip pos="2" side="tl" part="whole"/>
18027 </let>
18028 <append n="paraula2">
18029 <lit-tag v="NEG"/>
18030 </append>
18031 <let>
18032 <clip pos="2" side="tl" part="whole"/>
18033 <var n="paraula2"/>
18034 </let>
18035 </when>
18036 </choose>
18037 <out>
18038 <chunk name="adv" case="caseFirstWord">
18039 <tags>
18040 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
18041 <tag><clip pos="2" side="tl" part="neg"/></tag>
18042 </tags>
18043 <lu>
18044 <clip pos="2" side="tl" part="lem"/>
18045 <clip pos="2" side="tl" part="a_adv"/>
18046 </lu>
18047 </chunk>
18048 <b pos="1"/>
18049 </out>
18050 <choose>
18051 <when>
18052 <test>
18053 <equal>
18054 <clip pos="1" side="sl" part="temps"/>
18055 <lit-tag v="pri"/>
18056 </equal>
18057 </test>
18058 <let>
18059 <clip pos="3" side="tl" part="temps"/>
18060 <lit-tag v="pri"/>
18061 </let>
18062 <out>
18063 <chunk name="pro_verbcj">
18064 <tags>
18065 <tag><lit-tag v="SV"/></tag>
18066 <tag><var n="tipus_verb"/></tag>
18067 <tag><clip pos="3" side="tl" part="temps"/></tag>
18068 <tag><clip pos="1" side="sl" part="pers"/></tag>
18069 <tag><clip pos="1" side="sl" part="nbr"/></tag>
18070 </tags>
18071 <lu>
18072 <var n="pronom"/>
18073 <clip pos="4" side="tl" part="lem"/>
18074 <clip pos="4" side="tl" part="a_prnpro"/>
18075 <clip pos="4" side="tl" part="pers"/>
18076 <clip pos="4" side="tl" part="gen"/>
18077 <clip pos="4" side="tl" part="nbr"/>
18078 </lu>
18079 <b pos="2"/>
18080 <lu>
18081 <clip pos="3" side="tl" part="lemh"/>
18082 <clip pos="3" side="tl" part="a_verb"/>
18083 <clip pos="3" side="tl" part="temps" link-to="3"/>
18084 <clip pos="1" side="sl" part="pers" link-to="4"/>
18085 <clip pos="1" side="sl" part="nbr" link-to="5"/>
18086 <clip pos="3" side="tl" part="lemq"/>
18087 </lu>
18088 </chunk>
18089 </out>
18090 </when>
18091 <when>
18092 <test>
18093 <or>
18094 <equal>
18095 <clip pos="1" side="sl" part="temps"/>
18096 <lit-tag v="pres"/>
18097 </equal>
18098 <equal>
18099 <clip pos="1" side="sl" part="temps"/>
18100 <lit-tag v="inf"/>
18101 </equal>
18102 </or>
18103 </test>
18104 <let>
18105 <clip pos="3" side="tl" part="temps"/>
18106 <lit-tag v="pri"/>
18107 </let>
18108 <out>
18109 <chunk name="pro_verbcj">
18110 <tags>
18111 <tag><lit-tag v="SV"/></tag>
18112 <tag><var n="tipus_verb"/></tag>
18113 <tag><clip pos="3" side="tl" part="temps"/></tag>
18114 <tag><lit-tag v="PD"/></tag>
18115 <tag><lit-tag v="ND"/></tag>
18116 </tags>
18117 <lu>
18118 <var n="pronom"/>
18119 <clip pos="4" side="tl" part="lem"/>
18120 <clip pos="4" side="tl" part="a_prnpro"/>
18121 <clip pos="4" side="tl" part="pers"/>
18122 <clip pos="4" side="tl" part="gen"/>
18123 <clip pos="4" side="tl" part="nbr"/>
18124 </lu>
18125 <b pos="2"/>
18126 <lu>
18127 <clip pos="3" side="tl" part="lemh"/>
18128 <clip pos="3" side="tl" part="a_verb"/>
18129 <clip pos="3" side="tl" part="temps" link-to="3"/>
18130 <lit-tag v="4"/>
18131 <lit-tag v="5"/>
18132 <clip pos="3" side="tl" part="lemq"/>
18133 </lu>
18134 </chunk>
18135 </out>
18136 </when>
18137 <when>
18138 <test>
18139 <equal>
18140 <clip pos="1" side="sl" part="temps"/>
18141 <lit-tag v="past"/>
18142 </equal>
18143 </test>
18145 <out>
18146 <chunk name="pro_verbcj_perif">
18147 <tags>
18148 <tag><lit-tag v="SV"/></tag>
18149 <tag><var n="tipus_verb"/></tag>
18150 <tag><lit-tag v="ifip"/></tag>
18151 <tag><lit-tag v="PD"/></tag>
18152 <tag><lit-tag v="ND"/></tag>
18153 </tags>
18154 <lu>
18155 <var n="pronom"/>
18156 <clip pos="4" side="tl" part="lem"/>
18157 <clip pos="4" side="tl" part="a_prnpro"/>
18158 <clip pos="4" side="tl" part="pers"/>
18159 <clip pos="4" side="tl" part="gen"/>
18160 <clip pos="4" side="tl" part="nbr"/>
18161 </lu>
18162 <b pos="2"/>
18163 <lu>
18164 <lit v="anar"/>
18165 <lit-tag v="vaux"/>
18166 <lit-tag v="4"/>
18167 <lit-tag v="5"/>
18168 </lu>
18169 <b/>
18170 <lu>
18171 <clip pos="3" side="tl" part="lemh"/>
18172 <clip pos="3" side="tl" part="a_verb"/>
18173 <lit-tag v="inf"/>
18174 <clip pos="3" side="tl" part="lemq"/>
18175 </lu>
18176 </chunk>
18177 </out>
18178 </when>
18179 </choose>
18180 <call-macro n="f_bcond">
18181 <with-param pos="3"/>
18182 </call-macro>
18183 <let>
18184 <var n="caseFirstWord"/>
18185 <lit v="aa"/>
18186 </let>
18187 </action>
18188 </rule>
18190 <rule comment="AUX + ADV + MODAL conjugable + VERB (He will sometimes have to explain - Alguna vegada haurà d'explicar. He will not have to explain -> No haurà d'explicar. He does not have to explain - No ha d'explicar)">
18191 <pattern>
18192 <pattern-item n="auxnocan"/>
18193 <pattern-item n="adv"/>
18194 <pattern-item n="modinf"/>
18195 <pattern-item n="infpres"/>
18196 </pattern>
18197 <action>
18198 <call-macro n="firstWord">
18199 <with-param pos="1"/>
18200 </call-macro>
18201 <call-macro n="tipus_verbs">
18202 <with-param pos="4"/>
18203 </call-macro>
18204 <call-macro n="pron">
18205 <with-param pos="4"/>
18206 </call-macro>
18208 <choose>
18209 <when>
18210 <test>
18211 <in caseless="yes">
18212 <clip pos="2" side="sl" part="lem"/>
18213 <list n="adv_neg"/>
18214 </in>
18215 </test>
18216 <let>
18217 <var n="paraula2"/>
18218 <clip pos="2" side="tl" part="whole"/>
18219 </let>
18220 <append n="paraula2">
18221 <lit-tag v="NEG"/>
18222 </append>
18223 <let>
18224 <clip pos="2" side="tl" part="whole"/>
18225 <var n="paraula2"/>
18226 </let>
18227 </when>
18228 </choose>
18229 <out>
18230 <chunk name="adv" case="caseFirstWord">
18231 <tags>
18232 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
18233 <tag><clip pos="2" side="tl" part="neg"/></tag>
18234 </tags>
18235 <lu>
18236 <clip pos="2" side="tl" part="lem"/>
18237 <clip pos="2" side="tl" part="a_adv"/>
18238 </lu>
18239 </chunk>
18240 <b pos="1"/>
18241 </out>
18243 <choose><!--A partir d'aquí és el tractament del verb com en la regla anterior de 'auxnocan + modinf + infpres' -->
18244 <when>
18245 <test>
18246 <or>
18247 <equal caseless="yes">
18248 <clip pos="1" side="sl" part="lem"/>
18249 <lit v="will"/>
18250 </equal>
18251 <equal caseless="yes">
18252 <clip pos="1" side="sl" part="lem"/>
18253 <lit v="shall"/>
18254 </equal>
18255 <equal caseless="yes">
18256 <clip pos="1" side="sl" part="lem"/>
18257 <lit v="would"/>
18258 </equal>
18259 </or>
18260 </test>
18261 <choose>
18262 <when>
18263 <test>
18264 <or>
18265 <equal caseless="yes">
18266 <clip pos="1" side="sl" part="lem"/>
18267 <lit v="will"/>
18268 </equal>
18269 <equal caseless="yes">
18270 <clip pos="1" side="sl" part="lem"/>
18271 <lit v="shall"/>
18272 </equal>
18273 </or>
18274 </test>
18275 <let>
18276 <clip pos="3" side="tl" part="temps"/>
18277 <lit-tag v="fti"/>
18278 </let>
18279 </when>
18280 <when>
18281 <test>
18282 <equal caseless="yes">
18283 <clip pos="1" side="sl" part="lem"/>
18284 <lit v="would"/>
18285 </equal>
18286 </test>
18287 <let>
18288 <clip pos="3" side="tl" part="temps"/>
18289 <lit-tag v="cni"/>
18290 </let>
18291 </when>
18292 </choose>
18293 <out>
18294 <chunk name="mod_inf">
18295 <tags>
18296 <tag><lit-tag v="SV"/></tag>
18297 <tag><var n="tipus_verb"/></tag>
18298 <tag><clip pos="3" side="tl" part="temps"/></tag>
18299 <tag><lit-tag v="PD"/></tag>
18300 <tag><lit-tag v="ND"/></tag>
18301 </tags>
18302 <lu>
18303 <var n="pronom"/>
18304 <clip pos="3" side="tl" part="lemh"/>
18305 <clip pos="3" side="tl" part="a_verb"/>
18306 <clip pos="3" side="tl" part="temps" link-to="3"/>
18307 <lit-tag v="4"/>
18308 <lit-tag v="5"/>
18309 <clip pos="3" side="tl" part="lemq"/>
18310 </lu>
18311 <b pos="2"/>
18312 <lu>
18313 <clip pos="4" side="tl" part="lemh"/>
18314 <clip pos="4" side="tl" part="a_verb"/>
18315 <lit-tag v="inf"/>
18316 <clip pos="4" side="tl" part="lemq"/>
18317 </lu>
18318 </chunk>
18319 </out>
18320 <call-macro n="f_bcond">
18321 <with-param pos="3"/>
18322 </call-macro>
18323 </when>
18324 <when>
18325 <test>
18326 <or>
18327 <equal caseless="yes">
18328 <clip pos="1" side="sl" part="lem"/>
18329 <lit v="may"/>
18330 </equal>
18331 <equal caseless="yes">
18332 <clip pos="1" side="sl" part="lem"/>
18333 <lit v="might"/>
18334 </equal>
18335 </or>
18336 </test>
18337 <choose>
18338 <when>
18339 <test>
18340 <equal caseless="yes">
18341 <clip pos="1" side="sl" part="lem"/>
18342 <lit v="may"/>
18343 </equal>
18344 </test>
18345 <let>
18346 <clip pos="1" side="tl" part="temps"/>
18347 <lit-tag v="pri"/>
18348 </let>
18349 </when>
18350 <when>
18351 <test>
18352 <equal caseless="yes">
18353 <clip pos="1" side="sl" part="lem"/>
18354 <lit v="might"/>
18355 </equal>
18356 </test>
18357 <let>
18358 <clip pos="1" side="tl" part="temps"/>
18359 <lit-tag v="cni"/>
18360 </let>
18361 </when>
18362 </choose>
18363 <out>
18364 <chunk name="auxmod_mod_inf">
18365 <tags>
18366 <tag><lit-tag v="SV"/></tag>
18367 <tag><var n="tipus_verb"/></tag>
18368 <tag><clip pos="1" side="tl" part="temps"/></tag>
18369 <tag><lit-tag v="PD"/></tag>
18370 <tag><lit-tag v="ND"/></tag>
18371 </tags>
18372 <lu>
18373 <var n="pronom"/>
18374 <clip pos="1" side="tl" part="lemh"/>
18375 <clip pos="1" side="tl" part="a_verb"/>
18376 <clip pos="1" side="tl" part="temps" link-to="3"/>
18377 <lit-tag v="4"/>
18378 <lit-tag v="5"/>
18379 <clip pos="1" side="tl" part="lemq"/>
18380 </lu>
18381 <b pos="2"/>
18382 <lu>
18383 <clip pos="3" side="tl" part="lemh"/>
18384 <clip pos="3" side="tl" part="a_verb"/>
18385 <lit-tag v="inf"/>
18386 <clip pos="3" side="tl" part="lemq"/>
18387 </lu>
18388 <b pos="3"/>
18389 <lu>
18390 <clip pos="4" side="tl" part="lemh"/>
18391 <clip pos="4" side="tl" part="a_verb"/>
18392 <lit-tag v="inf"/>
18393 <clip pos="4" side="tl" part="lemq"/>
18394 </lu>
18395 </chunk>
18396 </out>
18397 </when>
18398 <when>
18399 <test>
18400 <equal caseless="yes">
18401 <clip pos="1" side="sl" part="lem"/>
18402 <lit v="do"/>
18403 </equal>
18404 </test>
18405 <choose>
18406 <when>
18407 <test>
18408 <or>
18409 <equal>
18410 <clip pos="1" side="sl" part="temps"/>
18411 <lit-tag v="pres"/>
18412 </equal>
18413 <equal>
18414 <clip pos="1" side="sl" part="temps"/>
18415 <lit-tag v="pri"/>
18416 </equal>
18417 </or>
18418 </test>
18419 <choose>
18420 <when>
18421 <test>
18422 <equal>
18423 <clip pos="1" side="sl" part="temps"/>
18424 <lit-tag v="pres"/>
18425 </equal>
18426 </test>
18428 <let>
18429 <clip pos="3" side="tl" part="temps"/>
18430 <lit-tag v="pri"/>
18431 </let>
18432 <let>
18433 <var n="paraula2"/>
18434 <clip pos="3" side="tl" part="lemh"/>
18435 </let>
18436 <append n="paraula2">
18437 <clip pos="3" side="tl" part="tags"/>
18438 <lit-tag v="PD"/>
18439 <lit-tag v="ND"/>
18440 <clip pos="3" side="tl" part="lemq"/>
18441 </append>
18442 <let>
18443 <clip pos="3" side="tl" part="whole"/>
18444 <var n="paraula2"/>
18445 </let>
18446 </when>
18447 <when>
18448 <test>
18449 <equal>
18450 <clip pos="1" side="sl" part="temps"/>
18451 <lit-tag v="pri"/>
18452 </equal>
18453 </test>
18454 <let>
18455 <clip pos="3" side="tl" part="temps"/>
18456 <lit-tag v="pri"/>
18457 </let>
18458 <let>
18459 <var n="paraula2"/>
18460 <clip pos="3" side="tl" part="lemh"/>
18461 </let>
18462 <append n="paraula2">
18463 <clip pos="3" side="tl" part="tags"/>
18464 <clip pos="1" side="sl" part="pers"/>
18465 <clip pos="1" side="sl" part="nbr"/>
18466 <clip pos="3" side="tl" part="lemq"/>
18467 </append>
18468 <let>
18469 <clip pos="3" side="tl" part="whole"/>
18470 <var n="paraula2"/>
18471 </let>
18472 </when>
18473 </choose>
18474 <out>
18475 <chunk name="mod_inf">
18476 <tags>
18477 <tag><lit-tag v="SV"/></tag>
18478 <tag><var n="tipus_verb"/></tag>
18479 <tag><clip pos="3" side="tl" part="temps"/></tag>
18480 <tag><clip pos="3" side="tl" part="pers"/></tag>
18481 <tag><clip pos="3" side="tl" part="nbr"/></tag>
18482 </tags>
18483 <lu>
18484 <var n="pronom"/>
18485 <clip pos="3" side="tl" part="lemh"/>
18486 <clip pos="3" side="tl" part="a_verb"/>
18487 <clip pos="3" side="tl" part="temps" link-to="3"/>
18488 <clip pos="3" side="tl" part="pers" link-to="4"/>
18489 <clip pos="3" side="tl" part="nbr" link-to="5"/>
18490 <clip pos="3" side="tl" part="lemq"/>
18491 </lu>
18492 <b pos="2"/>
18493 <lu>
18494 <clip pos="4" side="tl" part="lemh"/>
18495 <clip pos="4" side="tl" part="a_verb"/>
18496 <lit-tag v="inf"/>
18497 <clip pos="4" side="tl" part="lemq"/>
18498 </lu>
18499 </chunk>
18500 </out>
18501 <call-macro n="f_bcond">
18502 <with-param pos="3"/>
18503 </call-macro>
18504 </when>
18505 <when>
18506 <test>
18507 <equal>
18508 <clip pos="1" side="sl" part="temps"/>
18509 <lit-tag v="past"/>
18510 </equal>
18511 </test>
18512 <out>
18513 <chunk name="mod_inf_perif">
18514 <tags>
18515 <tag><lit-tag v="SV"/></tag>
18516 <tag><var n="tipus_verb"/></tag>
18517 <tag><lit-tag v="ifip"/></tag>
18518 <tag><lit-tag v="PD"/></tag>
18519 <tag><lit-tag v="ND"/></tag>
18520 </tags>
18521 <lu>
18522 <var n="pronom"/>
18523 <lit v="anar"/>
18524 <lit-tag v="vaux"/>
18525 <lit-tag v="4"/>
18526 <lit-tag v="5"/>
18527 </lu>
18528 <b pos="2"/>
18529 <lu>
18530 <clip pos="3" side="tl" part="lemh"/>
18531 <clip pos="3" side="tl" part="a_verb"/>
18532 <lit-tag v="inf"/>
18533 <clip pos="3" side="tl" part="lemq"/>
18534 </lu>
18535 <b pos="3"/>
18536 <lu>
18537 <clip pos="4" side="tl" part="lemh"/>
18538 <clip pos="4" side="tl" part="a_verb"/>
18539 <lit-tag v="inf"/>
18540 <clip pos="4" side="tl" part="lemq"/>
18541 </lu>
18542 </chunk>
18543 </out>
18544 </when>
18545 </choose>
18546 </when>
18547 </choose>
18548 <let>
18549 <var n="caseFirstWord"/>
18550 <lit v="aa"/>
18551 </let>
18552 </action>
18553 </rule>
18559 <rule comment="AUX + ADV + MODAL conjugable + VERB + clític (He will sometimes have to explain it- Alguna vegada l'haurà d'explicar. He will not have to explain it-> No l'haurà d'explicar. He does not have to explain it- No l'ha d'explicar)">
18560 <pattern>
18561 <pattern-item n="auxnocan"/>
18562 <pattern-item n="adv"/>
18563 <pattern-item n="modinf"/>
18564 <pattern-item n="infpres"/>
18565 <pattern-item n="probj"/>
18566 </pattern>
18567 <action>
18568 <call-macro n="firstWord">
18569 <with-param pos="1"/>
18570 </call-macro>
18571 <call-macro n="tipus_verbs">
18572 <with-param pos="4"/>
18573 </call-macro>
18574 <call-macro n="pron">
18575 <with-param pos="4"/>
18576 </call-macro>
18578 <choose>
18579 <when>
18580 <test>
18581 <in caseless="yes">
18582 <clip pos="2" side="sl" part="lem"/>
18583 <list n="adv_neg"/>
18584 </in>
18585 </test>
18586 <let>
18587 <var n="paraula2"/>
18588 <clip pos="2" side="tl" part="whole"/>
18589 </let>
18590 <append n="paraula2">
18591 <lit-tag v="NEG"/>
18592 </append>
18593 <let>
18594 <clip pos="2" side="tl" part="whole"/>
18595 <var n="paraula2"/>
18596 </let>
18597 </when>
18598 </choose>
18599 <out>
18600 <chunk name="adv" case="caseFirstWord">
18601 <tags>
18602 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
18603 <tag><clip pos="2" side="tl" part="neg"/></tag>
18604 </tags>
18605 <lu>
18606 <clip pos="2" side="tl" part="lem"/>
18607 <clip pos="2" side="tl" part="a_adv"/>
18608 </lu>
18609 </chunk>
18610 <b pos="1"/>
18611 </out>
18613 <choose><!--A partir d'aquí és el tractament del verb com en la regla anterior de 'auxnocan + modinf + infpres' -->
18614 <when>
18615 <test>
18616 <or>
18617 <equal caseless="yes">
18618 <clip pos="1" side="sl" part="lem"/>
18619 <lit v="will"/>
18620 </equal>
18621 <equal caseless="yes">
18622 <clip pos="1" side="sl" part="lem"/>
18623 <lit v="shall"/>
18624 </equal>
18625 <equal caseless="yes">
18626 <clip pos="1" side="sl" part="lem"/>
18627 <lit v="would"/>
18628 </equal>
18629 </or>
18630 </test>
18631 <choose>
18632 <when>
18633 <test>
18634 <or>
18635 <equal caseless="yes">
18636 <clip pos="1" side="sl" part="lem"/>
18637 <lit v="will"/>
18638 </equal>
18639 <equal caseless="yes">
18640 <clip pos="1" side="sl" part="lem"/>
18641 <lit v="shall"/>
18642 </equal>
18643 </or>
18644 </test>
18645 <let>
18646 <clip pos="3" side="tl" part="temps"/>
18647 <lit-tag v="fti"/>
18648 </let>
18649 </when>
18650 <when>
18651 <test>
18652 <equal caseless="yes">
18653 <clip pos="1" side="sl" part="lem"/>
18654 <lit v="would"/>
18655 </equal>
18656 </test>
18657 <let>
18658 <clip pos="3" side="tl" part="temps"/>
18659 <lit-tag v="cni"/>
18660 </let>
18661 </when>
18662 </choose>
18663 <out>
18664 <chunk name="pro_mod_inf">
18665 <tags>
18666 <tag><lit-tag v="SV"/></tag>
18667 <tag><var n="tipus_verb"/></tag>
18668 <tag><clip pos="3" side="tl" part="temps"/></tag>
18669 <tag><lit-tag v="PD"/></tag>
18670 <tag><lit-tag v="ND"/></tag>
18671 </tags>
18672 <lu>
18673 <var n="pronom"/>
18674 <clip pos="5" side="tl" part="lem"/>
18675 <clip pos="5" side="tl" part="a_prnpro"/>
18676 <clip pos="5" side="tl" part="pers"/>
18677 <clip pos="5" side="tl" part="gen"/>
18678 <clip pos="5" side="tl" part="nbr"/>
18679 </lu>
18680 <b pos="2"/>
18681 <lu>
18682 <clip pos="3" side="tl" part="lemh"/>
18683 <clip pos="3" side="tl" part="a_verb"/>
18684 <clip pos="3" side="tl" part="temps" link-to="3"/>
18685 <lit-tag v="4"/>
18686 <lit-tag v="5"/>
18687 <clip pos="3" side="tl" part="lemq"/>
18688 </lu>
18689 <b pos="3"/>
18690 <lu>
18691 <clip pos="4" side="tl" part="lemh"/>
18692 <clip pos="4" side="tl" part="a_verb"/>
18693 <lit-tag v="inf"/>
18694 <clip pos="4" side="tl" part="lemq"/>
18695 </lu>
18696 </chunk>
18697 </out>
18698 <call-macro n="f_bcond">
18699 <with-param pos="4"/>
18700 </call-macro>
18701 </when>
18702 <when>
18703 <test>
18704 <or>
18705 <equal caseless="yes">
18706 <clip pos="1" side="sl" part="lem"/>
18707 <lit v="may"/>
18708 </equal>
18709 <equal caseless="yes">
18710 <clip pos="1" side="sl" part="lem"/>
18711 <lit v="might"/>
18712 </equal>
18713 </or>
18714 </test>
18715 <choose>
18716 <when>
18717 <test>
18718 <equal caseless="yes">
18719 <clip pos="1" side="sl" part="lem"/>
18720 <lit v="may"/>
18721 </equal>
18722 </test>
18723 <let>
18724 <clip pos="1" side="tl" part="temps"/>
18725 <lit-tag v="pri"/>
18726 </let>
18727 </when>
18728 <when>
18729 <test>
18730 <equal caseless="yes">
18731 <clip pos="1" side="sl" part="lem"/>
18732 <lit v="might"/>
18733 </equal>
18734 </test>
18735 <let>
18736 <clip pos="1" side="tl" part="temps"/>
18737 <lit-tag v="cni"/>
18738 </let>
18739 </when>
18740 </choose>
18741 <out>
18742 <chunk name="pro_auxmod_mod_inf">
18743 <tags>
18744 <tag><lit-tag v="SV"/></tag>
18745 <tag><var n="tipus_verb"/></tag>
18746 <tag><clip pos="1" side="tl" part="temps"/></tag>
18747 <tag><lit-tag v="PD"/></tag>
18748 <tag><lit-tag v="ND"/></tag>
18749 </tags>
18750 <lu>
18751 <var n="pronom"/>
18752 <clip pos="5" side="tl" part="lem"/>
18753 <clip pos="5" side="tl" part="a_prnpro"/>
18754 <clip pos="5" side="tl" part="pers"/>
18755 <clip pos="5" side="tl" part="gen"/>
18756 <clip pos="5" side="tl" part="nbr"/>
18757 </lu>
18758 <b pos="2"/>
18759 <lu>
18760 <clip pos="1" side="tl" part="lemh"/>
18761 <clip pos="1" side="tl" part="a_verb"/>
18762 <clip pos="1" side="tl" part="temps" link-to="3"/>
18763 <lit-tag v="4"/>
18764 <lit-tag v="5"/>
18765 <clip pos="1" side="tl" part="lemq"/>
18766 </lu>
18767 <b pos="3"/>
18768 <lu>
18769 <clip pos="3" side="tl" part="lemh"/>
18770 <clip pos="3" side="tl" part="a_verb"/>
18771 <lit-tag v="inf"/>
18772 <clip pos="3" side="tl" part="lemq"/>
18773 </lu>
18774 <b pos="4"/>
18775 <lu>
18776 <clip pos="4" side="tl" part="lemh"/>
18777 <clip pos="4" side="tl" part="a_verb"/>
18778 <lit-tag v="inf"/>
18779 <clip pos="4" side="tl" part="lemq"/>
18780 </lu>
18781 </chunk>
18782 </out>
18783 </when>
18784 <when>
18785 <test>
18786 <equal caseless="yes">
18787 <clip pos="1" side="sl" part="lem"/>
18788 <lit v="do"/>
18789 </equal>
18790 </test>
18791 <choose>
18792 <when>
18793 <test>
18794 <or>
18795 <equal>
18796 <clip pos="1" side="sl" part="temps"/>
18797 <lit-tag v="pres"/>
18798 </equal>
18799 <equal>
18800 <clip pos="1" side="sl" part="temps"/>
18801 <lit-tag v="pri"/>
18802 </equal>
18803 </or>
18804 </test>
18805 <choose>
18806 <when>
18807 <test>
18808 <equal>
18809 <clip pos="1" side="sl" part="temps"/>
18810 <lit-tag v="pres"/>
18811 </equal>
18812 </test>
18814 <let>
18815 <clip pos="3" side="tl" part="temps"/>
18816 <lit-tag v="pri"/>
18817 </let>
18818 <let>
18819 <var n="paraula2"/>
18820 <clip pos="3" side="tl" part="lemh"/>
18821 </let>
18822 <append n="paraula2">
18823 <clip pos="3" side="tl" part="tags"/>
18824 <lit-tag v="PD"/>
18825 <lit-tag v="ND"/>
18826 <clip pos="3" side="tl" part="lemq"/>
18827 </append>
18828 <let>
18829 <clip pos="3" side="tl" part="whole"/>
18830 <var n="paraula2"/>
18831 </let>
18832 </when>
18833 <when>
18834 <test>
18835 <equal>
18836 <clip pos="1" side="sl" part="temps"/>
18837 <lit-tag v="pri"/>
18838 </equal>
18839 </test>
18840 <let>
18841 <clip pos="3" side="tl" part="temps"/>
18842 <lit-tag v="pri"/>
18843 </let>
18844 <let>
18845 <var n="paraula2"/>
18846 <clip pos="3" side="tl" part="lemh"/>
18847 </let>
18848 <append n="paraula2">
18849 <clip pos="3" side="tl" part="tags"/>
18850 <clip pos="1" side="sl" part="pers"/>
18851 <clip pos="1" side="sl" part="nbr"/>
18852 <clip pos="3" side="tl" part="lemq"/>
18853 </append>
18854 <let>
18855 <clip pos="3" side="tl" part="whole"/>
18856 <var n="paraula2"/>
18857 </let>
18858 </when>
18859 </choose>
18860 <out>
18861 <chunk name="pro_mod_inf">
18862 <tags>
18863 <tag><lit-tag v="SV"/></tag>
18864 <tag><var n="tipus_verb"/></tag>
18865 <tag><clip pos="3" side="tl" part="temps"/></tag>
18866 <tag><clip pos="3" side="tl" part="pers"/></tag>
18867 <tag><clip pos="3" side="tl" part="nbr"/></tag>
18868 </tags>
18869 <lu>
18870 <var n="pronom"/>
18871 <clip pos="5" side="tl" part="lem"/>
18872 <clip pos="5" side="tl" part="a_prnpro"/>
18873 <clip pos="5" side="tl" part="pers"/>
18874 <clip pos="5" side="tl" part="gen"/>
18875 <clip pos="5" side="tl" part="nbr"/>
18876 </lu>
18877 <b pos="2"/>
18878 <lu>
18879 <clip pos="3" side="tl" part="lemh"/>
18880 <clip pos="3" side="tl" part="a_verb"/>
18881 <clip pos="3" side="tl" part="temps" link-to="3"/>
18882 <clip pos="3" side="tl" part="pers" link-to="4"/>
18883 <clip pos="3" side="tl" part="nbr" link-to="5"/>
18884 <clip pos="3" side="tl" part="lemq"/>
18885 </lu>
18886 <b pos="3"/>
18887 <lu>
18888 <clip pos="4" side="tl" part="lemh"/>
18889 <clip pos="4" side="tl" part="a_verb"/>
18890 <lit-tag v="inf"/>
18891 <clip pos="4" side="tl" part="lemq"/>
18892 </lu>
18893 </chunk>
18894 </out>
18895 <call-macro n="f_bcond">
18896 <with-param pos="4"/>
18897 </call-macro>
18898 </when>
18899 <when>
18900 <test>
18901 <equal>
18902 <clip pos="1" side="sl" part="temps"/>
18903 <lit-tag v="past"/>
18904 </equal>
18905 </test>
18906 <out>
18907 <chunk name="pro_mod_inf_perif">
18908 <tags>
18909 <tag><lit-tag v="SV"/></tag>
18910 <tag><var n="tipus_verb"/></tag>
18911 <tag><lit-tag v="ifip"/></tag>
18912 <tag><lit-tag v="PD"/></tag>
18913 <tag><lit-tag v="ND"/></tag>
18914 </tags>
18915 <lu>
18916 <var n="pronom"/>
18917 <clip pos="5" side="tl" part="lem"/>
18918 <clip pos="5" side="tl" part="a_prnpro"/>
18919 <clip pos="5" side="tl" part="pers"/>
18920 <clip pos="5" side="tl" part="gen"/>
18921 <clip pos="5" side="tl" part="nbr"/>
18922 </lu>
18923 <b pos="2"/>
18924 <lu>
18925 <lit v="anar"/>
18926 <lit-tag v="vaux"/>
18927 <lit-tag v="4"/>
18928 <lit-tag v="5"/>
18929 </lu>
18930 <b pos="3"/>
18931 <lu>
18932 <clip pos="3" side="tl" part="lemh"/>
18933 <clip pos="3" side="tl" part="a_verb"/>
18934 <lit-tag v="inf"/>
18935 <clip pos="3" side="tl" part="lemq"/>
18936 </lu>
18937 <b pos="4"/>
18938 <lu>
18939 <clip pos="4" side="tl" part="lemh"/>
18940 <clip pos="4" side="tl" part="a_verb"/>
18941 <lit-tag v="inf"/>
18942 <clip pos="4" side="tl" part="lemq"/>
18943 </lu>
18944 </chunk>
18945 </out>
18946 </when>
18947 </choose>
18948 </when>
18949 </choose>
18950 <let>
18951 <var n="caseFirstWord"/>
18952 <lit v="aa"/>
18953 </let>
18954 </action>
18955 </rule>
18958 <rule comment="HAVER ADV PARTICIPI (have always/not asked - Sempre/No han preguntat)">
18959 <pattern>
18960 <pattern-item n="have_aux"/>
18961 <pattern-item n="adv"/>
18962 <pattern-item n="pp"/>
18963 </pattern>
18964 <action>
18965 <call-macro n="firstWord">
18966 <with-param pos="1"/>
18967 </call-macro>
18968 <call-macro n="tipus_verbs">
18969 <with-param pos="3"/>
18970 </call-macro>
18971 <call-macro n="pron">
18972 <with-param pos="3"/>
18973 </call-macro>
18974 <choose>
18975 <when>
18976 <test>
18977 <in caseless="yes">
18978 <clip pos="2" side="sl" part="lem"/>
18979 <list n="adv_neg"/>
18980 </in>
18981 </test>
18982 <let>
18983 <var n="paraula2"/>
18984 <clip pos="2" side="tl" part="whole"/>
18985 </let>
18986 <append n="paraula2">
18987 <lit-tag v="NEG"/>
18988 </append>
18989 <let>
18990 <clip pos="2" side="tl" part="whole"/>
18991 <var n="paraula2"/>
18992 </let>
18993 </when>
18994 </choose>
18995 <out>
18996 <chunk name="adv" case="caseFirstWord">
18997 <tags>
18998 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
18999 <tag><clip pos="2" side="tl" part="neg"/></tag>
19000 </tags>
19001 <lu>
19002 <clip pos="2" side="tl" part="lem"/>
19003 <clip pos="2" side="tl" part="a_adv"/>
19004 </lu>
19005 </chunk>
19006 <b pos="1"/>
19007 </out>
19009 <choose>
19010 <when>
19011 <test>
19012 <or>
19013 <equal><!--De moment no sé si el tagger escull bé i els detecto els dos -->
19014 <clip pos="1" side="sl" part="temps"/>
19015 <lit-tag v="inf"/>
19016 </equal>
19017 <equal>
19018 <clip pos="1" side="sl" part="temps"/>
19019 <lit-tag v="pres"/>
19020 </equal>
19021 </or>
19022 </test>
19023 <let>
19024 <clip pos="1" side="tl" part="temps"/>
19025 <lit-tag v="pri"/>
19026 </let>
19027 </when>
19028 <when>
19029 <test>
19030 <equal>
19031 <clip pos="1" side="sl" part="temps"/>
19032 <lit-tag v="past"/>
19033 </equal>
19034 </test>
19035 <let>
19036 <clip pos="1" side="tl" part="temps"/>
19037 <lit-tag v="pii"/>
19038 </let>
19039 </when>
19040 </choose>
19041 <choose>
19042 <when>
19043 <test>
19044 <not>
19045 <and>
19046 <equal>
19047 <clip pos="1" side="tl" part="pers"/>
19048 <lit-tag v="p3"/>
19049 </equal>
19050 <equal>
19051 <clip pos="1" side="tl" part="nbr"/>
19052 <lit-tag v="sg"/>
19053 </equal>
19054 </and>
19055 </not>
19056 </test>
19057 <let>
19058 <var n="paraula1"/>
19059 <clip pos="1" side="tl" part="lemh"/>
19060 </let>
19061 <append n="paraula1">
19062 <clip pos="1" side="tl" part="tags"/>
19063 <lit-tag v="PD"/>
19064 <lit-tag v="ND"/>
19065 <clip pos="1" side="tl" part="lemq"/>
19066 </append>
19067 <let>
19068 <clip pos="1" side="tl" part="whole"/>
19069 <var n="paraula1"/>
19070 </let>
19071 </when>
19072 </choose>
19073 <out>
19074 <chunk name="have_pp" case="caseFirstWord">
19075 <tags>
19076 <tag><lit-tag v="SV"/></tag>
19077 <tag><var n="tipus_verb"/></tag>
19078 <tag><clip pos="1" side="tl" part="temps"/></tag>
19079 <tag><clip pos="1" side="tl" part="pers"/></tag>
19080 <tag><clip pos="1" side="tl" part="nbr"/></tag>
19081 </tags>
19082 <lu>
19083 <var n="pronom"/>
19084 <clip pos="1" side="tl" part="lemh"/>
19085 <clip pos="1" side="tl" part="a_verb"/>
19086 <clip pos="1" side="tl" part="temps" link-to="3"/>
19087 <clip pos="1" side="tl" part="pers" link-to="4"/>
19088 <clip pos="1" side="tl" part="nbr" link-to="5"/>
19089 <clip pos="1" side="tl" part="lemq"/>
19090 </lu>
19091 <b pos="2"/>
19092 <lu>
19093 <clip pos="3" side="tl" part="lemh"/>
19094 <clip pos="3" side="tl" part="a_pp"/>
19095 <lit-tag v="m.sg"/>
19096 <clip pos="3" side="tl" part="lemq"/>
19097 </lu>
19098 </chunk>
19099 </out>
19100 <let>
19101 <var n="caseFirstWord"/>
19102 <lit v="aa"/>
19103 </let>
19104 </action>
19105 </rule>
19107 <rule comment="PRONOM HAVER PARTICIPI clític (have always/not asked it- Sempre/No l'han preguntat)">
19108 <pattern>
19109 <pattern-item n="have_aux"/>
19110 <pattern-item n="adv"/>
19111 <pattern-item n="pp"/>
19112 <pattern-item n="probj"/>
19113 </pattern>
19114 <action>
19115 <call-macro n="firstWord">
19116 <with-param pos="1"/>
19117 </call-macro>
19118 <call-macro n="tipus_verbs">
19119 <with-param pos="3"/>
19120 </call-macro>
19121 <call-macro n="pron">
19122 <with-param pos="3"/>
19123 </call-macro>
19125 <choose>
19126 <when>
19127 <test>
19128 <in caseless="yes">
19129 <clip pos="2" side="sl" part="lem"/>
19130 <list n="adv_neg"/>
19131 </in>
19132 </test>
19133 <let>
19134 <var n="paraula2"/>
19135 <clip pos="2" side="tl" part="whole"/>
19136 </let>
19137 <append n="paraula2">
19138 <lit-tag v="NEG"/>
19139 </append>
19140 <let>
19141 <clip pos="2" side="tl" part="whole"/>
19142 <var n="paraula2"/>
19143 </let>
19144 </when>
19145 </choose>
19146 <out>
19147 <chunk name="adv" case="caseFirstWord">
19148 <tags>
19149 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
19150 <tag><clip pos="2" side="tl" part="neg"/></tag>
19151 </tags>
19152 <lu>
19153 <clip pos="2" side="tl" part="lem"/>
19154 <clip pos="2" side="tl" part="a_adv"/>
19155 </lu>
19156 </chunk>
19157 <b pos="1"/>
19158 </out>
19160 <choose>
19161 <when>
19162 <test>
19163 <or>
19164 <equal><!--De moment no sé si el tagger escull bé i els detecto els dos -->
19165 <clip pos="1" side="sl" part="temps"/>
19166 <lit-tag v="inf"/>
19167 </equal>
19168 <equal>
19169 <clip pos="1" side="sl" part="temps"/>
19170 <lit-tag v="pres"/>
19171 </equal>
19172 </or>
19173 </test>
19174 <let>
19175 <clip pos="1" side="tl" part="temps"/>
19176 <lit-tag v="pri"/>
19177 </let>
19178 </when>
19179 <when>
19180 <test>
19181 <equal>
19182 <clip pos="1" side="sl" part="temps"/>
19183 <lit-tag v="past"/>
19184 </equal>
19185 </test>
19186 <let>
19187 <clip pos="1" side="tl" part="temps"/>
19188 <lit-tag v="pii"/>
19189 </let>
19190 </when>
19191 </choose>
19192 <choose>
19193 <when>
19194 <test>
19195 <not>
19196 <and>
19197 <equal>
19198 <clip pos="1" side="tl" part="pers"/>
19199 <lit-tag v="p3"/>
19200 </equal>
19201 <equal>
19202 <clip pos="1" side="tl" part="nbr"/>
19203 <lit-tag v="sg"/>
19204 </equal>
19205 </and>
19206 </not>
19207 </test>
19208 <let>
19209 <var n="paraula1"/>
19210 <clip pos="1" side="tl" part="lemh"/>
19211 </let>
19212 <append n="paraula1">
19213 <clip pos="1" side="tl" part="tags"/>
19214 <lit-tag v="PD"/>
19215 <lit-tag v="ND"/>
19216 <clip pos="1" side="tl" part="lemq"/>
19217 </append>
19218 <let>
19219 <clip pos="1" side="tl" part="whole"/>
19220 <var n="paraula1"/>
19221 </let>
19222 </when>
19223 </choose>
19224 <out>
19225 <chunk name="pro_have_pp" case="caseFirstWord">
19226 <tags>
19227 <tag><lit-tag v="SV"/></tag>
19228 <tag><var n="tipus_verb"/></tag>
19229 <tag><clip pos="1" side="tl" part="temps"/></tag>
19230 <tag><clip pos="1" side="tl" part="pers"/></tag>
19231 <tag><clip pos="1" side="tl" part="nbr"/></tag>
19232 </tags>
19233 <lu>
19234 <var n="pronom"/>
19235 <clip pos="4" side="tl" part="lem"/>
19236 <clip pos="4" side="tl" part="a_prnpro"/>
19237 <clip pos="4" side="tl" part="pers"/>
19238 <clip pos="4" side="tl" part="gen"/>
19239 <clip pos="4" side="tl" part="nbr"/>
19240 </lu>
19241 <b pos="2"/>
19242 <lu>
19243 <clip pos="1" side="tl" part="lemh"/>
19244 <clip pos="1" side="tl" part="a_verb"/>
19245 <clip pos="1" side="tl" part="temps" link-to="3"/>
19246 <clip pos="1" side="tl" part="pers" link-to="4"/>
19247 <clip pos="1" side="tl" part="nbr" link-to="5"/>
19248 <clip pos="1" side="tl" part="lemq"/>
19249 </lu>
19250 <b pos="3"/>
19251 <lu>
19252 <clip pos="3" side="tl" part="lemh"/>
19253 <clip pos="3" side="tl" part="a_pp"/>
19254 <lit-tag v="m.sg"/>
19255 <clip pos="3" side="tl" part="lemq"/>
19256 </lu>
19257 </chunk>
19258 </out>
19259 <let>
19260 <var n="caseFirstWord"/>
19261 <lit v="aa"/>
19262 </let>
19263 </action>
19264 </rule>
19268 <!--pingui would have-->
19270 <rule comment="AUXtemps HAVER PARTICIPI (would have finished - hauria acabat)">
19271 <pattern>
19272 <pattern-item n="auxtemps"/>
19273 <pattern-item n="have_aux_inf"/>
19274 <pattern-item n="pp"/>
19275 </pattern>
19276 <action>
19277 <call-macro n="firstWord">
19278 <with-param pos="1"/>
19279 </call-macro>
19280 <call-macro n="tipus_verbs">
19281 <with-param pos="3"/>
19282 </call-macro>
19283 <call-macro n="pron">
19284 <with-param pos="3"/>
19285 </call-macro>
19286 <choose>
19287 <when>
19288 <test>
19289 <or>
19290 <equal caseless="yes">
19291 <clip pos="1" side="sl" part="lem"/>
19292 <lit v="will"/>
19293 </equal>
19294 <equal caseless="yes">
19295 <clip pos="1" side="sl" part="lem"/>
19296 <lit v="shall"/>
19297 </equal>
19298 </or>
19299 </test>
19300 <let>
19301 <clip pos="2" side="tl" part="temps"/>
19302 <lit-tag v="fti"/>
19303 </let>
19304 </when>
19305 <when>
19306 <test>
19307 <equal caseless="yes">
19308 <clip pos="1" side="sl" part="lem"/>
19309 <lit v="would"/>
19310 </equal>
19311 </test>
19312 <let>
19313 <clip pos="2" side="tl" part="temps"/>
19314 <lit-tag v="cni"/>
19315 </let>
19316 </when>
19317 </choose>
19318 <call-macro n="f_bcond">
19319 <with-param pos="1"/>
19320 </call-macro>
19321 <out>
19322 <chunk name="have_pp" case="caseFirstWord">
19323 <tags>
19324 <tag><lit-tag v="SV"/></tag>
19325 <tag><var n="tipus_verb"/></tag>
19326 <tag><clip pos="2" side="tl" part="temps"/></tag>
19327 <tag><lit-tag v="PD"/></tag>
19328 <tag><lit-tag v="ND"/></tag>
19329 </tags>
19330 <lu>
19331 <var n="pronom"/>
19332 <clip pos="2" side="tl" part="lemh"/>
19333 <clip pos="2" side="tl" part="a_verb"/>
19334 <clip pos="2" side="tl" part="temps" link-to="3"/>
19335 <lit-tag v="4"/>
19336 <lit-tag v="5"/>
19337 <clip pos="2" side="tl" part="lemq"/>
19338 </lu>
19339 <b pos="2"/>
19340 <lu>
19341 <clip pos="3" side="tl" part="lemh"/>
19342 <clip pos="3" side="tl" part="a_pp"/>
19343 <lit-tag v="m.sg"/>
19344 <clip pos="3" side="tl" part="lemq"/>
19345 </lu>
19346 </chunk>
19347 </out>
19348 <let>
19349 <var n="caseFirstWord"/>
19350 <lit v="aa"/>
19351 </let>
19352 </action>
19353 </rule>
19356 <rule comment="AUXmod HAVER PARTICIPI (might have finished - podria haver acabat)">
19357 <pattern>
19358 <pattern-item n="auxmod"/>
19359 <pattern-item n="have_aux_inf"/>
19360 <pattern-item n="pp"/>
19361 </pattern>
19362 <action>
19363 <call-macro n="firstWord">
19364 <with-param pos="1"/>
19365 </call-macro>
19366 <call-macro n="tipus_verbs">
19367 <with-param pos="3"/>
19368 </call-macro>
19369 <call-macro n="pron">
19370 <with-param pos="3"/>
19371 </call-macro>
19372 <choose>
19373 <when>
19374 <test>
19375 <and>
19376 <equal caseless="yes">
19377 <clip pos="1" side="sl" part="lem"/>
19378 <lit v="can"/>
19379 </equal>
19380 <equal>
19381 <clip pos="1" side="sl" part="temps"/>
19382 <lit-tag v="pres"/>
19383 </equal>
19384 </and>
19385 </test>
19386 <let>
19387 <clip pos="1" side="tl" part="temps"/>
19388 <lit-tag v="pri"/>
19389 </let>
19390 </when>
19391 <when>
19392 <test>
19393 <and>
19394 <equal caseless="yes">
19395 <clip pos="1" side="sl" part="lem"/>
19396 <lit v="can"/>
19397 </equal>
19398 <equal>
19399 <clip pos="1" side="sl" part="temps"/>
19400 <lit-tag v="past"/>
19401 </equal>
19402 </and>
19403 </test>
19404 <let>
19405 <clip pos="1" side="tl" part="temps"/>
19406 <lit-tag v="cni"/>
19407 </let>
19408 </when>
19409 <when>
19410 <test>
19411 <or>
19412 <equal caseless="yes">
19413 <clip pos="1" side="sl" part="lem"/>
19414 <lit v="must"/>
19415 </equal>
19416 <equal caseless="yes">
19417 <clip pos="1" side="sl" part="lem"/>
19418 <lit v="may"/>
19419 </equal>
19420 </or>
19421 </test>
19422 <let>
19423 <clip pos="1" side="tl" part="temps"/>
19424 <lit-tag v="pri"/>
19425 </let>
19426 </when>
19427 <when>
19428 <test>
19429 <or>
19430 <equal caseless="yes">
19431 <clip pos="1" side="sl" part="lem"/>
19432 <lit v="should"/>
19433 </equal>
19434 <equal caseless="yes">
19435 <clip pos="1" side="sl" part="lem"/>
19436 <lit v="might"/>
19437 </equal>
19438 </or>
19439 </test>
19440 <let>
19441 <clip pos="1" side="tl" part="temps"/>
19442 <lit-tag v="cni"/>
19443 </let>
19444 </when>
19445 </choose>
19446 <out>
19447 <chunk name="auxmod_have_pp" case="caseFirstWord">
19448 <tags>
19449 <tag><lit-tag v="SV"/></tag>
19450 <tag><var n="tipus_verb"/></tag>
19451 <tag><clip pos="1" side="tl" part="temps"/></tag>
19452 <tag><lit-tag v="PD"/></tag>
19453 <tag><lit-tag v="ND"/></tag>
19454 </tags>
19455 <lu>
19456 <var n="pronom"/>
19457 <clip pos="1" side="tl" part="lemh"/>
19458 <clip pos="1" side="tl" part="a_verb"/>
19459 <clip pos="1" side="tl" part="temps" link-to="3"/>
19460 <lit-tag v="4"/>
19461 <lit-tag v="5"/>
19462 <clip pos="1" side="tl" part="lemq"/>
19463 </lu>
19464 <b pos="1"/>
19465 <lu>
19466 <clip pos="2" side="tl" part="lemh"/>
19467 <clip pos="2" side="tl" part="a_verb"/>
19468 <lit-tag v="inf"/>
19469 <clip pos="2" side="tl" part="lemq"/>
19470 </lu>
19471 <b pos="2"/>
19472 <lu>
19473 <clip pos="3" side="tl" part="lemh"/>
19474 <clip pos="3" side="tl" part="a_pp"/>
19475 <lit-tag v="m.sg"/>
19476 <clip pos="3" side="tl" part="lemq"/>
19477 </lu>
19478 </chunk>
19479 </out>
19480 <let>
19481 <var n="caseFirstWord"/>
19482 <lit v="aa"/>
19483 </let>
19484 </action>
19485 </rule>
19489 <rule comment="AUXtemps HAVER PARTICIPI clític (would have finished it - l'hauria acabat)">
19490 <pattern>
19491 <pattern-item n="auxtemps"/>
19492 <pattern-item n="have_aux_inf"/>
19493 <pattern-item n="pp"/>
19494 <pattern-item n="probj"/>
19495 </pattern>
19496 <action>
19497 <call-macro n="firstWord">
19498 <with-param pos="1"/>
19499 </call-macro>
19500 <call-macro n="tipus_verbs">
19501 <with-param pos="3"/>
19502 </call-macro>
19503 <call-macro n="pron">
19504 <with-param pos="3"/>
19505 </call-macro>
19506 <choose>
19507 <when>
19508 <test>
19509 <or>
19510 <equal caseless="yes">
19511 <clip pos="1" side="sl" part="lem"/>
19512 <lit v="will"/>
19513 </equal>
19514 <equal caseless="yes">
19515 <clip pos="1" side="sl" part="lem"/>
19516 <lit v="shall"/>
19517 </equal>
19518 </or>
19519 </test>
19520 <let>
19521 <clip pos="2" side="tl" part="temps"/>
19522 <lit-tag v="fti"/>
19523 </let>
19524 </when>
19525 <when>
19526 <test>
19527 <equal caseless="yes">
19528 <clip pos="1" side="sl" part="lem"/>
19529 <lit v="would"/>
19530 </equal>
19531 </test>
19532 <let>
19533 <clip pos="2" side="tl" part="temps"/>
19534 <lit-tag v="cni"/>
19535 </let>
19536 </when>
19537 </choose>
19539 <out>
19540 <chunk name="pro_have_pp" case="caseFirstWord">
19541 <tags>
19542 <tag><lit-tag v="SV"/></tag>
19543 <tag><var n="tipus_verb"/></tag>
19544 <tag><clip pos="2" side="tl" part="temps"/></tag>
19545 <tag><lit-tag v="PD"/></tag>
19546 <tag><lit-tag v="ND"/></tag>
19547 </tags>
19548 <lu>
19549 <var n="pronom"/>
19550 <clip pos="4" side="tl" part="lem"/>
19551 <clip pos="4" side="tl" part="a_prnpro"/>
19552 <clip pos="4" side="tl" part="pers"/>
19553 <clip pos="4" side="tl" part="gen"/>
19554 <clip pos="4" side="tl" part="nbr"/>
19555 </lu>
19556 <b pos="1"/>
19557 <lu>
19558 <clip pos="2" side="tl" part="lemh"/>
19559 <clip pos="2" side="tl" part="a_verb"/>
19560 <clip pos="2" side="tl" part="temps" link-to="3"/>
19561 <lit-tag v="4"/>
19562 <lit-tag v="5"/>
19563 <clip pos="2" side="tl" part="lemq"/>
19564 </lu>
19565 <b pos="2"/>
19566 <lu>
19567 <clip pos="3" side="tl" part="lemh"/>
19568 <clip pos="3" side="tl" part="a_pp"/>
19569 <lit-tag v="m.sg"/>
19570 <clip pos="3" side="tl" part="lemq"/>
19571 </lu>
19572 </chunk>
19573 </out>
19574 <call-macro n="f_bcond">
19575 <with-param pos="3"/>
19576 </call-macro>
19577 <let>
19578 <var n="caseFirstWord"/>
19579 <lit v="aa"/>
19580 </let>
19581 </action>
19582 </rule>
19585 <rule comment="AUXmod HAVER PARTICIPI clític (might have finished it - el podria haver acabat)">
19586 <pattern>
19587 <pattern-item n="auxmod"/>
19588 <pattern-item n="have_aux_inf"/>
19589 <pattern-item n="pp"/>
19590 <pattern-item n="probj"/>
19591 </pattern>
19592 <action>
19593 <call-macro n="firstWord">
19594 <with-param pos="1"/>
19595 </call-macro>
19596 <call-macro n="tipus_verbs">
19597 <with-param pos="3"/>
19598 </call-macro>
19599 <call-macro n="pron">
19600 <with-param pos="3"/>
19601 </call-macro>
19603 <choose>
19604 <when>
19605 <test>
19606 <and>
19607 <equal caseless="yes">
19608 <clip pos="1" side="sl" part="lem"/>
19609 <lit v="can"/>
19610 </equal>
19611 <equal>
19612 <clip pos="1" side="sl" part="temps"/>
19613 <lit-tag v="pres"/>
19614 </equal>
19615 </and>
19616 </test>
19617 <let>
19618 <clip pos="1" side="tl" part="temps"/>
19619 <lit-tag v="pri"/>
19620 </let>
19621 </when>
19622 <when>
19623 <test>
19624 <and>
19625 <equal caseless="yes">
19626 <clip pos="1" side="sl" part="lem"/>
19627 <lit v="can"/>
19628 </equal>
19629 <equal>
19630 <clip pos="1" side="sl" part="temps"/>
19631 <lit-tag v="past"/>
19632 </equal>
19633 </and>
19634 </test>
19635 <let>
19636 <clip pos="1" side="tl" part="temps"/>
19637 <lit-tag v="cni"/>
19638 </let>
19639 </when>
19640 <when>
19641 <test>
19642 <or>
19643 <equal caseless="yes">
19644 <clip pos="1" side="sl" part="lem"/>
19645 <lit v="must"/>
19646 </equal>
19647 <equal caseless="yes">
19648 <clip pos="1" side="sl" part="lem"/>
19649 <lit v="may"/>
19650 </equal>
19651 </or>
19652 </test>
19653 <let>
19654 <clip pos="1" side="tl" part="temps"/>
19655 <lit-tag v="pri"/>
19656 </let>
19657 </when>
19658 <when>
19659 <test>
19660 <or>
19661 <equal caseless="yes">
19662 <clip pos="1" side="sl" part="lem"/>
19663 <lit v="should"/>
19664 </equal>
19665 <equal caseless="yes">
19666 <clip pos="1" side="sl" part="lem"/>
19667 <lit v="might"/>
19668 </equal>
19669 </or>
19670 </test>
19671 <let>
19672 <clip pos="1" side="tl" part="temps"/>
19673 <lit-tag v="cni"/>
19674 </let>
19675 </when>
19676 </choose>
19678 <out>
19679 <chunk name="pro_auxmod_have_pp" case="caseFirstWord">
19680 <tags>
19681 <tag><lit-tag v="SV"/></tag>
19682 <tag><var n="tipus_verb"/></tag>
19683 <tag><clip pos="1" side="tl" part="temps"/></tag>
19684 <tag><lit-tag v="PD"/></tag>
19685 <tag><lit-tag v="ND"/></tag>
19686 </tags>
19687 <lu>
19688 <var n="pronom"/>
19689 <clip pos="4" side="tl" part="lem"/>
19690 <clip pos="4" side="tl" part="a_prnpro"/>
19691 <clip pos="4" side="tl" part="pers"/>
19692 <clip pos="4" side="tl" part="gen"/>
19693 <clip pos="4" side="tl" part="nbr"/>
19694 </lu>
19695 <b pos="1"/>
19696 <lu>
19697 <clip pos="1" side="tl" part="lemh"/>
19698 <clip pos="1" side="tl" part="a_verb"/>
19699 <clip pos="1" side="tl" part="temps" link-to="3"/>
19700 <lit-tag v="4"/>
19701 <lit-tag v="5"/>
19702 <clip pos="1" side="tl" part="lemq"/>
19703 </lu>
19704 <b pos="2"/>
19705 <lu>
19706 <clip pos="2" side="tl" part="lemh"/>
19707 <clip pos="2" side="tl" part="a_verb"/>
19708 <lit-tag v="inf"/>
19709 <clip pos="2" side="tl" part="lemq"/>
19710 </lu>
19711 <b pos="3"/>
19712 <lu>
19713 <clip pos="3" side="tl" part="lemh"/>
19714 <clip pos="3" side="tl" part="a_pp"/>
19715 <lit-tag v="m.sg"/>
19716 <clip pos="3" side="tl" part="lemq"/>
19717 </lu>
19718 </chunk>
19719 </out>
19720 <let>
19721 <var n="caseFirstWord"/>
19722 <lit v="aa"/>
19723 </let>
19724 </action>
19725 </rule>
19728 <rule comment="AUXtemps HAVER PARTICIPIcontrolverb TO INF (would have decided to come)">
19729 <pattern>
19730 <pattern-item n="auxtemps"/>
19731 <pattern-item n="have_aux_inf"/>
19732 <pattern-item n="controlverbpp"/>
19733 <pattern-item n="to"/>
19734 <pattern-item n="inf"/>
19735 </pattern>
19736 <action>
19737 <call-macro n="firstWord">
19738 <with-param pos="1"/>
19739 </call-macro>
19740 <call-macro n="tipus_verbs">
19741 <with-param pos="3"/>
19742 </call-macro>
19743 <call-macro n="tipus_verbs2">
19744 <with-param pos="5"/>
19745 </call-macro>
19746 <call-macro n="pronenc">
19747 <with-param pos="5"/>
19748 </call-macro>
19749 <choose>
19750 <when>
19751 <test>
19752 <equal>
19753 <clip pos="3" side="sl" part="lem"/>
19754 <lit v="try"/>
19755 </equal>
19756 </test>
19757 <let>
19758 <clip pos="3" side="tl" part="lem"/>
19759 <lit v="intentar"/>
19760 </let>
19761 </when>
19762 </choose>
19763 <choose>
19764 <when>
19765 <test>
19766 <or>
19767 <equal caseless="yes">
19768 <clip pos="1" side="sl" part="lem"/>
19769 <lit v="will"/>
19770 </equal>
19771 <equal caseless="yes">
19772 <clip pos="1" side="sl" part="lem"/>
19773 <lit v="shall"/>
19774 </equal>
19775 </or>
19776 </test>
19777 <let>
19778 <clip pos="2" side="tl" part="temps"/>
19779 <lit-tag v="fti"/>
19780 </let>
19781 </when>
19782 <when>
19783 <test>
19784 <equal caseless="yes">
19785 <clip pos="1" side="sl" part="lem"/>
19786 <lit v="would"/>
19787 </equal>
19788 </test>
19789 <let>
19790 <clip pos="2" side="tl" part="temps"/>
19791 <lit-tag v="cni"/>
19792 </let>
19793 </when>
19794 </choose>
19795 <call-macro n="f_bcond">
19796 <with-param pos="1"/>
19797 </call-macro>
19798 <out>
19799 <chunk name="have_pp_inf" case="caseFirstWord">
19800 <tags>
19801 <tag><lit-tag v="SV"/></tag>
19802 <tag><var n="tipus_verb"/></tag>
19803 <tag><clip pos="2" side="tl" part="temps"/></tag>
19804 <tag><lit-tag v="PD"/></tag>
19805 <tag><lit-tag v="ND"/></tag>
19806 </tags>
19807 <lu>
19808 <var n="pronom"/>
19809 <clip pos="2" side="tl" part="lemh"/>
19810 <clip pos="2" side="tl" part="a_verb"/>
19811 <clip pos="2" side="tl" part="temps" link-to="3"/>
19812 <lit-tag v="4"/>
19813 <lit-tag v="5"/>
19814 <clip pos="2" side="tl" part="lemq"/>
19815 </lu>
19816 <b pos="2"/>
19817 <lu>
19818 <clip pos="3" side="tl" part="lemh"/>
19819 <clip pos="3" side="tl" part="a_pp"/>
19820 <lit-tag v="m.sg"/>
19821 <clip pos="3" side="tl" part="lemq"/>
19822 </lu>
19823 <b pos="3"/>
19824 <lu>
19825 <clip pos="5" side="tl" part="lemh"/>
19826 <clip pos="5" side="tl" part="a_verb"/>
19827 <lit-tag v="inf"/>
19828 <var n="pronomenc"/>
19829 <clip pos="5" side="tl" part="lemq"/>
19830 </lu>
19831 </chunk>
19832 </out>
19833 <call-macro n="f_bcond">
19834 <with-param pos="4"/>
19835 </call-macro>
19836 <let>
19837 <var n="caseFirstWord"/>
19838 <lit v="aa"/>
19839 </let>
19840 </action>
19841 </rule>
19843 <rule comment="AUXmod HAVER PARTICIPIcontrolverb TO INF (should have decided to come)">
19844 <pattern>
19845 <pattern-item n="auxmod"/>
19846 <pattern-item n="have_aux_inf"/>
19847 <pattern-item n="controlverbpp"/>
19848 <pattern-item n="to"/>
19849 <pattern-item n="inf"/>
19850 </pattern>
19851 <action>
19852 <call-macro n="firstWord">
19853 <with-param pos="1"/>
19854 </call-macro>
19855 <call-macro n="tipus_verbs">
19856 <with-param pos="3"/>
19857 </call-macro>
19858 <call-macro n="tipus_verbs2">
19859 <with-param pos="5"/>
19860 </call-macro>
19861 <call-macro n="pronenc">
19862 <with-param pos="5"/>
19863 </call-macro>
19864 <choose>
19865 <when>
19866 <test>
19867 <equal>
19868 <clip pos="3" side="sl" part="lem"/>
19869 <lit v="try"/>
19870 </equal>
19871 </test>
19872 <let>
19873 <clip pos="3" side="tl" part="lem"/>
19874 <lit v="intentar"/>
19875 </let>
19876 </when>
19877 </choose>
19878 <choose>
19879 <when>
19880 <test>
19881 <and>
19882 <equal caseless="yes">
19883 <clip pos="1" side="sl" part="lem"/>
19884 <lit v="can"/>
19885 </equal>
19886 <equal>
19887 <clip pos="1" side="sl" part="temps"/>
19888 <lit-tag v="pres"/>
19889 </equal>
19890 </and>
19891 </test>
19892 <let>
19893 <clip pos="1" side="tl" part="temps"/>
19894 <lit-tag v="pri"/>
19895 </let>
19896 </when>
19897 <when>
19898 <test>
19899 <and>
19900 <equal caseless="yes">
19901 <clip pos="1" side="sl" part="lem"/>
19902 <lit v="can"/>
19903 </equal>
19904 <equal>
19905 <clip pos="1" side="sl" part="temps"/>
19906 <lit-tag v="past"/>
19907 </equal>
19908 </and>
19909 </test>
19910 <let>
19911 <clip pos="1" side="tl" part="temps"/>
19912 <lit-tag v="cni"/>
19913 </let>
19914 </when>
19915 <when>
19916 <test>
19917 <or>
19918 <equal caseless="yes">
19919 <clip pos="1" side="sl" part="lem"/>
19920 <lit v="must"/>
19921 </equal>
19922 <equal caseless="yes">
19923 <clip pos="1" side="sl" part="lem"/>
19924 <lit v="may"/>
19925 </equal>
19926 </or>
19927 </test>
19928 <let>
19929 <clip pos="1" side="tl" part="temps"/>
19930 <lit-tag v="pri"/>
19931 </let>
19932 </when>
19933 <when>
19934 <test>
19935 <or>
19936 <equal caseless="yes">
19937 <clip pos="1" side="sl" part="lem"/>
19938 <lit v="should"/>
19939 </equal>
19940 <equal caseless="yes">
19941 <clip pos="1" side="sl" part="lem"/>
19942 <lit v="might"/>
19943 </equal>
19944 </or>
19945 </test>
19946 <let>
19947 <clip pos="1" side="tl" part="temps"/>
19948 <lit-tag v="cni"/>
19949 </let>
19950 </when>
19951 </choose>
19952 <out>
19953 <chunk name="auxmod_have_pp_inf" case="caseFirstWord">
19954 <tags>
19955 <tag><lit-tag v="SV"/></tag>
19956 <tag><var n="tipus_verb"/></tag>
19957 <tag><clip pos="1" side="tl" part="temps"/></tag>
19958 <tag><lit-tag v="PD"/></tag>
19959 <tag><lit-tag v="ND"/></tag>
19960 </tags>
19961 <lu>
19962 <var n="pronom"/>
19963 <clip pos="1" side="tl" part="lemh"/>
19964 <clip pos="1" side="tl" part="a_verb"/>
19965 <clip pos="1" side="tl" part="temps" link-to="3"/>
19966 <lit-tag v="4"/>
19967 <lit-tag v="5"/>
19968 <clip pos="1" side="tl" part="lemq"/>
19969 </lu>
19970 <b pos="1"/>
19971 <lu>
19972 <clip pos="2" side="tl" part="lemh"/>
19973 <clip pos="2" side="tl" part="a_verb"/>
19974 <lit-tag v="inf"/>
19975 <clip pos="2" side="tl" part="lemq"/>
19976 </lu>
19977 <b pos="2"/>
19978 <lu>
19979 <clip pos="3" side="tl" part="lemh"/>
19980 <clip pos="3" side="tl" part="a_pp"/>
19981 <lit-tag v="m.sg"/>
19982 <clip pos="3" side="tl" part="lemq"/>
19983 </lu>
19984 <b pos="3"/>
19985 <lu>
19986 <clip pos="5" side="tl" part="lemh"/>
19987 <clip pos="5" side="tl" part="a_verb"/>
19988 <lit-tag v="inf"/>
19989 <var n="pronomenc"/>
19990 <clip pos="5" side="tl" part="lemq"/>
19991 </lu>
19992 </chunk>
19993 </out>
19994 <call-macro n="f_bcond">
19995 <with-param pos="4"/>
19996 </call-macro>
19997 <let>
19998 <var n="caseFirstWord"/>
19999 <lit v="aa"/>
20000 </let>
20001 </action>
20002 </rule>
20006 <rule comment="AUXtemps ADV HAVER PARTICIPI (would always/not have asked - Sempre/No hauria preguntat)">
20007 <pattern>
20008 <pattern-item n="auxtemps"/>
20009 <pattern-item n="adv"/>
20010 <pattern-item n="have_aux_inf"/>
20011 <pattern-item n="pp"/>
20012 </pattern>
20013 <action>
20014 <call-macro n="firstWord">
20015 <with-param pos="1"/>
20016 </call-macro>
20017 <call-macro n="tipus_verbs">
20018 <with-param pos="4"/>
20019 </call-macro>
20020 <call-macro n="pron">
20021 <with-param pos="4"/>
20022 </call-macro>
20023 <choose>
20024 <when>
20025 <test>
20026 <in caseless="yes">
20027 <clip pos="2" side="sl" part="lem"/>
20028 <list n="adv_neg"/>
20029 </in>
20030 </test>
20031 <let>
20032 <var n="paraula2"/>
20033 <clip pos="2" side="tl" part="whole"/>
20034 </let>
20035 <append n="paraula2">
20036 <lit-tag v="NEG"/>
20037 </append>
20038 <let>
20039 <clip pos="2" side="tl" part="whole"/>
20040 <var n="paraula2"/>
20041 </let>
20042 </when>
20043 </choose>
20044 <out>
20045 <chunk name="adv" case="caseFirstWord">
20046 <tags>
20047 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
20048 <tag><clip pos="2" side="tl" part="neg"/></tag>
20049 </tags>
20050 <lu>
20051 <clip pos="2" side="tl" part="lem"/>
20052 <clip pos="2" side="tl" part="a_adv"/>
20053 </lu>
20054 </chunk>
20055 <b pos="1"/>
20056 </out>
20057 <choose>
20058 <when>
20059 <test>
20060 <or>
20061 <equal caseless="yes">
20062 <clip pos="1" side="sl" part="lem"/>
20063 <lit v="will"/>
20064 </equal>
20065 <equal caseless="yes">
20066 <clip pos="1" side="sl" part="lem"/>
20067 <lit v="shall"/>
20068 </equal>
20069 </or>
20070 </test>
20071 <let>
20072 <clip pos="3" side="tl" part="temps"/>
20073 <lit-tag v="fti"/>
20074 </let>
20075 </when>
20076 <when>
20077 <test>
20078 <equal caseless="yes">
20079 <clip pos="1" side="sl" part="lem"/>
20080 <lit v="would"/>
20081 </equal>
20082 </test>
20083 <let>
20084 <clip pos="3" side="tl" part="temps"/>
20085 <lit-tag v="cni"/>
20086 </let>
20087 </when>
20088 </choose>
20089 <out>
20090 <chunk name="have_pp" case="caseFirstWord">
20091 <tags>
20092 <tag><lit-tag v="SV"/></tag>
20093 <tag><var n="tipus_verb"/></tag>
20094 <tag><clip pos="3" side="tl" part="temps"/></tag>
20095 <tag><lit-tag v="PD"/></tag>
20096 <tag><lit-tag v="ND"/></tag>
20097 </tags>
20098 <lu>
20099 <var n="pronom"/>
20100 <clip pos="3" side="tl" part="lemh"/>
20101 <clip pos="3" side="tl" part="a_verb"/>
20102 <clip pos="3" side="tl" part="temps" link-to="3"/>
20103 <lit-tag v="4"/>
20104 <lit-tag v="5"/>
20105 <clip pos="3" side="tl" part="lemq"/>
20106 </lu>
20107 <b pos="2"/>
20108 <lu>
20109 <clip pos="4" side="tl" part="lemh"/>
20110 <clip pos="4" side="tl" part="a_pp"/>
20111 <lit-tag v="m.sg"/>
20112 <clip pos="4" side="tl" part="lemq"/>
20113 </lu>
20114 </chunk>
20115 </out>
20116 <call-macro n="f_bcond">
20117 <with-param pos="3"/>
20118 </call-macro>
20119 <let>
20120 <var n="caseFirstWord"/>
20121 <lit v="aa"/>
20122 </let>
20123 </action>
20124 </rule>
20127 <rule comment="AUXmod ADV HAVER PARTICIPI (should always/not have asked - Sempre/No hauria d'haver preguntat)">
20128 <pattern>
20129 <pattern-item n="auxmod"/>
20130 <pattern-item n="adv"/>
20131 <pattern-item n="have_aux_inf"/>
20132 <pattern-item n="pp"/>
20133 </pattern>
20134 <action>
20135 <call-macro n="firstWord">
20136 <with-param pos="1"/>
20137 </call-macro>
20138 <call-macro n="tipus_verbs">
20139 <with-param pos="4"/>
20140 </call-macro>
20141 <call-macro n="pron">
20142 <with-param pos="4"/>
20143 </call-macro>
20144 <choose>
20145 <when>
20146 <test>
20147 <in caseless="yes">
20148 <clip pos="2" side="sl" part="lem"/>
20149 <list n="adv_neg"/>
20150 </in>
20151 </test>
20152 <let>
20153 <var n="paraula2"/>
20154 <clip pos="2" side="tl" part="whole"/>
20155 </let>
20156 <append n="paraula2">
20157 <lit-tag v="NEG"/>
20158 </append>
20159 <let>
20160 <clip pos="2" side="tl" part="whole"/>
20161 <var n="paraula2"/>
20162 </let>
20163 </when>
20164 </choose>
20165 <out>
20166 <chunk name="adv" case="caseFirstWord">
20167 <tags>
20168 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
20169 <tag><clip pos="2" side="tl" part="neg"/></tag>
20170 </tags>
20171 <lu>
20172 <clip pos="2" side="tl" part="lem"/>
20173 <clip pos="2" side="tl" part="a_adv"/>
20174 </lu>
20175 </chunk>
20176 <b pos="1"/>
20177 </out>
20179 <choose>
20180 <when>
20181 <test>
20182 <and>
20183 <equal caseless="yes">
20184 <clip pos="1" side="sl" part="lem"/>
20185 <lit v="can"/>
20186 </equal>
20187 <equal>
20188 <clip pos="1" side="sl" part="temps"/>
20189 <lit-tag v="pres"/>
20190 </equal>
20191 </and>
20192 </test>
20193 <let>
20194 <clip pos="1" side="tl" part="temps"/>
20195 <lit-tag v="pri"/>
20196 </let>
20197 </when>
20198 <when>
20199 <test>
20200 <and>
20201 <equal caseless="yes">
20202 <clip pos="1" side="sl" part="lem"/>
20203 <lit v="can"/>
20204 </equal>
20205 <equal>
20206 <clip pos="1" side="sl" part="temps"/>
20207 <lit-tag v="past"/>
20208 </equal>
20209 </and>
20210 </test>
20211 <let>
20212 <clip pos="1" side="tl" part="temps"/>
20213 <lit-tag v="cni"/>
20214 </let>
20215 </when>
20216 <when>
20217 <test>
20218 <or>
20219 <equal caseless="yes">
20220 <clip pos="1" side="sl" part="lem"/>
20221 <lit v="must"/>
20222 </equal>
20223 <equal caseless="yes">
20224 <clip pos="1" side="sl" part="lem"/>
20225 <lit v="may"/>
20226 </equal>
20227 </or>
20228 </test>
20229 <let>
20230 <clip pos="1" side="tl" part="temps"/>
20231 <lit-tag v="pri"/>
20232 </let>
20233 </when>
20234 <when>
20235 <test>
20236 <or>
20237 <equal caseless="yes">
20238 <clip pos="1" side="sl" part="lem"/>
20239 <lit v="should"/>
20240 </equal>
20241 <equal caseless="yes">
20242 <clip pos="1" side="sl" part="lem"/>
20243 <lit v="might"/>
20244 </equal>
20245 </or>
20246 </test>
20247 <let>
20248 <clip pos="1" side="tl" part="temps"/>
20249 <lit-tag v="cni"/>
20250 </let>
20251 </when>
20252 </choose>
20253 <out>
20254 <chunk name="auxmod_have_pp" case="caseFirstWord">
20255 <tags>
20256 <tag><lit-tag v="SV"/></tag>
20257 <tag><var n="tipus_verb"/></tag>
20258 <tag><clip pos="1" side="tl" part="temps"/></tag>
20259 <tag><lit-tag v="PD"/></tag>
20260 <tag><lit-tag v="ND"/></tag>
20261 </tags>
20262 <lu>
20263 <var n="pronom"/>
20264 <clip pos="1" side="tl" part="lemh"/>
20265 <clip pos="1" side="tl" part="a_verb"/>
20266 <clip pos="1" side="tl" part="temps" link-to="3"/>
20267 <lit-tag v="4"/>
20268 <lit-tag v="5"/>
20269 <clip pos="1" side="tl" part="lemq"/>
20270 </lu>
20271 <b pos="2"/>
20272 <lu>
20273 <clip pos="3" side="tl" part="lemh"/>
20274 <clip pos="3" side="tl" part="a_verb"/>
20275 <lit-tag v="inf"/>
20276 <clip pos="3" side="tl" part="lemq"/>
20277 </lu>
20278 <b pos="3"/>
20279 <lu>
20280 <clip pos="4" side="tl" part="lemh"/>
20281 <clip pos="4" side="tl" part="a_pp"/>
20282 <lit-tag v="m.sg"/>
20283 <clip pos="4" side="tl" part="lemq"/>
20284 </lu>
20285 </chunk>
20286 </out>
20287 <let>
20288 <var n="caseFirstWord"/>
20289 <lit v="aa"/>
20290 </let>
20291 </action>
20292 </rule>
20294 <rule comment="AUXtemps PRONOM HAVER PARTICIPI clític (would always/not have asked it- Sempre/No ho hauria preguntat)">
20295 <pattern>
20296 <pattern-item n="auxtemps"/>
20297 <pattern-item n="adv"/>
20298 <pattern-item n="have_aux_inf"/>
20299 <pattern-item n="pp"/>
20300 <pattern-item n="probj"/>
20301 </pattern>
20302 <action>
20303 <call-macro n="firstWord">
20304 <with-param pos="1"/>
20305 </call-macro>
20306 <call-macro n="tipus_verbs">
20307 <with-param pos="4"/>
20308 </call-macro>
20309 <call-macro n="pron">
20310 <with-param pos="4"/>
20311 </call-macro>
20313 <choose>
20314 <when>
20315 <test>
20316 <in caseless="yes">
20317 <clip pos="2" side="sl" part="lem"/>
20318 <list n="adv_neg"/>
20319 </in>
20320 </test>
20321 <let>
20322 <var n="paraula2"/>
20323 <clip pos="2" side="tl" part="whole"/>
20324 </let>
20325 <append n="paraula2">
20326 <lit-tag v="NEG"/>
20327 </append>
20328 <let>
20329 <clip pos="2" side="tl" part="whole"/>
20330 <var n="paraula2"/>
20331 </let>
20332 </when>
20333 </choose>
20334 <out>
20335 <chunk name="adv" case="caseFirstWord">
20336 <tags>
20337 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
20338 <tag><clip pos="2" side="tl" part="neg"/></tag>
20339 </tags>
20340 <lu>
20341 <clip pos="2" side="tl" part="lem"/>
20342 <clip pos="2" side="tl" part="a_adv"/>
20343 </lu>
20344 </chunk>
20345 <b pos="1"/>
20346 </out>
20348 <choose>
20349 <when>
20350 <test>
20351 <or>
20352 <equal caseless="yes">
20353 <clip pos="1" side="sl" part="lem"/>
20354 <lit v="will"/>
20355 </equal>
20356 <equal caseless="yes">
20357 <clip pos="1" side="sl" part="lem"/>
20358 <lit v="shall"/>
20359 </equal>
20360 </or>
20361 </test>
20362 <let>
20363 <clip pos="3" side="tl" part="temps"/>
20364 <lit-tag v="fti"/>
20365 </let>
20366 </when>
20367 <when>
20368 <test>
20369 <equal caseless="yes">
20370 <clip pos="1" side="sl" part="lem"/>
20371 <lit v="would"/>
20372 </equal>
20373 </test>
20374 <let>
20375 <clip pos="3" side="tl" part="temps"/>
20376 <lit-tag v="cni"/>
20377 </let>
20378 </when>
20379 </choose>
20380 <out>
20381 <chunk name="pro_have_pp" case="caseFirstWord">
20382 <tags>
20383 <tag><lit-tag v="SV"/></tag>
20384 <tag><var n="tipus_verb"/></tag>
20385 <tag><clip pos="3" side="tl" part="temps"/></tag>
20386 <tag><lit-tag v="PD"/></tag>
20387 <tag><lit-tag v="ND"/></tag>
20388 </tags>
20389 <lu>
20390 <var n="pronom"/>
20391 <clip pos="5" side="tl" part="lem"/>
20392 <clip pos="5" side="tl" part="a_prnpro"/>
20393 <clip pos="5" side="tl" part="pers"/>
20394 <clip pos="5" side="tl" part="gen"/>
20395 <clip pos="5" side="tl" part="nbr"/>
20396 </lu>
20397 <b pos="2"/>
20398 <lu>
20399 <clip pos="3" side="tl" part="lemh"/>
20400 <clip pos="3" side="tl" part="a_verb"/>
20401 <clip pos="3" side="tl" part="temps" link-to="3"/>
20402 <lit-tag v="4"/>
20403 <lit-tag v="5"/>
20404 <clip pos="3" side="tl" part="lemq"/>
20405 </lu>
20406 <b pos="3"/>
20407 <lu>
20408 <clip pos="4" side="tl" part="lemh"/>
20409 <clip pos="4" side="tl" part="a_pp"/>
20410 <lit-tag v="m.sg"/>
20411 <clip pos="4" side="tl" part="lemq"/>
20412 </lu>
20413 </chunk>
20414 </out>
20415 <call-macro n="f_bcond">
20416 <with-param pos="4"/>
20417 </call-macro>
20418 <let>
20419 <var n="caseFirstWord"/>
20420 <lit v="aa"/>
20421 </let>
20422 </action>
20423 </rule>
20426 <rule comment="AUXmod PRONOM HAVER PARTICIPI clític (should always/not have asked it- Sempre/No ho hauria d'haver preguntat)">
20427 <pattern>
20428 <pattern-item n="auxmod"/>
20429 <pattern-item n="adv"/>
20430 <pattern-item n="have_aux_inf"/>
20431 <pattern-item n="pp"/>
20432 <pattern-item n="probj"/>
20433 </pattern>
20434 <action>
20435 <call-macro n="firstWord">
20436 <with-param pos="1"/>
20437 </call-macro>
20438 <call-macro n="tipus_verbs">
20439 <with-param pos="4"/>
20440 </call-macro>
20441 <call-macro n="pron">
20442 <with-param pos="4"/>
20443 </call-macro>
20445 <choose>
20446 <when>
20447 <test>
20448 <in caseless="yes">
20449 <clip pos="2" side="sl" part="lem"/>
20450 <list n="adv_neg"/>
20451 </in>
20452 </test>
20453 <let>
20454 <var n="paraula2"/>
20455 <clip pos="2" side="tl" part="whole"/>
20456 </let>
20457 <append n="paraula2">
20458 <lit-tag v="NEG"/>
20459 </append>
20460 <let>
20461 <clip pos="2" side="tl" part="whole"/>
20462 <var n="paraula2"/>
20463 </let>
20464 </when>
20465 </choose>
20466 <out>
20467 <chunk name="adv" case="caseFirstWord">
20468 <tags>
20469 <tag><clip pos="2" side="tl" part="a_adv"/></tag>
20470 <tag><clip pos="2" side="tl" part="neg"/></tag>
20471 </tags>
20472 <lu>
20473 <clip pos="2" side="tl" part="lem"/>
20474 <clip pos="2" side="tl" part="a_adv"/>
20475 </lu>
20476 </chunk>
20477 <b pos="1"/>
20478 </out>
20479 <choose>
20480 <when>
20481 <test>
20482 <and>
20483 <equal caseless="yes">
20484 <clip pos="1" side="sl" part="lem"/>
20485 <lit v="can"/>
20486 </equal>
20487 <equal>
20488 <clip pos="1" side="sl" part="temps"/>
20489 <lit-tag v="pres"/>
20490 </equal>
20491 </and>
20492 </test>
20493 <let>
20494 <clip pos="1" side="tl" part="temps"/>
20495 <lit-tag v="pri"/>
20496 </let>
20497 </when>
20498 <when>
20499 <test>
20500 <and>
20501 <equal caseless="yes">
20502 <clip pos="1" side="sl" part="lem"/>
20503 <lit v="can"/>
20504 </equal>
20505 <equal>
20506 <clip pos="1" side="sl" part="temps"/>
20507 <lit-tag v="past"/>
20508 </equal>
20509 </and>
20510 </test>
20511 <let>
20512 <clip pos="1" side="tl" part="temps"/>
20513 <lit-tag v="cni"/>
20514 </let>
20515 </when>
20516 <when>
20517 <test>
20518 <or>
20519 <equal caseless="yes">
20520 <clip pos="1" side="sl" part="lem"/>
20521 <lit v="must"/>
20522 </equal>
20523 <equal caseless="yes">
20524 <clip pos="1" side="sl" part="lem"/>
20525 <lit v="may"/>
20526 </equal>
20527 </or>
20528 </test>
20529 <let>
20530 <clip pos="1" side="tl" part="temps"/>
20531 <lit-tag v="pri"/>
20532 </let>
20533 </when>
20534 <when>
20535 <test>
20536 <or>
20537 <equal caseless="yes">
20538 <clip pos="1" side="sl" part="lem"/>
20539 <lit v="should"/>
20540 </equal>
20541 <equal caseless="yes">
20542 <clip pos="1" side="sl" part="lem"/>
20543 <lit v="might"/>
20544 </equal>
20545 </or>
20546 </test>
20547 <let>
20548 <clip pos="1" side="tl" part="temps"/>
20549 <lit-tag v="cni"/>
20550 </let>
20551 </when>
20552 </choose>
20553 <out>
20554 <chunk name="pro_auxmod_have_pp" case="caseFirstWord">
20555 <tags>
20556 <tag><lit-tag v="SV"/></tag>
20557 <tag><var n="tipus_verb"/></tag>
20558 <tag><clip pos="1" side="tl" part="temps"/></tag>
20559 <tag><lit-tag v="PD"/></tag>
20560 <tag><lit-tag v="ND"/></tag>
20561 </tags>
20562 <lu>
20563 <var n="pronom"/>
20564 <clip pos="5" side="tl" part="lem"/>
20565 <clip pos="5" side="tl" part="a_prnpro"/>
20566 <clip pos="5" side="tl" part="pers"/>
20567 <clip pos="5" side="tl" part="gen"/>
20568 <clip pos="5" side="tl" part="nbr"/>
20569 </lu>
20570 <b pos="2"/>
20571 <lu>
20572 <clip pos="1" side="tl" part="lemh"/>
20573 <clip pos="1" side="tl" part="a_verb"/>
20574 <clip pos="1" side="tl" part="temps" link-to="3"/>
20575 <lit-tag v="4"/>
20576 <lit-tag v="5"/>
20577 <clip pos="1" side="tl" part="lemq"/>
20578 </lu>
20579 <b pos="3"/>
20580 <lu>
20581 <clip pos="3" side="tl" part="lemh"/>
20582 <clip pos="3" side="tl" part="a_verb"/>
20583 <lit-tag v="inf"/>
20584 <clip pos="3" side="tl" part="lemq"/>
20585 </lu>
20586 <b pos="4"/>
20587 <lu>
20588 <clip pos="4" side="tl" part="lemh"/>
20589 <clip pos="4" side="tl" part="a_pp"/>
20590 <lit-tag v="m.sg"/>
20591 <clip pos="4" side="tl" part="lemq"/>
20592 </lu>
20593 </chunk>
20594 </out>
20595 <let>
20596 <var n="caseFirstWord"/>
20597 <lit v="aa"/>
20598 </let>
20599 </action>
20600 </rule>
20604 <!--*********************************************************************************************** -->
20606 <rule comment="REL (funció de nom)">
20607 <pattern>
20608 <pattern-item n="relnom"/>
20609 </pattern>
20610 <action>
20611 <call-macro n="firstWord">
20612 <with-param pos="1"/>
20613 </call-macro>
20614 <out>
20615 <chunk name="relnom" case="caseFirstWord">
20616 <tags>
20617 <tag><lit-tag v="REL"/></tag>
20618 <tag><clip pos="1" side="tl" part="tipus_rel"/></tag>
20619 <tag><clip pos="1" side="tl" part="gen"/></tag>
20620 <tag><clip pos="1" side="tl" part="nbr"/></tag>
20621 </tags>
20622 <lu>
20623 <clip pos="1" side="tl" part="lem"/>
20624 <clip pos="1" side="tl" part="a_rel"/>
20625 <clip pos="1" side="tl" part="gen" link-to="3"/>
20626 <clip pos="1" side="tl" part="nbr" link-to="4"/>
20627 </lu>
20628 </chunk>
20629 </out>
20630 <let>
20631 <var n="caseFirstWord"/>
20632 <lit v="aa"/>
20633 </let>
20634 </action>
20635 </rule>
20638 <rule comment="REL (funció adjectiva: visitors who search peace)">
20639 <pattern>
20640 <pattern-item n="reladj"/>
20641 </pattern>
20642 <action>
20643 <call-macro n="firstWord">
20644 <with-param pos="1"/>
20645 </call-macro>
20646 <out>
20647 <chunk name="reladj" case="caseFirstWord">
20648 <tags>
20649 <tag><lit-tag v="REL"/></tag>
20650 <tag><clip pos="1" side="tl" part="tipus_rel"/></tag>
20651 <tag><clip pos="1" side="tl" part="gen"/></tag>
20652 <tag><clip pos="1" side="tl" part="nbr"/></tag>
20653 </tags>
20654 <lu>
20655 <clip pos="1" side="tl" part="lem"/>
20656 <clip pos="1" side="tl" part="a_rel"/>
20657 <clip pos="1" side="tl" part="gen" link-to="3"/>
20658 <clip pos="1" side="tl" part="nbr" link-to="4"/>
20659 </lu>
20660 </chunk>
20661 </out>
20662 <let>
20663 <var n="caseFirstWord"/>
20664 <lit v="aa"/>
20665 </let>
20666 </action>
20667 </rule>
20672 <rule comment="PRONOM tònic/interrogatiu/possessiu (queda com a GD o ND si és el cas)">
20673 <pattern>
20674 <pattern-item n="tn_itg_pos"/>
20675 </pattern>
20676 <action>
20677 <call-macro n="firstWord">
20678 <with-param pos="1"/>
20679 </call-macro>
20680 <out>
20681 <chunk name="prn" case="caseFirstWord">
20682 <tags>
20683 <tag><lit-tag v="SN"/></tag>
20684 <tag><clip pos="1" side="tl" part="tipus_prn"/></tag>
20685 <tag><clip pos="1" side="tl" part="gen"/></tag>
20686 <tag><clip pos="1" side="tl" part="nbr"/></tag>
20687 </tags>
20688 <lu>
20689 <clip pos="1" side="tl" part="lem"/>
20690 <clip pos="1" side="tl" part="a_prn"/>
20691 <clip pos="1" side="tl" part="tipus_prn"/>
20692 <clip pos="1" side="tl" part="gen" link-to="3"/>
20693 <clip pos="1" side="tl" part="nbr" link-to="4"/>
20694 </lu>
20695 </chunk>
20696 </out>
20697 <let>
20698 <var n="caseFirstWord"/>
20699 <lit v="aa"/>
20700 </let>
20701 </action>
20702 </rule>
20707 <rule comment="PREP">
20708 <pattern>
20709 <pattern-item n="prep"/>
20710 </pattern>
20711 <action>
20712 <call-macro n="firstWord">
20713 <with-param pos="1"/>
20714 </call-macro>
20715 <out>
20716 <chunk name="pr" case="caseFirstWord">
20717 <tags>
20718 <tag><lit-tag v="PREP"/></tag>
20719 </tags>
20720 <lu>
20721 <clip pos="1" side="tl" part="whole"/>
20722 </lu>
20723 </chunk>
20724 </out>
20725 <let>
20726 <var n="caseFirstWord"/>
20727 <lit v="aa"/>
20728 </let>
20729 </action>
20730 </rule>
20733 <rule comment="THERE">
20734 <pattern>
20735 <pattern-item n="there"/>
20736 </pattern>
20737 <action>
20738 <call-macro n="firstWord">
20739 <with-param pos="1"/>
20740 </call-macro>
20741 <out>
20742 <chunk name="there" case="caseFirstWord">
20743 <tags>
20744 <tag><clip pos="1" side="tl" part="a_adv"/></tag>
20745 </tags>
20746 <lu>
20747 <clip pos="1" side="tl" part="whole"/>
20748 </lu>
20749 </chunk>
20750 </out>
20751 <let>
20752 <var n="caseFirstWord"/>
20753 <lit v="aa"/>
20754 </let>
20755 </action>
20756 </rule>
20759 <rule comment="ADV">
20760 <pattern>
20761 <pattern-item n="adv"/>
20762 </pattern>
20763 <action>
20764 <call-macro n="firstWord">
20765 <with-param pos="1"/>
20766 </call-macro>
20767 <choose>
20768 <when>
20769 <test>
20770 <in caseless="yes">
20771 <clip pos="1" side="sl" part="lem"/>
20772 <list n="adv_neg"/>
20773 </in>
20774 </test>
20775 <let>
20776 <var n="paraula1"/>
20777 <clip pos="1" side="tl" part="whole"/>
20778 </let>
20779 <append n="paraula1">
20780 <lit-tag v="NEG"/>
20781 </append>
20782 <let>
20783 <clip pos="1" side="tl" part="whole"/>
20784 <var n="paraula1"/>
20785 </let>
20786 </when>
20787 </choose>
20788 <out>
20789 <chunk name="adv" case="caseFirstWord">
20790 <tags>
20791 <tag><clip pos="1" side="tl" part="a_adv"/></tag>
20792 <tag><clip pos="1" side="tl" part="neg"/></tag>
20793 </tags>
20794 <lu>
20795 <clip pos="1" side="tl" part="lem"/>
20796 <clip pos="1" side="tl" part="a_adv"/>
20797 </lu>
20798 </chunk>
20799 </out>
20800 <let>
20801 <var n="caseFirstWord"/>
20802 <lit v="aa"/>
20803 </let>
20804 </action>
20805 </rule>
20808 <rule comment="ADV ITG">
20809 <pattern>
20810 <pattern-item n="advitg"/>
20811 </pattern>
20812 <action>
20813 <call-macro n="firstWord">
20814 <with-param pos="1"/>
20815 </call-macro>
20816 <out>
20817 <chunk name="adv" case="caseFirstWord">
20818 <tags>
20819 <tag><clip pos="1" side="tl" part="a_adv"/></tag>
20820 </tags>
20821 <lu>
20822 <clip pos="1" side="tl" part="whole"/>
20823 </lu>
20824 </chunk>
20825 </out>
20826 <let>
20827 <var n="caseFirstWord"/>
20828 <lit v="aa"/>
20829 </let>
20830 </action>
20831 </rule>
20834 <rule comment="PREADV">
20835 <pattern>
20836 <pattern-item n="preadv"/>
20837 </pattern>
20838 <action>
20839 <call-macro n="firstWord">
20840 <with-param pos="1"/>
20841 </call-macro>
20843 <out>
20844 <chunk name="preadv" case="caseFirstWord">
20845 <tags>
20846 <tag><clip pos="1" side="tl" part="a_adv"/></tag>
20847 </tags>
20848 <lu>
20849 <clip pos="1" side="tl" part="lem"/>
20850 <clip pos="1" side="tl" part="a_adv"/>
20851 </lu>
20852 </chunk>
20853 </out>
20854 <let>
20855 <var n="caseFirstWord"/>
20856 <lit v="aa"/>
20857 </let>
20858 </action>
20859 </rule>
20862 <rule comment="CNJ">
20863 <pattern>
20864 <pattern-item n="cnj"/>
20865 </pattern>
20866 <action>
20867 <call-macro n="firstWord">
20868 <with-param pos="1"/>
20869 </call-macro>
20870 <out>
20871 <chunk name="cnj" case="caseFirstWord">
20872 <tags>
20873 <tag><clip pos="1" side="tl" part="tags"/></tag>
20874 </tags>
20875 <lu>
20876 <clip pos="1" side="tl" part="whole"/>
20877 </lu>
20878 </chunk>
20879 </out>
20880 <let>
20881 <var n="caseFirstWord"/>
20882 <lit v="aa"/>
20883 </let>
20884 </action>
20885 </rule>
20889 <rule comment="REGLA: reset variables">
20890 <pattern>
20891 <pattern-item n="sent"/>
20892 </pattern>
20893 <action>
20894 <let>
20895 <var n="nombre"/>
20896 <lit-tag v="sg"/>
20897 </let>
20898 <let>
20899 <var n="genere"/>
20900 <lit-tag v="m"/>
20901 </let>
20902 <choose>
20903 <when>
20904 <test>
20905 <not>
20906 <or>
20907 <equal>
20908 <clip pos="1" side="sl" part="lem"/>
20909 <lit v=";"/>
20910 </equal>
20911 <equal>
20912 <clip pos="1" side="sl" part="lem"/>
20913 <lit v=":"/>
20914 </equal>
20915 </or>
20916 </not>
20917 </test>
20918 <let>
20919 <var n="EOS"/>
20920 <lit v="true"/>
20921 </let>
20922 </when>
20923 </choose>
20924 <out>
20925 <chunk name="punt">
20926 <tags>
20927 <tag><lit-tag v="sent"/></tag>
20928 </tags>
20929 <lu>
20930 <clip pos="1" side="tl" part="whole"/>
20931 </lu>
20932 </chunk>
20933 </out>
20934 </action>
20935 </rule>
20939 </section-rules>
20940 </transfer>