més
[apertium.git] / apertium-en-af / apertium-en-af.en-af.t1x
blob30561df131deb0878132851355e48b457cddc022
1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
3 <transfer default="chunk">
4 <section-def-cats>
5 <def-cat n="conj">
6 <cat-item tags="cnjadv"/>
7 <cat-item tags="cnjcoo"/>
8 <cat-item tags="cnjsub"/>
9 <cat-item tags="cnjcoo.*"/>
10 <cat-item tags="cnjadv.*"/>
11 <cat-item tags="cnjsub.*"/>
12 </def-cat>
13 <def-cat n="rel_prn">
14 <cat-item tags="rel.*"/>
15 </def-cat>
16 <def-cat n="adj">
17 <cat-item tags="adj"/>
18 <cat-item tags="adj.*"/>
19 </def-cat>
20 <def-cat n="nom">
21 <cat-item tags="n.*"/>
22 <cat-item tags="np.*"/>
23 </def-cat>
24 <def-cat n="sent">
25 <cat-item tags="sent"/>
26 </def-cat>
27 <def-cat n="det">
28 <cat-item tags="det.ind.*"/>
29 <cat-item tags="det.ord.*"/>
30 <cat-item tags="det.def.*"/>
31 </def-cat>
32 <def-cat n="prpers">
33 <cat-item lemma="prpers" tags="prn.*"/>
34 </def-cat>
35 <def-cat n="verbnm"><!--verb no modal -->
36 <cat-item tags="vblex.*"/>
37 <cat-item tags="vbser.*"/>
38 <cat-item tags="vbhaver.*"/>
39 </def-cat>
40 <def-cat n="prep"> <!-- preposition -->
41 <cat-item tags="pr"/>
42 </def-cat>
43 <def-cat n="genitive">
44 <cat-item tags="gen"/>
45 </def-cat>
46 </section-def-cats>
48 <section-def-attrs>
49 <def-attr n="nbr"> <!-- Number -->
50 <attr-item tags="sg"/>
51 <attr-item tags="pl"/>
52 <attr-item tags="sp"/>
53 </def-attr>
54 <def-attr n="gen"> <!-- Gender -->
55 <attr-item tags="m"/>
56 <attr-item tags="f"/>
57 <attr-item tags="mf"/>
58 <attr-item tags="nt"/>
59 </def-attr>
60 <def-attr n="a_conj">
61 <attr-item tags="cnjadv"/>
62 <attr-item tags="cnjsub"/>
63 <attr-item tags="cnjcoo"/>
64 </def-attr>
65 <def-attr n="a_nom">
66 <attr-item tags="n"/>
67 <attr-item tags="n.acr"/>
68 <attr-item tags="n.unc"/>
69 <attr-item tags="np.loc"/>
70 <attr-item tags="np.ant"/>
71 </def-attr>
72 <def-attr n="a_adj">
73 <attr-item tags="adj.sint"/>
74 <attr-item tags="adj"/>
75 <attr-item tags="adj.sint.comp"/>
76 <attr-item tags="adj.sint.sup"/>
77 </def-attr>
78 <def-attr n="a_det">
79 <attr-item tags="det.ind"/>
80 <attr-item tags="det.def"/>
81 <attr-item tags="det.ord"/>
82 <attr-item tags="det.qnt"/>
83 </def-attr>
84 <def-attr n="a_rel">
85 <attr-item tags="rel"/>
86 <attr-item tags="rel.nn"/>
87 <attr-item tags="rel.an"/>
88 </def-attr>
89 <def-attr n="tipus_prn">
90 <attr-item tags="prn.subj"/>
91 <attr-item tags="prn.obj"/>
92 <attr-item tags="prn.tn"/>
93 </def-attr>
94 <def-attr n="pers"> <!-- Person -->
95 <attr-item tags="p1"/>
96 <attr-item tags="p2"/>
97 <attr-item tags="p3"/>
98 </def-attr>
99 <def-attr n="a_verb">
100 <attr-item tags="vblex"/>
101 <attr-item tags="vblex.uns"/>
102 <attr-item tags="vbser"/>
103 <attr-item tags="vbhaver"/>
104 <attr-item tags="vbmod"/>
105 <attr-item tags="vaux"/>
106 </def-attr>
107 <def-attr n="temps">
108 <attr-item tags="pp"/>
109 <attr-item tags="ger"/>
110 <attr-item tags="pii"/>
111 <attr-item tags="pis"/>
112 <attr-item tags="pri"/>
113 <attr-item tags="past"/>
114 <attr-item tags="pres"/>
115 <attr-item tags="inf"/>
116 </def-attr>
117 </section-def-attrs>
119 <section-def-vars>
120 <def-var n="numero"/>
121 <def-var n="caseFirstWord"/>
122 <def-var n="nombre"/>
123 <def-var n="attr-tag-1"/>
124 <def-var n="attr-tag-2"/>
125 <def-var n="pred-tag"/>
126 <def-var n="pre-adj-tag-1"/>
127 <def-var n="pre-adj-tag-2"/>
128 </section-def-vars>
130 <section-def-macros>
131 <def-macro n="synthetic-to-analytical-conversion-1" npar="1">
132 <let><var n="pre-adj-tag-1"/><lit v=""/></let>
133 <choose>
134 <when>
135 <test>
136 <not> <!-- If we're dealing with an analytical adjective in the target -->
137 <or>
138 <equal>
139 <clip pos="1" side="tl" part="a_adj"/>
140 <lit-tag v="adj.sint.comp"/>
141 </equal>
142 <equal>
143 <clip pos="1" side="tl" part="a_adj"/>
144 <lit-tag v="adj.sint.sup"/>
145 </equal>
146 </or>
147 </not>
148 </test>
149 <choose>
150 <when>
151 <test>
152 <equal>
153 <clip pos="1" side="sl" part="a_adj"/>
154 <lit-tag v="adj.sint.comp"/>
155 </equal>
156 </test>
157 <append n="pre-adj-tag-1">
158 <lit v="meer"/><lit-tag v="preadv"/><lit-tag v="sint"/>
159 </append>
160 </when>
161 <when>
162 <test>
163 <equal>
164 <clip pos="1" side="sl" part="a_adj"/>
165 <lit-tag v="adj.sint.sup"/>
166 </equal>
167 </test>
168 <append n="pre-adj-tag-1">
169 <lit v="mees"/><lit-tag v="preadv"/><lit-tag v="sint"/>
170 </append>
171 </when>
172 </choose>
173 </when>
174 </choose>
175 </def-macro>
177 <def-macro n="synthetic-to-analytical-conversion-2" npar="1">
178 <let><var n="pre-adj-tag-2"/><lit v=""/></let>
179 <choose>
180 <when>
181 <test>
182 <not> <!-- If we're dealing with an analytical adjective in the target -->
183 <equal>
184 <clip pos="1" side="tl" part="a_adj"/>
185 <lit-tag v="adj.sint"/>
186 </equal>
187 </not>
188 </test>
189 <choose>
190 <when>
191 <test>
192 <equal>
193 <clip pos="1" side="sl" part="a_adj"/>
194 <lit-tag v="adj.sint.comp"/>
195 </equal>
196 </test>
197 <append n="pre-adj-tag-2">
198 <lit v="meer"/><lit-tag v="preadv"/><lit-tag v="sint"/>
199 </append>
200 </when>
201 <when>
202 <test>
203 <equal>
204 <clip pos="1" side="sl" part="a_adj"/>
205 <lit-tag v="adj.sint.sup"/>
206 </equal>
207 </test>
208 <append n="pre-adj-tag-2">
209 <lit v="mees"/><lit-tag v="preadv"/><lit-tag v="sint"/>
210 </append>
211 </when>
212 </choose>
213 </when>
214 </choose>
215 </def-macro>
217 <def-macro n="test-if-synthetic-1" npar="1">
218 <choose>
219 <when>
220 <test>
221 <not>
222 <or>
223 <equal>
224 <clip pos="1" side="tl" part="a_adj"/>
225 <lit-tag v="adj.sint.comp"/>
226 </equal>
227 <equal>
228 <clip pos="1" side="tl" part="a_adj"/>
229 <lit-tag v="adj.sint.sup"/>
230 </equal>
231 </or>
232 </not>
233 </test>
234 <let><var n="attr-tag-1"/><lit-tag v="attr"/></let>
235 </when>
236 <otherwise>
237 <let><var n="attr-tag-1"/><lit v=""/></let>
238 </otherwise>
239 </choose>
240 </def-macro>
242 <def-macro n="test-if-synthetic-2" npar="1"> <!-- WHAT AWFUL DUPLICATION. WE'LL FIND A BETTER WAY YET. -->
243 <choose>
244 <when>
245 <test>
246 <not>
247 <or>
248 <equal>
249 <clip pos="1" side="tl" part="a_adj"/>
250 <lit-tag v="adj.sint.comp"/>
251 </equal>
252 <equal>
253 <clip pos="1" side="tl" part="a_adj"/>
254 <lit-tag v="adj.sint.sup"/>
255 </equal>
256 </or>
257 </not>
258 </test>
259 <let><var n="attr-tag-2"/><lit-tag v="attr"/></let>
260 </when>
261 <otherwise>
262 <let><var n="attr-tag-2"/><lit v=""/></let>
263 </otherwise>
264 </choose>
265 </def-macro>
266 </section-def-macros>
268 <section-rules>
269 <rule comment="REGLA: NOM (per a collocar la cua en les multiparaules amb g">
270 <pattern>
271 <pattern-item n="nom"/>
272 </pattern>
273 <action>
274 <out>
275 <chunk name="nom" case="caseFirstWord">
276 <tags>
277 <tag><lit-tag v="NP"/></tag>
278 <tag><clip pos="1" side="tl" part="nbr"/></tag>
279 </tags>
280 <lu>
281 <clip pos="1" side="tl" part="lem"/>
282 <clip pos="1" side="tl" part="a_nom"/>
283 <clip pos="1" side="tl" part="nbr"/>
284 </lu>
285 </chunk>
286 </out>
287 </action>
288 </rule>
290 <rule comment="REGLA: PRPERS">
291 <pattern>
292 <pattern-item n="prpers"/>
293 </pattern>
294 <action>
295 <!--<modify-case>
296 <clip pos="1" side="tl" part="lem"/>
297 <lit v="Aa"/>
298 </modify-case>-->
299 <out>
300 <chunk name="prpers">
301 <tags>
302 <tag><lit-tag v="PRN"/></tag>
303 </tags>
304 <lu>
305 <clip pos="1" side="tl" part="lem"/>
306 <clip pos="1" side="tl" part="tipus_prn"/>
307 <clip pos="1" side="tl" part="pers"/>
308 <clip pos="1" side="tl" part="gen"/>
309 <clip pos="1" side="tl" part="nbr"/>
310 </lu>
311 </chunk>
312 </out>
313 </action>
314 </rule>
316 <rule comment="REGLA: DET NOM GENITIVE">
317 <pattern>
318 <pattern-item n="det"/>
319 <pattern-item n="nom"/>
320 <pattern-item n="genitive"/>
321 </pattern>
322 <action>
323 <out>
324 <chunk name="det_nom_gen" case="caseFirstWord">
325 <tags>
326 <tag><lit-tag v="NP"/></tag>
327 <tag><clip pos="2" side="sl" part="gen"/></tag>
328 <tag><var n="nombre"/></tag>
329 </tags>
330 <lu>
331 <clip pos="1" side="tl" part="lem"/>
332 <clip pos="1" side="tl" part="a_det"/>
333 <clip pos="2" side="tl" part="nbr"/>
334 </lu>
335 <b pos="1"/>
336 <lu>
337 <clip pos="2" side="tl" part="lemh"/>
338 <clip pos="2" side="tl" part="a_nom"/>
339 <clip pos="2" side="tl" part="nbr"/>
340 <clip pos="2" side="tl" part="lemq"/>
341 </lu>
342 <b/>
343 <lu>
344 <clip pos="3" side="tl" part="lemh"/>
345 <lit-tag v="gen"/>
346 </lu>
347 </chunk>
348 </out>
349 <let>
350 <var n="caseFirstWord"/>
351 <lit v="aa"/>
352 </let>
353 </action>
354 </rule>
357 <rule comment="REGLA: DET NOM">
358 <pattern>
359 <pattern-item n="det"/>
360 <pattern-item n="nom"/>
361 </pattern>
362 <action>
363 <out>
364 <chunk name="det_nom" case="caseFirstWord">
365 <tags>
366 <tag><lit-tag v="NP"/></tag>
367 <tag><clip pos="2" side="sl" part="gen"/></tag>
368 <tag><var n="nombre"/></tag>
369 </tags>
370 <lu>
371 <clip pos="1" side="tl" part="lem"/>
372 <clip pos="1" side="tl" part="a_det"/>
373 <clip pos="2" side="tl" part="nbr"/>
374 </lu>
375 <b pos="1"/>
376 <lu>
377 <clip pos="2" side="tl" part="lemh"/>
378 <clip pos="2" side="tl" part="a_nom"/>
379 <clip pos="2" side="tl" part="nbr"/>
380 <clip pos="2" side="tl" part="lemq"/>
381 </lu>
382 </chunk>
383 </out>
384 <let>
385 <var n="caseFirstWord"/>
386 <lit v="aa"/>
387 </let>
388 </action>
389 </rule>
391 <rule comment="REGLA: DET NOM NOM">
392 <pattern>
393 <pattern-item n="det"/>
394 <pattern-item n="nom"/>
395 <pattern-item n="nom"/>
396 </pattern>
397 <action>
398 <out>
399 <chunk name="det_nom_nom" case="caseFirstWord">
400 <tags>
401 <tag><lit-tag v="NP"/></tag>
402 <tag><clip pos="2" side="sl" part="gen"/></tag>
403 <tag><var n="nombre"/></tag>
404 </tags>
405 <lu>
406 <clip pos="1" side="tl" part="lem"/>
407 <clip pos="1" side="tl" part="a_det"/>
408 <clip pos="2" side="tl" part="nbr"/>
409 </lu>
410 <b pos="1"/>
411 <lu>
412 <clip pos="2" side="tl" part="lemh"/>
413 <clip pos="2" side="tl" part="a_nom"/>
414 <clip pos="2" side="tl" part="nbr"/>
415 <clip pos="2" side="tl" part="lemq"/>
416 </lu>
417 <b pos="1"/>
418 <lu>
419 <clip pos="3" side="tl" part="lemh"/>
420 <clip pos="3" side="tl" part="a_nom"/>
421 <clip pos="3" side="tl" part="nbr"/>
422 <clip pos="3" side="tl" part="lemq"/>
423 </lu>
424 </chunk>
425 </out>
426 <let>
427 <var n="caseFirstWord"/>
428 <lit v="aa"/>
429 </let>
430 </action>
431 </rule>
434 <rule comment="REGLA: DET ADJ NOM GEN">
435 <pattern>
436 <pattern-item n="det"/>
437 <pattern-item n="adj"/>
438 <pattern-item n="nom"/>
439 <pattern-item n="genitive"/>
440 </pattern>
441 <action>
442 <call-macro n="synthetic-to-analytical-conversion-1">
443 <with-param pos="2"/>
444 </call-macro>
445 <call-macro n="test-if-synthetic-1">
446 <with-param pos="2"/>
447 </call-macro>
448 <out>
449 <chunk name="det_adj_nom" case="caseFirstWord">
450 <tags>
451 <tag><lit-tag v="NP"/></tag>
452 <tag><clip pos="2" side="sl" part="gen"/></tag>
453 <tag><var n="nombre"/></tag>
454 </tags>
455 <lu>
456 <clip pos="1" side="tl" part="lem"/>
457 <clip pos="1" side="tl" part="a_det"/>
458 <clip pos="1" side="tl" part="nbr"/>
459 </lu>
460 <b pos="1"/>
461 <lu>
462 <var n="pre-adj-tag-1"/>
463 </lu>
464 <lu>
465 <clip pos="2" side="tl" part="lem"/>
466 <clip pos="2" side="tl" part="a_adj"/>
467 <var n="attr-tag-1"/>
468 </lu>
469 <b pos="1"/>
470 <lu>
471 <clip pos="3" side="tl" part="lemh"/>
472 <clip pos="3" side="tl" part="a_nom"/>
473 <clip pos="3" side="tl" part="nbr"/>
474 <clip pos="3" side="tl" part="lemq"/>
475 </lu>
476 <b/>
477 <lu>
478 <clip pos="4" side="tl" part="lem"/>
479 <lit-tag v="gen"/>
480 </lu>
481 </chunk>
482 </out>
483 <let>
484 <var n="caseFirstWord"/>
485 <lit v="aa"/>
486 </let>
487 </action>
488 </rule>
490 <rule comment="REGLA: DET ADJ NOM">
491 <pattern>
492 <pattern-item n="det"/>
493 <pattern-item n="adj"/>
494 <pattern-item n="nom"/>
495 </pattern>
496 <action>
497 <call-macro n="synthetic-to-analytical-conversion-1">
498 <with-param pos="2"/>
499 </call-macro>
500 <call-macro n="test-if-synthetic-1">
501 <with-param pos="2"/>
502 </call-macro>
503 <out>
504 <chunk name="det_adj_nom" case="caseFirstWord">
505 <tags>
506 <tag><lit-tag v="NP"/></tag>
507 <tag><clip pos="2" side="sl" part="gen"/></tag>
508 <tag><var n="nombre"/></tag>
509 </tags>
510 <lu>
511 <clip pos="1" side="tl" part="lem"/>
512 <clip pos="1" side="tl" part="a_det"/>
513 <clip pos="1" side="tl" part="nbr"/>
514 </lu>
515 <b pos="1"/>
516 <lu>
517 <var n="pre-adj-tag-1"/>
518 </lu>
519 <lu>
520 <clip pos="2" side="tl" part="lem"/>
521 <clip pos="2" side="tl" part="a_adj"/>
522 <var n="attr-tag-1"/>
523 </lu>
524 <b pos="1"/>
525 <lu>
526 <clip pos="3" side="tl" part="lemh"/>
527 <clip pos="3" side="tl" part="a_nom"/>
528 <clip pos="3" side="tl" part="nbr"/>
529 <clip pos="3" side="tl" part="lemq"/>
530 </lu>
531 </chunk>
532 </out>
533 <let>
534 <var n="caseFirstWord"/>
535 <lit v="aa"/>
536 </let>
537 </action>
538 </rule>
540 <rule comment="REGLA: ADJ NOM">
541 <pattern>
542 <pattern-item n="adj"/>
543 <pattern-item n="nom"/>
544 </pattern>
545 <action>
546 <call-macro n="synthetic-to-analytical-conversion-1">
547 <with-param pos="1"/>
548 </call-macro>
549 <call-macro n="test-if-synthetic-1">
550 <with-param pos="1"/>
551 </call-macro>
552 <out>
553 <chunk name="adj_nom" case="caseFirstWord">
554 <tags>
555 <tag><lit-tag v="NP"/></tag>
556 <tag><clip pos="2" side="sl" part="gen"/></tag>
557 <tag><var n="nombre"/></tag>
558 </tags>
559 <lu>
560 <var n="pre-adj-tag-1"/>
561 </lu>
562 <lu>
563 <clip pos="1" side="tl" part="lem"/>
564 <clip pos="1" side="tl" part="a_adj"/>
565 <var n="attr-tag-1"/>
566 </lu>
567 <b/>
568 <lu>
569 <clip pos="2" side="tl" part="lem"/>
570 <clip pos="2" side="tl" part="a_nom"/>
571 <clip pos="2" side="tl" part="nbr"/>
572 </lu>
573 </chunk>
574 </out>
575 </action>
576 </rule>
578 <rule comment="REGLA: NOM GENITIVE">
579 <pattern>
580 <pattern-item n="nom"/>
581 <pattern-item n="genitive"/>
582 </pattern>
583 <action>
584 <out>
585 <chunk name="nom_gen" case="caseFirstWord">
586 <tags>
587 <tag><lit-tag v="SN.UNDET"/></tag>
588 <tag><clip pos="1" side="tl" part="gen"/></tag>
589 <tag><clip pos="1" side="tl" part="nbr"/></tag>
590 </tags>
591 <lu>
592 <clip pos="1" side="tl" part="lemh"/>
593 <clip pos="1" side="tl" part="a_nom"/>
594 <clip pos="1" side="tl" part="nbr"/>
595 <clip pos="1" side="tl" part="lemq"/>
596 </lu>
597 <b/>
598 <lu>
599 <clip pos="2" side="tl" part="lem"/>
600 <lit-tag v="gen"/>
601 </lu>
602 </chunk>
603 </out>
604 <let>
605 <var n="caseFirstWord"/>
606 <lit v="aa"/>
607 </let>
608 </action>
609 </rule>
611 <rule comment="REGLA: ADJ CONJ ADJ NOM">
612 <pattern>
613 <pattern-item n="adj"/>
614 <pattern-item n="conj"/>
615 <pattern-item n="adj"/>
616 <pattern-item n="nom"/>
617 </pattern>
618 <action>
619 <call-macro n="synthetic-to-analytical-conversion-1">
620 <with-param pos="1"/>
621 </call-macro>
622 <call-macro n="synthetic-to-analytical-conversion-2">
623 <with-param pos="3"/>
624 </call-macro>
625 <call-macro n="test-if-synthetic-1">
626 <with-param pos="1"/>
627 </call-macro>
628 <call-macro n="test-if-synthetic-2">
629 <with-param pos="3"/>
630 </call-macro>
631 <out>
632 <chunk name="adj_conj_adj" case="caseFirstWord">
633 <tags>
634 <tag><lit-tag v="ADJP"/></tag>
635 </tags>
636 <lu>
637 <var n="pre-adj-tag-1"/>
638 </lu>
639 <lu>
640 <clip pos="1" side="tl" part="lem"/>
641 <clip pos="1" side="tl" part="a_adj"/>
642 <var n="attr-tag-1"/>
643 </lu>
644 <b/>
645 <lu>
646 <clip pos="2" side="tl" part="lem"/>
647 <clip pos="2" side="tl" part="a_conj"/>
648 </lu>
649 <b/>
650 <lu>
651 <var n="pre-adj-tag-2"/>
652 </lu>
653 <lu>
654 <clip pos="3" side="tl" part="lem"/>
655 <clip pos="3" side="tl" part="a_adj"/>
656 <var n="attr-tag-2"/>
657 </lu>
658 <b/>
659 <lu>
660 <clip pos="4" side="tl" part="lem"/>
661 <clip pos="4" side="tl" part="a_nom"/>
662 <clip pos="4" side="tl" part="nbr"/>
663 </lu>
664 </chunk>
665 </out>
666 </action>
667 </rule>
669 <rule comment="REGLA: ADJ CONJ ADJ">
670 <pattern>
671 <pattern-item n="adj"/>
672 <pattern-item n="conj"/>
673 <pattern-item n="adj"/>
674 </pattern>
675 <action>
676 <out>
677 <chunk name="adj_conj_adj" case="caseFirstWord">
678 <tags>
679 <tag><lit-tag v="ADJP"/></tag>
680 </tags>
681 <lu>
682 <clip pos="1" side="tl" part="lem"/>
683 <clip pos="1" side="tl" part="a_adj"/>
684 <lit-tag v="pred"/>
685 </lu>
686 <b/>
687 <lu>
688 <clip pos="2" side="tl" part="lem"/>
689 <clip pos="2" side="tl" part="a_conj"/>
690 </lu>
691 <b/>
692 <lu>
693 <clip pos="3" side="tl" part="lem"/>
694 <clip pos="3" side="tl" part="a_adj"/>
695 <lit-tag v="pred"/>
696 </lu>
697 </chunk>
698 </out>
699 </action>
700 </rule>
703 <rule comment="REGLA: ADJ ADJ NOM">
704 <pattern>
705 <pattern-item n="adj"/>
706 <pattern-item n="adj"/>
707 <pattern-item n="nom"/>
708 </pattern>
709 <action>
710 <call-macro n="synthetic-to-analytical-conversion-1">
711 <with-param pos="1"/>
712 </call-macro>
713 <call-macro n="synthetic-to-analytical-conversion-2">
714 <with-param pos="2"/>
715 </call-macro>
716 <call-macro n="test-if-synthetic-1">
717 <with-param pos="1"/>
718 </call-macro>
719 <call-macro n="test-if-synthetic-2">
720 <with-param pos="2"/>
721 </call-macro>
722 <out>
723 <chunk name="adj_nom" case="caseFirstWord">
724 <tags>
725 <tag><lit-tag v="NP"/></tag>
726 <tag><clip pos="2" side="sl" part="gen"/></tag>
727 <tag><var n="nombre"/></tag>
728 </tags>
729 <lu>
730 <var n="pre-adj-tag-1"/>
731 </lu>
732 <lu>
733 <clip pos="1" side="tl" part="lem"/>
734 <clip pos="1" side="tl" part="a_adj"/>
735 <var n="attr-tag-1"/>
736 </lu>
737 <b/>
738 <lu>
739 <var n="pre-adj-tag-2"/>
740 </lu>
741 <lu>
742 <clip pos="2" side="tl" part="lem"/>
743 <clip pos="2" side="tl" part="a_adj"/>
744 <var n="attr-tag-2"/>
745 </lu>
746 <b/>
747 <lu>
748 <clip pos="3" side="tl" part="lem"/>
749 <clip pos="3" side="tl" part="a_nom"/>
750 <clip pos="3" side="tl" part="nbr"/>
751 </lu>
752 </chunk>
753 </out>
754 </action>
755 </rule>
758 <rule comment="REGLA: PR">
759 <pattern>
760 <pattern-item n="prep"/>
761 </pattern>
762 <action>
763 <out>
764 <chunk name="pr">
765 <tags>
766 <tag><lit-tag v="PR"/></tag>
767 </tags>
768 <lu>
769 <clip pos="1" side="tl" part="lem"/>
770 <lit-tag v="pr"/>
771 </lu>
772 </chunk>
773 </out>
774 </action>
775 </rule>
777 <rule comment="REGLA: PR INF">
778 <pattern>
779 <pattern-item n="prep"/>
780 <pattern-item n="verbnm"/>
781 </pattern>
782 <action>
783 <choose>
784 <when>
785 <test>
786 <equal>
787 <clip pos="1" side="sl" part="lem"/>
788 <lit v="to"/>
789 </equal>
790 </test>
791 <out>
792 <chunk name="inf">
793 <tags>
794 <tag><lit-tag v="V"/></tag>
795 </tags>
796 <lu>
797 <lit v="om"/>
798 <lit-tag v="pr"/>
799 </lu>
800 <b/>
801 <lu>
802 <lit v="te"/>
803 <lit-tag v="pr"/>
804 </lu>
805 <b/>
806 <lu>
807 <clip pos="2" side="tl" part="lemh"/>
808 <clip pos="2" side="tl" part="a_verb"/>
809 <lit-tag v="inf"/>
810 <clip pos="2" side="tl" part="lemq"/>
811 </lu>
812 </chunk>
813 </out>
814 </when>
815 <otherwise>
816 <out>
817 <chunk name="inf">
818 <tags>
819 <tag><lit-tag v="V"/></tag>
820 </tags>
821 <lu>
822 <clip pos="1" side="tl" part="lemh"/>
823 <lit-tag v="pr"/>
824 <clip pos="1" side="tl" part="lemq"/>
825 </lu>
826 <b/>
827 <lu>
828 <clip pos="2" side="tl" part="lemh"/>
829 <clip pos="2" side="tl" part="a_verb"/>
830 <lit-tag v="inf"/>
831 <clip pos="2" side="tl" part="lemq"/>
832 </lu>
833 </chunk>
834 </out>
835 </otherwise>
836 </choose>
837 </action>
838 </rule>
840 <rule comment="REGLA: REL">
841 <pattern>
842 <pattern-item n="rel_prn"/>
843 </pattern>
844 <action>
845 <out>
846 <chunk name="rel">
847 <tags>
848 <tag><lit-tag v="REL"/></tag>
849 <tag><lit-tag v="PRN"/></tag>
850 </tags>
851 <lu>
852 <clip pos="1" side="tl" part="lem"/>
853 <clip pos="1" side="tl" part="a_rel"/>
854 <clip pos="1" side="tl" part="gen"/>
855 <clip pos="1" side="tl" part="nbr"/>
856 </lu>
857 </chunk>
858 </out>
859 </action>
860 </rule>
863 <rule comment="REGLA: ADJ">
864 <pattern>
865 <pattern-item n="adj"/>
866 </pattern>
867 <action>
868 <call-macro n="synthetic-to-analytical-conversion-1">
869 <with-param pos="1"/>
870 </call-macro>
872 <choose>
873 <when>
874 <test>
875 <not>
876 <or>
877 <equal>
878 <clip pos="1" side="tl" part="a_adj"/>
879 <lit-tag v="adj.sint.comp"/>
880 </equal>
881 <equal>
882 <clip pos="1" side="tl" part="a_adj"/>
883 <lit-tag v="adj.sint.sup"/>
884 </equal>
885 </or>
886 </not>
887 </test>
888 <let><var n="pred-tag"/><lit-tag v="pred"/></let> <!-- comp and sup adjectives are never marked with pred -->
889 </when>
890 <otherwise>
891 <let><var n="pred-tag"/><lit v=""/></let>
892 </otherwise>
893 </choose>
896 <out>
897 <chunk name="adj">
898 <tags>
899 <tag><lit-tag v="ADJ"/></tag>
900 </tags>
901 <lu>
902 <var n="pre-adj-tag-1"/>
903 </lu>
904 <lu>
905 <clip pos="1" side="tl" part="lem"/>
906 <clip pos="1" side="tl" part="a_adj"/>
907 <var n="pred-tag"/>
909 <!--<lit-tag v="pred"/>-->
910 </lu>
911 </chunk>
912 </out>
913 </action>
914 </rule>
916 <rule>
917 <pattern>
918 <pattern-item n="nom"/>
919 </pattern>
920 <action>
921 <out>
922 <lu>
923 <clip pos="1" side="tl" part="lem"/>
924 <clip pos="1" side="tl" part="a_nom"/>
925 <clip pos="1" side="tl" part="nbr"/>
926 </lu>
927 </out>
928 </action>
929 </rule>
932 <rule comment="REGLA: VERBNM">
933 <pattern>
934 <pattern-item n="verbnm"/>
935 </pattern>
936 <action>
937 <choose>
939 <when>
940 <test> <!-- If it is third person singular in the present tense -->
941 <and>
942 <or>
943 <equal>
944 <clip pos="1" side="tl" part="temps"/>
945 <lit-tag v="pp"/>
946 </equal>
947 <equal>
948 <clip pos="1" side="tl" part="temps"/>
949 <lit-tag v="past"/>
950 </equal>
951 </or>
952 <not>
953 <equal>
954 <clip pos="1" side="tl" part="a_verb"/>
955 <lit-tag v="vblex.uns"/>
956 </equal>
957 </not>
958 <not>
959 <equal>
960 <clip pos="1" side="tl" part="lem"/>
961 <lit v="wees"/> <!-- be is a special case -->
962 </equal>
963 </not>
964 </and>
965 </test>
966 <out>
967 <chunk name="verb">
968 <tags>
969 <tag><lit-tag v="V"/></tag>
970 </tags>
971 <lu>
972 <lit v="hê"/>
973 <lit-tag v="vbhaver"/>
974 <lit-tag v="pres"/>
975 </lu>
976 </chunk>
977 <b/>
978 <chunk name="verb_participle">
979 <tags>
980 <tag><lit-tag v="V"/></tag>
981 <tag><lit-tag v="PART"/></tag>
982 </tags>
983 <lu>
984 <lit v="ge"/>
985 </lu>
986 <lu>
987 <clip pos="1" side="tl" part="lemh"/>
988 <clip pos="1" side="tl" part="a_verb"/>
989 <lit-tag v="inf"/>
990 <clip pos="1" side="tl" part="lemq"/>
991 <!-- <clip pos="1" side="tl" part="temps"/> -->
992 </lu>
993 </chunk>
994 </out>
995 </when>
997 <when>
998 <test> <!-- If it is third person singular in the present tense -->
999 <and>
1000 <or>
1001 <equal>
1002 <clip pos="1" side="tl" part="temps"/>
1003 <lit-tag v="pp"/>
1004 </equal>
1005 <equal>
1006 <clip pos="1" side="tl" part="temps"/>
1007 <lit-tag v="past"/>
1008 </equal>
1009 </or>
1010 <equal>
1011 <clip pos="1" side="tl" part="a_verb"/>
1012 <lit-tag v="vblex.uns"/>
1013 </equal>
1014 </and>
1015 </test>
1016 <out>
1017 <chunk name="verb">
1018 <tags>
1019 <tag><lit-tag v="V"/></tag>
1020 </tags>
1021 <lu>
1022 <lit v="hê"/>
1023 <lit-tag v="vbhaver"/>
1024 <lit-tag v="pres"/>
1025 </lu>
1026 </chunk>
1027 <b/>
1028 <chunk name="verb_participle">
1029 <tags>
1030 <tag><lit-tag v="V"/></tag>
1031 <tag><lit-tag v="PART"/></tag>
1032 </tags>
1033 <lu>
1034 <clip pos="1" side="tl" part="lemh"/>
1035 <clip pos="1" side="tl" part="a_verb"/>
1036 <lit-tag v="inf"/>
1037 <clip pos="1" side="tl" part="lemq"/>
1038 </lu>
1039 </chunk>
1040 </out>
1041 </when>
1044 <when>
1045 <test>
1046 <or>
1047 <equal>
1048 <clip pos="1" side="tl" part="temps"/>
1049 <lit-tag v="pri"/>
1050 </equal>
1051 <equal>
1052 <clip pos="1" side="tl" part="temps"/>
1053 <lit-tag v="pres"/>
1054 </equal>
1055 </or>
1056 </test>
1057 <out>
1058 <chunk name="verb">
1059 <tags>
1060 <tag><lit-tag v="V"/></tag>
1061 </tags>
1062 <lu>
1063 <clip pos="1" side="tl" part="lemh"/>
1064 <clip pos="1" side="tl" part="a_verb"/>
1065 <lit-tag v="pres"/>
1066 <clip pos="1" side="tl" part="lemq"/>
1067 </lu>
1068 </chunk>
1069 </out>
1070 </when>
1072 <when> <!-- replace gerund with infinitive -->
1073 <test>
1074 <equal>
1075 <clip pos="1" side="tl" part="temps"/>
1076 <lit-tag v="ger"/>
1077 </equal>
1078 </test>
1079 <out>
1080 <chunk name="verb">
1081 <tags>
1082 <tag><lit-tag v="V"/></tag>
1083 </tags>
1084 <lu>
1085 <clip pos="1" side="tl" part="lemh"/>
1086 <clip pos="1" side="tl" part="a_verb"/>
1087 <lit-tag v="inf"/>
1088 <clip pos="1" side="tl" part="lemq"/>
1089 </lu>
1090 </chunk>
1091 </out>
1092 </when>
1095 <otherwise>
1096 <out>
1097 <chunk name="verb">
1098 <tags>
1099 <tag><lit-tag v="V"/></tag>
1100 </tags>
1101 <lu>
1102 <clip pos="1" side="tl" part="lemh"/>
1103 <clip pos="1" side="tl" part="a_verb"/>
1104 <clip pos="1" side="tl" part="temps"/>
1105 <clip pos="1" side="tl" part="lemq"/>
1106 </lu>
1107 </chunk>
1108 </out>
1109 </otherwise>
1110 </choose>
1111 </action>
1112 </rule>
1114 <!-- ^be<vbser><past>$ ^organise<vblex><pp>$ -->
1115 <rule comment="REGLA: VERBNM VERBNM">
1116 <pattern>
1117 <pattern-item n="verbnm"/>
1118 <pattern-item n="verbnm"/>
1119 </pattern>
1120 <action>
1121 <choose>
1122 <when> <!-- I am loved -> Ek word lief gehê. He is hated -> Hy word gehaat. -->
1123 <test> <!-- It is thought that... -> Dit word gedink dat... -->
1124 <and> <!-- is/am/are + <pp> -> word + <pp> -->
1125 <equal>
1126 <clip pos="1" side="sl" part="a_verb"/>
1127 <lit-tag v="vbser"/>
1128 </equal>
1129 <equal>
1130 <clip pos="1" side="sl" part="temps"/>
1131 <lit-tag v="pri"/>
1132 </equal>
1133 <equal>
1134 <clip pos="2" side="tl" part="temps"/>
1135 <lit-tag v="pp"/>
1136 </equal>
1137 </and>
1138 </test>
1139 <out>
1140 <chunk name="verb">
1141 <tags>
1142 <tag><lit-tag v="V"/></tag>
1143 </tags>
1144 <lu>
1145 <lit v="word"/>
1146 <lit-tag v="vblex"/>
1147 <lit-tag v="pres"/>
1148 </lu>
1149 </chunk>
1150 <b/>
1151 <chunk name="verb_participle">
1152 <tags>
1153 <tag><lit-tag v="V"/></tag>
1154 <tag><lit-tag v="PART"/></tag>
1155 </tags>
1156 <lu>
1157 <lit v="ge"/>
1158 </lu>
1159 <lu>
1160 <clip pos="2" side="tl" part="lemh"/>
1161 <clip pos="2" side="tl" part="a_verb"/>
1162 <lit-tag v="inf"/>
1163 <clip pos="2" side="tl" part="lemq"/>
1164 </lu>
1165 </chunk>
1166 </out>
1167 </when>
1169 <when> <!-- If the first verb is a past participle -->
1170 <test>
1171 <equal>
1172 <clip pos="1" side="tl" part="temps"/>
1173 <lit-tag v="pp"/>
1174 </equal>
1175 </test>
1176 <out>
1177 <chunk name="verb">
1178 <tags>
1179 <tag><lit-tag v="V"/></tag>
1180 </tags>
1181 <lu>
1182 <lit v="hê"/>
1183 <lit-tag v="vbhaver"/>
1184 <lit-tag v="pres"/>
1185 </lu>
1186 </chunk>
1187 <b/>
1188 <chunk name="verb_participle">
1189 <tags>
1190 <tag><lit-tag v="V"/></tag>
1191 <tag><lit-tag v="PART"/></tag>
1192 </tags>
1193 <lu>
1194 <lit v="ge"/>
1195 </lu>
1196 <lu>
1197 <clip pos="1" side="tl" part="lemh"/>
1198 <clip pos="1" side="tl" part="a_verb"/>
1199 <lit-tag v="inf"/>
1200 <clip pos="1" side="tl" part="lemq"/>
1201 </lu>
1202 </chunk>
1203 </out>
1204 </when>
1206 <when> <!-- If it is a past participle, the verb 'to be' or in the past -->
1207 <test>
1208 <and>
1209 <equal>
1210 <clip pos="2" side="tl" part="temps"/>
1211 <lit-tag v="pp"/>
1212 </equal>
1213 <equal>
1214 <clip pos="1" side="sl" part="lem"/>
1215 <lit v="be"/>
1216 </equal>
1217 <equal>
1218 <clip pos="1" side="sl" part="temps"/>
1219 <lit-tag v="past"/>
1220 </equal>
1221 </and>
1222 </test>
1223 <out>
1224 <chunk name="verb">
1225 <tags>
1226 <tag><lit-tag v="V"/></tag>
1227 </tags>
1228 <lu>
1229 <clip pos="1" side="tl" part="lemh"/>
1230 <clip pos="1" side="tl" part="a_verb"/>
1231 <clip pos="1" side="tl" part="temps"/>
1232 <clip pos="1" side="tl" part="lemq"/>
1233 </lu>
1234 </chunk>
1235 <b/>
1236 <chunk name="verb_participle">
1237 <tags>
1238 <tag><lit-tag v="V"/></tag>
1239 <tag><lit-tag v="PART"/></tag>
1240 </tags>
1241 <lu>
1242 <lit v="ge"/>
1243 </lu>
1244 <lu>
1245 <clip pos="2" side="tl" part="lemh"/>
1246 <clip pos="2" side="tl" part="a_verb"/>
1247 <lit-tag v="inf"/>
1248 <!-- <clip pos="2" side="tl" part="temps"/> -->
1250 <clip pos="2" side="tl" part="lemq"/>
1251 </lu>
1252 </chunk>
1253 </out>
1254 </when>
1256 <when>
1257 <test>
1258 <equal>
1259 <clip pos="2" side="sl" part="temps"/>
1260 <lit-tag v="pp"/>
1261 </equal>
1262 <equal>
1263 <clip pos="1" side="sl" part="lem"/>
1264 <lit v="be"/>
1265 </equal>
1266 <or>
1267 <equal>
1268 <clip pos="1" side="sl" part="temps"/>
1269 <lit-tag v="pri"/>
1270 </equal>
1271 <equal>
1272 <clip pos="1" side="sl" part="temps"/>
1273 <lit-tag v="pres"/>
1274 </equal>
1275 </or>
1276 </test>
1277 <out>
1278 <chunk name="verb">
1279 <tags>
1280 <tag><lit-tag v="V"/></tag>
1281 </tags>
1282 <lu>
1283 <clip pos="1" side="tl" part="lemh"/>
1284 <clip pos="1" side="tl" part="a_verb"/>
1285 <lit-tag v="pres"/>
1286 <clip pos="1" side="tl" part="lemq"/>
1287 </lu>
1288 </chunk>
1289 <b/>
1290 <chunk name="verb_participle">
1291 <tags>
1292 <tag><lit-tag v="V"/></tag>
1293 <tag><lit-tag v="PART"/></tag>
1294 </tags>
1295 <lu>
1296 <lit v="ge"/>
1297 </lu>
1298 <lu>
1299 <clip pos="2" side="tl" part="lemh"/>
1300 <clip pos="2" side="tl" part="a_verb"/>
1301 <lit-tag v="inf"/>
1302 <clip pos="2" side="tl" part="lemq"/>
1303 <!-- <clip pos="2" side="tl" part="temps"/> -->
1304 </lu>
1305 </chunk>
1306 </out>
1307 </when>
1309 <otherwise>
1310 <out>
1311 <chunk name="verb">
1312 <tags>
1313 <tag><lit-tag v="V"/></tag>
1314 </tags>
1315 <lu>
1316 <clip pos="1" side="tl" part="lemh"/>
1317 <clip pos="1" side="tl" part="a_verb"/>
1318 <clip pos="1" side="tl" part="temps"/>
1319 <clip pos="1" side="tl" part="lemq"/>
1320 </lu>
1321 <b/>
1322 <lu>
1323 <clip pos="2" side="tl" part="lemh"/>
1324 <clip pos="2" side="tl" part="a_verb"/>
1325 <clip pos="2" side="tl" part="temps"/>
1326 <clip pos="2" side="tl" part="lemq"/>
1327 </lu>
1328 </chunk>
1329 </out>
1330 </otherwise>
1331 </choose>
1332 </action>
1333 </rule>
1337 <rule> <!-- REGLA: reset variables-->
1338 <pattern>
1339 <pattern-item n="sent"/>
1340 </pattern>
1341 <action>
1342 <let>
1343 <var n="nombre"/>
1344 <lit-tag v="sg"/>
1345 </let>
1346 <out>
1347 <chunk name="punt">
1348 <tags>
1349 <tag><lit-tag v="sent"/></tag>
1350 </tags>
1351 <lu>
1352 <clip pos="1" side="tl" part="whole"/>
1353 </lu>
1354 </chunk>
1355 </out>
1357 </action>
1358 </rule>
1360 <rule comment="REGLA: NOM (per a collocar la cua en les multiparaules amb g">
1361 <pattern>
1362 <pattern-item n="conj"/>
1363 </pattern>
1364 <action>
1365 <out>
1366 <chunk name="conj" case="caseFirstWord">
1367 <tags>
1368 <tag><lit-tag v="CONJ"/></tag>
1369 </tags>
1370 <lu>
1371 <clip pos="1" side="tl" part="lem"/>
1372 <clip pos="1" side="tl" part="a_conj"/>
1373 </lu>
1374 </chunk>
1375 </out>
1376 </action>
1377 </rule>
1380 </section-rules>
1382 </transfer>