Adding a bit
[apertium.git] / apertium-en-de / apertium-en-de.en-de.t1x
blob386257b52e10583a572632a443bcb939d50e68c5
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.def.*"/>
30 </def-cat>
31 <def-cat n="prpers">
32 <cat-item lemma="prpers" tags="prn.*"/>
33 </def-cat>
34 <def-cat n="verbnm"><!--verb no modal -->
35 <cat-item tags="vblex.*"/>
36 <cat-item tags="vbser.*"/>
37 <cat-item tags="vbhaver.*"/>
38 </def-cat>
39 <def-cat n="prep"> <!-- preposition -->
40 <cat-item tags="pr"/>
41 </def-cat>
42 <def-cat n="genitive">
43 <cat-item tags="gen"/>
44 </def-cat>
45 </section-def-cats>
47 <section-def-attrs>
48 <def-attr n="nbr"> <!-- Number -->
49 <attr-item tags="sg"/>
50 <attr-item tags="pl"/>
51 <attr-item tags="sp"/>
52 </def-attr>
53 <def-attr n="gen"> <!-- Gender -->
54 <attr-item tags="m"/>
55 <attr-item tags="f"/>
56 <attr-item tags="mf"/>
57 <attr-item tags="nt"/>
58 </def-attr>
59 <def-attr n="a_conj">
60 <attr-item tags="cnjadv"/>
61 <attr-item tags="cnjsub"/>
62 <attr-item tags="cnjcoo"/>
63 </def-attr>
64 <def-attr n="a_nom">
65 <attr-item tags="n"/>
66 <attr-item tags="n.acr"/>
67 <attr-item tags="n.unc"/>
68 <attr-item tags="np.loc"/>
69 <attr-item tags="np.ant"/>
70 </def-attr>
71 <def-attr n="a_adj">
72 <attr-item tags="adj.sint"/>
73 <attr-item tags="adj"/>
74 <attr-item tags="adj.sint.comp"/>
75 <attr-item tags="adj.sint.sup"/>
76 </def-attr>
77 <def-attr n="a_det">
78 <attr-item tags="det.ind"/>
79 <attr-item tags="det.def"/>
80 <attr-item tags="det.qnt"/>
81 </def-attr>
82 <def-attr n="a_rel">
83 <attr-item tags="rel"/>
84 <attr-item tags="rel.nn"/>
85 <attr-item tags="rel.an"/>
86 </def-attr>
87 <def-attr n="tipus_prn">
88 <attr-item tags="prn.subj"/>
89 <attr-item tags="prn.obj"/>
90 <attr-item tags="prn.tn"/>
91 </def-attr>
92 <def-attr n="pers"> <!-- Person -->
93 <attr-item tags="p1"/>
94 <attr-item tags="p2"/>
95 <attr-item tags="p3"/>
96 </def-attr>
97 <def-attr n="a_verb">
98 <attr-item tags="vblex"/>
99 <attr-item tags="vblex.uns"/>
100 <attr-item tags="vbser"/>
101 <attr-item tags="vbhaver"/>
102 <attr-item tags="vbmod"/>
103 <attr-item tags="vaux"/>
104 </def-attr>
105 <def-attr n="temps">
106 <attr-item tags="pp"/>
107 <attr-item tags="ger"/>
108 <attr-item tags="pii"/>
109 <attr-item tags="pis"/>
110 <attr-item tags="pri"/>
111 <attr-item tags="past"/>
112 <attr-item tags="pres"/>
113 <attr-item tags="inf"/>
114 </def-attr>
115 </section-def-attrs>
117 <section-def-vars>
118 <def-var n="numero"/>
119 <def-var n="caseFirstWord"/>
120 <def-var n="nombre"/>
121 <def-var n="attr-tag-1"/>
122 <def-var n="attr-tag-2"/>
123 <def-var n="pred-tag"/>
124 </section-def-vars>
126 <section-def-macros>
127 <def-macro n="test-if-synthetic-1" npar="1">
128 <choose>
129 <when>
130 <test>
131 <not>
132 <or>
133 <equal>
134 <clip pos="1" side="tl" part="a_adj"/>
135 <lit-tag v="adj.sint.comp"/>
136 </equal>
137 <equal>
138 <clip pos="1" side="tl" part="a_adj"/>
139 <lit-tag v="adj.sint.sup"/>
140 </equal>
141 </or>
142 </not>
143 </test>
144 <let><var n="attr-tag-1"/><lit-tag v="attr"/></let>
145 </when>
146 <otherwise>
147 <let><var n="attr-tag-1"/><lit v=""/></let>
148 </otherwise>
149 </choose>
150 </def-macro>
152 <def-macro n="test-if-synthetic-2" npar="1"> <!-- WHAT AWFUL DUPLICATION. WE'LL FIND A BETTER WAY YET. -->
153 <choose>
154 <when>
155 <test>
156 <not>
157 <or>
158 <equal>
159 <clip pos="1" side="tl" part="a_adj"/>
160 <lit-tag v="adj.sint.comp"/>
161 </equal>
162 <equal>
163 <clip pos="1" side="tl" part="a_adj"/>
164 <lit-tag v="adj.sint.sup"/>
165 </equal>
166 </or>
167 </not>
168 </test>
169 <let><var n="attr-tag-2"/><lit-tag v="attr"/></let>
170 </when>
171 <otherwise>
172 <let><var n="attr-tag-2"/><lit v=""/></let>
173 </otherwise>
174 </choose>
175 </def-macro>
176 </section-def-macros>
178 <section-rules>
179 <rule comment="REGLA: NOM (per a collocar la cua en les multiparaules amb g">
180 <pattern>
181 <pattern-item n="nom"/>
182 </pattern>
183 <action>
184 <out>
185 <chunk name="nom" case="caseFirstWord">
186 <tags>
187 <tag><lit-tag v="NP"/></tag>
188 <tag><clip pos="1" side="tl" part="nbr"/></tag>
189 </tags>
190 <lu>
191 <clip pos="1" side="tl" part="lem"/>
192 <clip pos="1" side="tl" part="a_nom"/>
193 <clip pos="1" side="tl" part="nbr"/>
194 </lu>
195 </chunk>
196 </out>
197 </action>
198 </rule>
200 <rule comment="REGLA: PRPERS">
201 <pattern>
202 <pattern-item n="prpers"/>
203 </pattern>
204 <action>
205 <modify-case>
206 <clip pos="1" side="tl" part="lem"/>
207 <lit v="Aa"/>
208 </modify-case>
209 <out>
210 <chunk name="prpers">
211 <tags>
212 <tag><lit-tag v="PRN"/></tag>
213 </tags>
214 <lu>
215 <clip pos="1" side="tl" part="lem"/>
216 <clip pos="1" side="tl" part="tipus_prn"/>
217 <clip pos="1" side="tl" part="pers"/>
218 <clip pos="1" side="tl" part="gen"/>
219 <clip pos="1" side="tl" part="nbr"/>
220 </lu>
221 </chunk>
222 </out>
223 </action>
224 </rule>
226 <rule comment="REGLA: DET NOM GENITIVE">
227 <pattern>
228 <pattern-item n="det"/>
229 <pattern-item n="nom"/>
230 <pattern-item n="genitive"/>
231 </pattern>
232 <action>
233 <out>
234 <chunk name="det_nom_gen" case="caseFirstWord">
235 <tags>
236 <tag><lit-tag v="NP"/></tag>
237 <tag><clip pos="2" side="sl" part="gen"/></tag>
238 <tag><var n="nombre"/></tag>
239 </tags>
240 <lu>
241 <clip pos="1" side="tl" part="lem"/>
242 <clip pos="1" side="tl" part="a_det"/>
243 <clip pos="2" side="tl" part="nbr"/>
244 </lu>
245 <b pos="1"/>
246 <lu>
247 <clip pos="2" side="tl" part="lemh"/>
248 <clip pos="2" side="tl" part="a_nom"/>
249 <clip pos="2" side="tl" part="nbr"/>
250 <clip pos="2" side="tl" part="lemq"/>
251 </lu>
252 <b/>
253 <lu>
254 <clip pos="3" side="tl" part="lemh"/>
255 <lit-tag v="gen"/>
256 </lu>
257 </chunk>
258 </out>
259 <let>
260 <var n="caseFirstWord"/>
261 <lit v="aa"/>
262 </let>
263 </action>
264 </rule>
267 <rule comment="REGLA: DET NOM">
268 <pattern>
269 <pattern-item n="det"/>
270 <pattern-item n="nom"/>
271 </pattern>
272 <action>
273 <out>
274 <chunk name="det_nom" case="caseFirstWord">
275 <tags>
276 <tag><lit-tag v="NP"/></tag>
277 <tag><clip pos="2" side="sl" part="gen"/></tag>
278 <tag><var n="nombre"/></tag>
279 </tags>
280 <lu>
281 <clip pos="1" side="tl" part="lem"/>
282 <clip pos="1" side="tl" part="a_det"/>
283 <clip pos="2" side="tl" part="nbr"/>
284 </lu>
285 <b pos="1"/>
286 <lu>
287 <clip pos="2" side="tl" part="lemh"/>
288 <clip pos="2" side="tl" part="a_nom"/>
289 <clip pos="2" side="tl" part="nbr"/>
290 <clip pos="2" side="tl" part="lemq"/>
291 </lu>
292 </chunk>
293 </out>
294 <let>
295 <var n="caseFirstWord"/>
296 <lit v="aa"/>
297 </let>
298 </action>
299 </rule>
301 <rule comment="REGLA: DET NOM NOM">
302 <pattern>
303 <pattern-item n="det"/>
304 <pattern-item n="nom"/>
305 <pattern-item n="nom"/>
306 </pattern>
307 <action>
308 <out>
309 <chunk name="det_nom_nom" case="caseFirstWord">
310 <tags>
311 <tag><lit-tag v="NP"/></tag>
312 <tag><clip pos="2" side="sl" part="gen"/></tag>
313 <tag><var n="nombre"/></tag>
314 </tags>
315 <lu>
316 <clip pos="1" side="tl" part="lem"/>
317 <clip pos="1" side="tl" part="a_det"/>
318 <clip pos="2" side="tl" part="nbr"/>
319 </lu>
320 <b pos="1"/>
321 <lu>
322 <clip pos="2" side="tl" part="lemh"/>
323 <clip pos="2" side="tl" part="a_nom"/>
324 <clip pos="2" side="tl" part="nbr"/>
325 <clip pos="2" side="tl" part="lemq"/>
326 </lu>
327 <b pos="1"/>
328 <lu>
329 <clip pos="3" side="tl" part="lemh"/>
330 <clip pos="3" side="tl" part="a_nom"/>
331 <clip pos="3" side="tl" part="nbr"/>
332 <clip pos="3" side="tl" part="lemq"/>
333 </lu>
334 </chunk>
335 </out>
336 <let>
337 <var n="caseFirstWord"/>
338 <lit v="aa"/>
339 </let>
340 </action>
341 </rule>
344 <rule comment="REGLA: DET ADJ NOM GEN">
345 <pattern>
346 <pattern-item n="det"/>
347 <pattern-item n="adj"/>
348 <pattern-item n="nom"/>
349 <pattern-item n="genitive"/>
350 </pattern>
351 <action>
352 <call-macro n="test-if-synthetic-1">
353 <with-param pos="2"/>
354 </call-macro>
355 <out>
356 <chunk name="det_adj_nom" case="caseFirstWord">
357 <tags>
358 <tag><lit-tag v="NP"/></tag>
359 <tag><clip pos="2" side="sl" part="gen"/></tag>
360 <tag><var n="nombre"/></tag>
361 </tags>
362 <lu>
363 <clip pos="1" side="tl" part="lem"/>
364 <clip pos="1" side="tl" part="a_det"/>
365 <clip pos="1" side="tl" part="nbr"/>
366 </lu>
367 <b pos="1"/>
368 <lu>
369 <clip pos="2" side="tl" part="lem"/>
370 <clip pos="2" side="tl" part="a_adj"/>
371 <var n="attr-tag-1"/>
372 </lu>
373 <b pos="1"/>
374 <lu>
375 <clip pos="3" side="tl" part="lemh"/>
376 <clip pos="3" side="tl" part="a_nom"/>
377 <clip pos="3" side="tl" part="nbr"/>
378 <clip pos="3" side="tl" part="lemq"/>
379 </lu>
380 <b/>
381 <lu>
382 <clip pos="4" side="tl" part="lem"/>
383 <lit-tag v="gen"/>
384 </lu>
385 </chunk>
386 </out>
387 <let>
388 <var n="caseFirstWord"/>
389 <lit v="aa"/>
390 </let>
391 </action>
392 </rule>
394 <rule comment="REGLA: DET ADJ NOM">
395 <pattern>
396 <pattern-item n="det"/>
397 <pattern-item n="adj"/>
398 <pattern-item n="nom"/>
399 </pattern>
400 <action>
401 <call-macro n="test-if-synthetic-1">
402 <with-param pos="2"/>
403 </call-macro>
404 <out>
405 <chunk name="det_adj_nom" case="caseFirstWord">
406 <tags>
407 <tag><lit-tag v="NP"/></tag>
408 <tag><clip pos="2" side="sl" part="gen"/></tag>
409 <tag><var n="nombre"/></tag>
410 </tags>
411 <lu>
412 <clip pos="1" side="tl" part="lem"/>
413 <clip pos="1" side="tl" part="a_det"/>
414 <clip pos="1" side="tl" part="nbr"/>
415 </lu>
416 <b pos="1"/>
417 <lu>
418 <clip pos="2" side="tl" part="lem"/>
419 <clip pos="2" side="tl" part="a_adj"/>
420 <var n="attr-tag-1"/>
421 </lu>
422 <b pos="1"/>
423 <lu>
424 <clip pos="3" side="tl" part="lemh"/>
425 <clip pos="3" side="tl" part="a_nom"/>
426 <clip pos="3" side="tl" part="nbr"/>
427 <clip pos="3" side="tl" part="lemq"/>
428 </lu>
429 </chunk>
430 </out>
431 <let>
432 <var n="caseFirstWord"/>
433 <lit v="aa"/>
434 </let>
435 </action>
436 </rule>
438 <rule comment="REGLA: ADJ NOM">
439 <pattern>
440 <pattern-item n="adj"/>
441 <pattern-item n="nom"/>
442 </pattern>
443 <action>
444 <call-macro n="test-if-synthetic-1">
445 <with-param pos="1"/>
446 </call-macro>
447 <out>
448 <chunk name="adj_nom" case="caseFirstWord">
449 <tags>
450 <tag><lit-tag v="NP"/></tag>
451 <tag><clip pos="2" side="sl" part="gen"/></tag>
452 <tag><var n="nombre"/></tag>
453 </tags>
454 <lu>
455 <clip pos="1" side="tl" part="lem"/>
456 <clip pos="1" side="tl" part="a_adj"/>
457 <var n="attr-tag-1"/>
458 </lu>
459 <b/>
460 <lu>
461 <clip pos="2" side="tl" part="lem"/>
462 <clip pos="2" side="tl" part="a_nom"/>
463 <clip pos="2" side="tl" part="nbr"/>
464 </lu>
465 </chunk>
466 </out>
467 </action>
468 </rule>
470 <rule comment="REGLA: NOM GENITIVE">
471 <pattern>
472 <pattern-item n="nom"/>
473 <pattern-item n="genitive"/>
474 </pattern>
475 <action>
476 <out>
477 <chunk name="nom_gen" case="caseFirstWord">
478 <tags>
479 <tag><lit-tag v="SN.UNDET"/></tag>
480 <tag><clip pos="1" side="tl" part="gen"/></tag>
481 <tag><clip pos="1" side="tl" part="nbr"/></tag>
482 </tags>
483 <lu>
484 <clip pos="1" side="tl" part="lemh"/>
485 <clip pos="1" side="tl" part="a_nom"/>
486 <clip pos="1" side="tl" part="nbr"/>
487 <clip pos="1" side="tl" part="lemq"/>
488 </lu>
489 <b/>
490 <lu>
491 <clip pos="2" side="tl" part="lem"/>
492 <lit-tag v="gen"/>
493 </lu>
494 </chunk>
495 </out>
496 <let>
497 <var n="caseFirstWord"/>
498 <lit v="aa"/>
499 </let>
500 </action>
501 </rule>
503 <rule comment="REGLA: ADJ CONJ ADJ NOM">
504 <pattern>
505 <pattern-item n="adj"/>
506 <pattern-item n="conj"/>
507 <pattern-item n="adj"/>
508 <pattern-item n="nom"/>
509 </pattern>
510 <action>
511 <call-macro n="test-if-synthetic-1">
512 <with-param pos="1"/>
513 </call-macro>
514 <call-macro n="test-if-synthetic-2">
515 <with-param pos="3"/>
516 </call-macro>
517 <out>
518 <chunk name="adj_conj_adj" case="caseFirstWord">
519 <tags>
520 <tag><lit-tag v="ADJP"/></tag>
521 </tags>
522 <lu>
523 <clip pos="1" side="tl" part="lem"/>
524 <clip pos="1" side="tl" part="a_adj"/>
525 <var n="attr-tag-1"/>
526 </lu>
527 <b/>
528 <lu>
529 <clip pos="2" side="tl" part="lem"/>
530 <clip pos="2" side="tl" part="a_conj"/>
531 </lu>
532 <b/>
533 <lu>
534 <clip pos="3" side="tl" part="lem"/>
535 <clip pos="3" side="tl" part="a_adj"/>
536 <var n="attr-tag-2"/>
537 </lu>
538 <b/>
539 <lu>
540 <clip pos="4" side="tl" part="lem"/>
541 <clip pos="4" side="tl" part="a_nom"/>
542 <clip pos="4" side="tl" part="nbr"/>
543 </lu>
544 </chunk>
545 </out>
546 </action>
547 </rule>
549 <rule comment="REGLA: ADJ CONJ ADJ">
550 <pattern>
551 <pattern-item n="adj"/>
552 <pattern-item n="conj"/>
553 <pattern-item n="adj"/>
554 </pattern>
555 <action>
556 <out>
557 <chunk name="adj_conj_adj" case="caseFirstWord">
558 <tags>
559 <tag><lit-tag v="ADJP"/></tag>
560 </tags>
561 <lu>
562 <clip pos="1" side="tl" part="lem"/>
563 <clip pos="1" side="tl" part="a_adj"/>
564 <lit-tag v="pred"/>
565 </lu>
566 <b/>
567 <lu>
568 <clip pos="2" side="tl" part="lem"/>
569 <clip pos="2" side="tl" part="a_conj"/>
570 </lu>
571 <b/>
572 <lu>
573 <clip pos="3" side="tl" part="lem"/>
574 <clip pos="3" side="tl" part="a_adj"/>
575 <lit-tag v="pred"/>
576 </lu>
577 </chunk>
578 </out>
579 </action>
580 </rule>
583 <rule comment="REGLA: ADJ ADJ NOM">
584 <pattern>
585 <pattern-item n="adj"/>
586 <pattern-item n="adj"/>
587 <pattern-item n="nom"/>
588 </pattern>
589 <action>
590 <call-macro n="test-if-synthetic-1">
591 <with-param pos="1"/>
592 </call-macro>
593 <call-macro n="test-if-synthetic-2">
594 <with-param pos="2"/>
595 </call-macro>
596 <out>
597 <chunk name="adj_nom" case="caseFirstWord">
598 <tags>
599 <tag><lit-tag v="NP"/></tag>
600 <tag><clip pos="2" side="sl" part="gen"/></tag>
601 <tag><var n="nombre"/></tag>
602 </tags>
603 <lu>
604 <clip pos="1" side="tl" part="lem"/>
605 <clip pos="1" side="tl" part="a_adj"/>
606 <var n="attr-tag-1"/>
607 </lu>
608 <b/>
609 <lu>
610 <clip pos="2" side="tl" part="lem"/>
611 <clip pos="2" side="tl" part="a_adj"/>
612 <var n="attr-tag-2"/>
613 </lu>
614 <b/>
615 <lu>
616 <clip pos="3" side="tl" part="lem"/>
617 <clip pos="3" side="tl" part="a_nom"/>
618 <clip pos="3" side="tl" part="nbr"/>
619 </lu>
620 </chunk>
621 </out>
622 </action>
623 </rule>
626 <rule comment="REGLA: PR">
627 <pattern>
628 <pattern-item n="prep"/>
629 </pattern>
630 <action>
631 <out>
632 <chunk name="pr">
633 <tags>
634 <tag><lit-tag v="PR"/></tag>
635 </tags>
636 <lu>
637 <clip pos="1" side="tl" part="lem"/>
638 <lit-tag v="pr"/>
639 </lu>
640 </chunk>
641 </out>
642 </action>
643 </rule>
646 <rule comment="REGLA: REL">
647 <pattern>
648 <pattern-item n="rel_prn"/>
649 </pattern>
650 <action>
651 <out>
652 <chunk name="rel">
653 <tags>
654 <tag><lit-tag v="REL"/></tag>
655 <tag><lit-tag v="PRN"/></tag>
656 </tags>
657 <lu>
658 <clip pos="1" side="tl" part="lem"/>
659 <clip pos="1" side="tl" part="a_rel"/>
660 <clip pos="1" side="tl" part="gen"/>
661 <clip pos="1" side="tl" part="nbr"/>
662 </lu>
663 </chunk>
664 </out>
665 </action>
666 </rule>
669 <rule comment="REGLA: ADJ">
670 <pattern>
671 <pattern-item n="adj"/>
672 </pattern>
673 <action>
674 <choose>
675 <when>
676 <test>
677 <not>
678 <or>
679 <equal>
680 <clip pos="1" side="tl" part="a_adj"/>
681 <lit-tag v="adj.sint.comp"/>
682 </equal>
683 <equal>
684 <clip pos="1" side="tl" part="a_adj"/>
685 <lit-tag v="adj.sint.sup"/>
686 </equal>
687 </or>
688 </not>
689 </test>
690 <let><var n="pred-tag"/><lit-tag v="pred"/></let> <!-- comp and sup adjectives are never marked with pred -->
691 </when>
692 <otherwise>
693 <let><var n="pred-tag"/><lit v=""/></let>
694 </otherwise>
695 </choose>
698 <out>
699 <chunk name="adj">
700 <tags>
701 <tag><lit-tag v="ADJ"/></tag>
702 </tags>
703 <lu>
704 <clip pos="1" side="tl" part="lem"/>
705 <clip pos="1" side="tl" part="a_adj"/>
706 <var n="pred-tag"/>
708 <!--<lit-tag v="pred"/>-->
709 </lu>
710 </chunk>
711 </out>
712 </action>
713 </rule>
715 <rule>
716 <pattern>
717 <pattern-item n="nom"/>
718 </pattern>
719 <action>
720 <out>
721 <lu>
722 <clip pos="1" side="tl" part="lem"/>
723 <clip pos="1" side="tl" part="a_nom"/>
724 <clip pos="1" side="tl" part="nbr"/>
725 </lu>
726 </out>
727 </action>
728 </rule>
731 <rule comment="REGLA: VERBNM">
732 <pattern>
733 <pattern-item n="verbnm"/>
734 </pattern>
735 <action>
736 <choose>
738 <when>
739 <test> <!-- If it is third person singular in the present tense -->
740 <and>
741 <or>
742 <equal>
743 <clip pos="1" side="tl" part="temps"/>
744 <lit-tag v="pp"/>
745 </equal>
746 <equal>
747 <clip pos="1" side="tl" part="temps"/>
748 <lit-tag v="past"/>
749 </equal>
750 </or>
751 <not>
752 <equal>
753 <clip pos="1" side="tl" part="a_verb"/>
754 <lit-tag v="vblex.uns"/>
755 </equal>
756 </not>
757 <not>
758 <equal>
759 <clip pos="1" side="tl" part="lem"/>
760 <lit v="wees"/> <!-- be is a special case -->
761 </equal>
762 </not>
763 </and>
764 </test>
765 <out>
766 <chunk name="verb">
767 <tags>
768 <tag><lit-tag v="V"/></tag>
769 </tags>
770 <lu>
771 <lit v="hĂȘ"/>
772 <lit-tag v="vbhaver"/>
773 <lit-tag v="pres"/>
774 </lu>
775 </chunk>
776 <b/>
777 <chunk name="verb_participle">
778 <tags>
779 <tag><lit-tag v="V"/></tag>
780 <tag><lit-tag v="PART"/></tag>
781 </tags>
782 <lu>
783 <lit v="ge"/>
784 </lu>
785 <lu>
786 <clip pos="1" side="tl" part="lem"/>
787 <clip pos="1" side="tl" part="a_verb"/>
788 <lit-tag v="inf"/>
789 <!-- <clip pos="1" side="tl" part="temps"/> -->
790 </lu>
791 </chunk>
792 </out>
793 </when>
795 <when>
796 <test> <!-- If it is third person singular in the present tense -->
797 <and>
798 <or>
799 <equal>
800 <clip pos="1" side="tl" part="temps"/>
801 <lit-tag v="pp"/>
802 </equal>
803 <equal>
804 <clip pos="1" side="tl" part="temps"/>
805 <lit-tag v="past"/>
806 </equal>
807 </or>
808 <equal>
809 <clip pos="1" side="tl" part="a_verb"/>
810 <lit-tag v="vblex.uns"/>
811 </equal>
812 </and>
813 </test>
814 <out>
815 <chunk name="verb">
816 <tags>
817 <tag><lit-tag v="V"/></tag>
818 </tags>
819 <lu>
820 <lit v="hĂȘ"/>
821 <lit-tag v="vbhaver"/>
822 <lit-tag v="pres"/>
823 </lu>
824 </chunk>
825 <b/>
826 <chunk name="verb_participle">
827 <tags>
828 <tag><lit-tag v="V"/></tag>
829 <tag><lit-tag v="PART"/></tag>
830 </tags>
831 <lu>
832 <clip pos="1" side="tl" part="lem"/>
833 <clip pos="1" side="tl" part="a_verb"/>
834 <lit-tag v="inf"/>
835 </lu>
836 </chunk>
837 </out>
838 </when>
841 <when>
842 <test>
843 <or>
844 <equal>
845 <clip pos="1" side="tl" part="temps"/>
846 <lit-tag v="pri"/>
847 </equal>
848 <equal>
849 <clip pos="1" side="tl" part="temps"/>
850 <lit-tag v="pres"/>
851 </equal>
852 </or>
853 </test>
854 <out>
855 <chunk name="verb">
856 <tags>
857 <tag><lit-tag v="V"/></tag>
858 </tags>
859 <lu>
860 <clip pos="1" side="tl" part="lem"/>
861 <clip pos="1" side="tl" part="a_verb"/>
862 <lit-tag v="pres"/>
863 </lu>
864 </chunk>
865 </out>
866 </when>
868 <when> <!-- replace gerund with infinitive -->
869 <test>
870 <equal>
871 <clip pos="1" side="tl" part="temps"/>
872 <lit-tag v="ger"/>
873 </equal>
874 </test>
875 <out>
876 <chunk name="verb">
877 <tags>
878 <tag><lit-tag v="V"/></tag>
879 </tags>
880 <lu>
881 <lit v="om te"/>
882 <lit-tag v="pr"/>
883 </lu>
884 <b/>
885 <lu>
886 <clip pos="1" side="tl" part="lem"/>
887 <clip pos="1" side="tl" part="a_verb"/>
888 <lit-tag v="inf"/>
889 </lu>
890 </chunk>
891 </out>
892 </when>
895 <otherwise>
896 <out>
897 <chunk name="verb">
898 <tags>
899 <tag><lit-tag v="V"/></tag>
900 </tags>
901 <lu>
902 <clip pos="1" side="tl" part="lem"/>
903 <clip pos="1" side="tl" part="a_verb"/>
904 <clip pos="1" side="tl" part="temps"/>
905 </lu>
906 </chunk>
907 </out>
908 </otherwise>
909 </choose>
910 </action>
911 </rule>
913 <!-- ^be<vbser><past>$ ^organise<vblex><pp>$ -->
914 <rule comment="REGLA: VERBNM VERBNM">
915 <pattern>
916 <pattern-item n="verbnm"/>
917 <pattern-item n="verbnm"/>
918 </pattern>
919 <action>
920 <choose>
921 <when> <!-- If the first verb is a past participle -->
922 <test>
923 <equal>
924 <clip pos="1" side="tl" part="temps"/>
925 <lit-tag v="pp"/>
926 </equal>
927 </test>
928 <out>
929 <chunk name="verb">
930 <tags>
931 <tag><lit-tag v="V"/></tag>
932 </tags>
933 <lu>
934 <lit v="hĂȘ"/>
935 <lit-tag v="vbhaver"/>
936 <lit-tag v="pres"/>
937 </lu>
938 </chunk>
939 <b/>
940 <chunk name="verb_participle">
941 <tags>
942 <tag><lit-tag v="V"/></tag>
943 <tag><lit-tag v="PART"/></tag>
944 </tags>
945 <lu>
946 <lit v="ge"/>
947 </lu>
948 <lu>
949 <clip pos="1" side="tl" part="lem"/>
950 <clip pos="1" side="tl" part="a_verb"/>
951 <lit-tag v="inf"/>
952 </lu>
953 </chunk>
954 </out>
955 </when>
957 <when> <!-- If it is a past participle, the verb 'to be' or in the past -->
958 <test>
959 <and>
960 <equal>
961 <clip pos="2" side="tl" part="temps"/>
962 <lit-tag v="pp"/>
963 </equal>
964 <equal>
965 <clip pos="1" side="sl" part="lem"/>
966 <lit v="be"/>
967 </equal>
968 <equal>
969 <clip pos="1" side="sl" part="temps"/>
970 <lit-tag v="past"/>
971 </equal>
972 </and>
973 </test>
974 <out>
975 <chunk name="verb">
976 <tags>
977 <tag><lit-tag v="V"/></tag>
978 </tags>
979 <lu>
980 <clip pos="1" side="tl" part="lem"/>
981 <clip pos="1" side="tl" part="a_verb"/>
982 <clip pos="1" side="tl" part="temps"/>
983 </lu>
984 </chunk>
985 <b/>
986 <chunk name="verb_participle">
987 <tags>
988 <tag><lit-tag v="V"/></tag>
989 <tag><lit-tag v="PART"/></tag>
990 </tags>
991 <lu>
992 <lit v="ge"/>
993 </lu>
994 <lu>
995 <clip pos="2" side="tl" part="lem"/>
996 <clip pos="2" side="tl" part="a_verb"/>
997 <lit-tag v="inf"/>
998 <!-- <clip pos="2" side="tl" part="temps"/> -->
999 </lu>
1000 </chunk>
1001 </out>
1002 </when>
1004 <when>
1005 <test>
1006 <equal>
1007 <clip pos="2" side="sl" part="temps"/>
1008 <lit-tag v="pp"/>
1009 </equal>
1010 <equal>
1011 <clip pos="1" side="sl" part="lem"/>
1012 <lit v="be"/>
1013 </equal>
1014 <or>
1015 <equal>
1016 <clip pos="1" side="sl" part="temps"/>
1017 <lit-tag v="pri"/>
1018 </equal>
1019 <equal>
1020 <clip pos="1" side="sl" part="temps"/>
1021 <lit-tag v="pres"/>
1022 </equal>
1023 </or>
1024 </test>
1025 <out>
1026 <chunk name="verb">
1027 <tags>
1028 <tag><lit-tag v="V"/></tag>
1029 </tags>
1030 <lu>
1031 <clip pos="1" side="tl" part="lem"/>
1032 <clip pos="1" side="tl" part="a_verb"/>
1033 <lit-tag v="pres"/>
1034 </lu>
1035 </chunk>
1036 <b/>
1037 <chunk name="verb_participle">
1038 <tags>
1039 <tag><lit-tag v="V"/></tag>
1040 <tag><lit-tag v="PART"/></tag>
1041 </tags>
1042 <lu>
1043 <lit v="ge"/>
1044 </lu>
1045 <lu>
1046 <clip pos="2" side="tl" part="lem"/>
1047 <clip pos="2" side="tl" part="a_verb"/>
1048 <lit-tag v="inf"/>
1049 <!-- <clip pos="2" side="tl" part="temps"/> -->
1050 </lu>
1051 </chunk>
1052 </out>
1053 </when>
1055 <otherwise>
1056 <out>
1057 <chunk name="verb">
1058 <tags>
1059 <tag><lit-tag v="V"/></tag>
1060 </tags>
1061 <lu>
1062 <clip pos="1" side="tl" part="lem"/>
1063 <clip pos="1" side="tl" part="a_verb"/>
1064 <clip pos="1" side="tl" part="temps"/>
1065 </lu>
1066 <b/>
1067 <lu>
1068 <clip pos="2" side="tl" part="lem"/>
1069 <clip pos="2" side="tl" part="a_verb"/>
1070 <clip pos="2" side="tl" part="temps"/>
1071 </lu>
1072 </chunk>
1073 </out>
1074 </otherwise>
1075 </choose>
1076 </action>
1077 </rule>
1081 <rule> <!-- REGLA: reset variables-->
1082 <pattern>
1083 <pattern-item n="sent"/>
1084 </pattern>
1085 <action>
1086 <let>
1087 <var n="nombre"/>
1088 <lit-tag v="sg"/>
1089 </let>
1090 <out>
1091 <chunk name="punt">
1092 <tags>
1093 <tag><lit-tag v="sent"/></tag>
1094 </tags>
1095 <lu>
1096 <clip pos="1" side="tl" part="whole"/>
1097 </lu>
1098 </chunk>
1099 </out>
1101 </action>
1102 </rule>
1104 <rule comment="REGLA: NOM (per a collocar la cua en les multiparaules amb g">
1105 <pattern>
1106 <pattern-item n="conj"/>
1107 </pattern>
1108 <action>
1109 <out>
1110 <chunk name="conj" case="caseFirstWord">
1111 <tags>
1112 <tag><lit-tag v="CONJ"/></tag>
1113 </tags>
1114 <lu>
1115 <clip pos="1" side="tl" part="lem"/>
1116 <clip pos="1" side="tl" part="a_conj"/>
1117 </lu>
1118 </chunk>
1119 </out>
1120 </action>
1121 </rule>
1124 </section-rules>
1126 </transfer>