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