ergar
[apertium.git] / apertium-tr-az / apertium-tr-az.az-tr.t1x
blob6cc08cc44e131a0058d16c43f1e8fcdbb07c9814
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="sent"/>
67 <cat-item tags="cm"/>
68 <cat-item tags="rpar"/>
69 </def-cat>
70 <def-cat n="prefix">
71 <cat-item tags="pref"/>
72 <cat-item tags="pref.*"/>
73 </def-cat>
74 <def-cat n="attachable_prefix">
75 <cat-item tags="pr.atp"/>
76 </def-cat>
77 <def-cat n="hyphen">
78 <cat-item tags="guio"/>
79 </def-cat>
80 </section-def-cats>
82 <section-def-attrs>
83 <def-attr n="nbr"> <!-- Number -->
84 <attr-item tags="sg"/>
85 <attr-item tags="pl"/>
86 <attr-item tags="sp"/>
87 </def-attr>
88 <def-attr n="gen"> <!-- Gender -->
89 <attr-item tags="f"/>
90 <attr-item tags="m"/>
91 <attr-item tags="mf"/>
92 <attr-item tags="nt"/>
93 </def-attr>
94 <def-attr n="a_prep">
95 <attr-item tags="pr"/>
96 </def-attr>
97 <def-attr n="a_cnj">
98 <attr-item tags="cnjadv"/>
99 <attr-item tags="cnjcoo"/>
100 <attr-item tags="cnjsub"/>
101 </def-attr>
102 <def-attr n="a_nom">
103 <attr-item tags="n"/>
104 <attr-item tags="n.acr"/>
105 <attr-item tags="n.unc"/>
106 <attr-item tags="np.loc"/>
107 </def-attr>
108 <def-attr n="a_adj">
109 <attr-item tags="adj"/>
110 <attr-item tags="adj.sint"/>
111 <attr-item tags="adj.sint.comp"/>
112 <attr-item tags="adj.sint.sup"/>
113 </def-attr>
114 <def-attr n="a_det">
115 <attr-item tags="det.ind"/>
116 <attr-item tags="det.def"/>
117 <attr-item tags="det.dem"/>
118 <attr-item tags="det"/>
119 </def-attr>
120 <def-attr n="a_preadv">
121 <attr-item tags="preadv"/>
122 </def-attr>
123 <def-attr n="a_adv">
124 <attr-item tags="adv.itg"/>
125 <attr-item tags="adv"/>
126 </def-attr>
127 <def-attr n="a_num">
128 <attr-item tags="num"/>
129 </def-attr>
130 <def-attr n="tipus_prn">
131 <attr-item tags="prn.subj"/>
132 <attr-item tags="prn.obj"/>
133 <attr-item tags="prn.itg"/>
134 <attr-item tags="prn.tn"/>
135 <attr-item tags="prn.pos"/>
136 <attr-item tags="prn"/>
137 </def-attr>
138 <def-attr n="pers"> <!-- Person -->
139 <attr-item tags="p1"/>
140 <attr-item tags="p2"/>
141 <attr-item tags="p3"/>
142 </def-attr>
143 <def-attr n="a_verb">
144 <attr-item tags="vblex"/>
145 <attr-item tags="vbser"/>
146 <attr-item tags="vbhaver"/>
147 <attr-item tags="vbmod"/>
148 <attr-item tags="vaux"/>
149 </def-attr>
150 <def-attr n="a_atp">
151 <attr-item tags="pr.atp"/>
152 <attr-item tags="pr"/>
153 <attr-item tags="adv"/>
154 </def-attr>
155 <def-attr n="temps">
156 <attr-item tags="pii"/>
157 <attr-item tags="pis"/>
158 <attr-item tags="pri"/>
159 <attr-item tags="past"/>
160 <attr-item tags="pres"/>
161 <attr-item tags="inf"/>
162 </def-attr>
163 </section-def-attrs>
166 <section-def-vars>
167 <def-var n="numero"/>
168 <def-var n="genere"/>
169 <def-var n="nombre"/>
170 <def-var n="caseFirstWord"/>
171 <def-var n="EOS"/>
172 </section-def-vars>
174 <section-def-macros>
175 <def-macro n="firstWord" npar="1">
176 <choose>
177 <when>
178 <test>
179 <equal>
180 <clip pos="1" side="sl" part="a_np_acr"/>
181 <lit v=""/>
182 </equal>
183 </test>
184 <choose>
185 <when>
186 <test>
187 <equal>
188 <var n="EOS"/>
189 <lit v="true"/>
190 </equal>
191 </test>
192 <modify-case>
193 <clip pos="1" side="tl" part="lem"/>
194 <lit v="aa"/>
195 </modify-case>
196 <let>
197 <var n="caseFirstWord"/>
198 <lit v="Aa"/>
199 </let>
200 </when>
201 </choose>
202 </when>
203 <otherwise>
204 <let>
205 <var n="caseFirstWord"/>
206 <lit v="aa"/>
207 </let>
208 </otherwise>
209 </choose>
210 <let>
211 <var n="EOS"/>
212 <lit v="false"/>
213 </let>
214 </def-macro>
216 </section-def-macros>
217 <section-rules>
218 <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>
219 <pattern-item n="nom"/>
220 </pattern>
221 <action>
222 <call-macro n="firstWord">
223 <with-param pos="1"/>
224 </call-macro>
225 <out>
226 <chunk name="nom" case="caseFirstWord">
227 <tags>
228 <tag><lit-tag v="SN.UNDET"/></tag>
229 <tag><clip pos="1" side="tl" part="gen"/></tag>
230 <tag><clip pos="1" side="tl" part="nbr"/></tag>
231 </tags>
232 <lu>
233 <clip pos="1" side="tl" part="lemh"/>
234 <clip pos="1" side="tl" part="a_nom"/>
235 <clip pos="1" side="tl" part="nbr"/>
236 <clip pos="1" side="tl" part="lemq"/>
237 </lu>
238 </chunk>
239 </out>
240 <let>
241 <var n="caseFirstWord"/>
242 <lit v="aa"/>
243 </let>
244 </action>
245 </rule>
247 <rule comment="REGLA: NOM GUIO NOM">
248 <pattern>
249 <pattern-item n="nom"/>
250 <pattern-item n="hyphen"/>
251 <pattern-item n="nom"/>
252 </pattern>
253 <action>
254 <call-macro n="firstWord">
255 <with-param pos="1"/>
256 </call-macro>
257 <out>
258 <chunk name="nom" case="caseFirstWord">
259 <tags>
260 <tag><lit-tag v="SN.UNDET"/></tag>
261 <tag><clip pos="1" side="tl" part="gen"/></tag>
262 <tag><clip pos="1" side="tl" part="nbr"/></tag>
263 </tags>
264 <lu>
265 <clip pos="1" side="tl" part="lemh"/>
266 <clip pos="1" side="tl" part="a_nom"/>
267 <clip pos="1" side="tl" part="nbr"/>
268 <clip pos="1" side="tl" part="lemq"/>
269 </lu>
270 <lu>
271 <clip pos="2" side="tl" part="lem"/>
272 <lit-tag v="guio"/>
273 </lu>
274 <lu>
275 <clip pos="3" side="tl" part="lemh"/>
276 <clip pos="3" side="tl" part="a_nom"/>
277 <clip pos="3" side="tl" part="nbr"/>
278 <clip pos="3" side="tl" part="lemq"/>
279 </lu>
280 </chunk>
281 </out>
282 <let>
283 <var n="caseFirstWord"/>
284 <lit v="aa"/>
285 </let>
286 </action>
287 </rule>
289 <rule comment="REGLA: DET NOM GUIO NOM">
290 <pattern>
291 <pattern-item n="det"/>
292 <pattern-item n="nom"/>
293 <pattern-item n="hyphen"/>
294 <pattern-item n="nom"/>
295 </pattern>
296 <action>
297 <call-macro n="firstWord">
298 <with-param pos="1"/>
299 </call-macro>
300 <out>
301 <chunk name="det_nom" case="caseFirstWord">
302 <tags>
303 <tag><lit-tag v="SN"/></tag>
304 <tag><clip pos="2" side="sl" part="gen"/></tag>
305 <tag><clip pos="2" side="sl" part="nbr"/></tag>
306 </tags>
307 <lu>
308 <clip pos="1" side="tl" part="lemh"/>
309 <clip pos="1" side="tl" part="a_det"/>
310 <clip pos="2" side="sl" part="nbr"/>
311 </lu>
312 <b/>
313 <lu>
314 <clip pos="2" side="tl" part="lemh"/>
315 <clip pos="2" side="tl" part="a_nom"/>
316 <clip pos="2" side="tl" part="nbr"/>
317 <clip pos="2" side="tl" part="lemq"/>
318 </lu>
319 <lu>
320 <clip pos="3" side="tl" part="lem"/>
321 <lit-tag v="guio"/>
322 </lu>
323 <lu>
324 <clip pos="4" side="tl" part="lemh"/>
325 <clip pos="4" side="tl" part="a_nom"/>
326 <clip pos="4" side="tl" part="nbr"/>
327 <clip pos="4" side="tl" part="lemq"/>
328 </lu>
329 </chunk>
330 </out>
331 <let>
332 <var n="caseFirstWord"/>
333 <lit v="aa"/>
334 </let>
335 </action>
336 </rule>
341 <rule>
342 <pattern>
343 <pattern-item n="verbm"/>
344 </pattern>
345 <action>
346 <out>
347 <chunk name="modal_verb">
348 <tags>
349 <tag><lit-tag v="V"/></tag>
350 </tags>
351 <lu>
352 <clip pos="1" side="tl" part="lem"/>
353 <clip pos="1" side="tl" part="a_verb"/>
354 <clip pos="1" side="tl" part="temps"/>
355 </lu>
356 </chunk>
357 </out>
358 </action>
359 </rule>
362 <rule>
363 <pattern>
364 <pattern-item n="verbnm"/>
365 </pattern>
366 <action>
367 <out>
368 <chunk name="verb">
369 <tags>
370 <tag><lit-tag v="V"/></tag>
371 </tags>
372 <lu>
373 <clip pos="1" side="tl" part="lem"/>
374 <clip pos="1" side="tl" part="a_verb"/>
375 <clip pos="1" side="tl" part="temps"/>
376 </lu>
377 </chunk>
378 </out>
379 </action>
380 </rule>
382 <rule>
383 <pattern>
384 <pattern-item n="attachable_prefix"/>
385 <pattern-item n="prefix"/>
386 <pattern-item n="verbnm"/>
387 </pattern>
388 <action>
389 <out>
390 <chunk name="verb">
391 <tags>
392 <tag><lit-tag v="V"/></tag>
393 </tags>
394 <lu>
395 <clip pos="3" side="tl" part="lem"/>
396 <clip pos="3" side="tl" part="a_verb"/>
397 <clip pos="2" side="tl" part="temps"/>
398 </lu>
399 </chunk>
400 <b/>
401 <chunk name="atp">
402 <tags>
403 <tag><lit-tag v="PR"/></tag>
404 </tags>
405 <lu>
406 <clip pos="1" side="tl" part="lem"/>
407 <clip pos="1" side="tl" part="a_atp"/>
408 </lu>
409 </chunk>
410 </out>
411 </action>
412 </rule>
417 <rule comment="REGLA: VAUX VBLEX">
418 <pattern>
419 <pattern-item n="verbm"/>
420 <pattern-item n="verbnm"/>
421 </pattern>
422 <action>
423 <out>
424 <chunk name="vaux_vblex">
425 <tags>
426 <tag><lit-tag v="V"/></tag>
427 </tags>
428 <lu>
429 <clip pos="1" side="tl" part="lem"/>
430 <clip pos="1" side="tl" part="a_verb"/>
431 <clip pos="1" side="tl" part="temps"/>
432 </lu>
433 <b/>
434 <lu>
435 <clip pos="2" side="tl" part="lem"/>
436 <clip pos="2" side="tl" part="a_verb"/>
437 <clip pos="2" side="tl" part="temps"/>
438 </lu>
439 </chunk>
440 </out>
441 </action>
442 </rule>
444 <rule comment="REGLA: PR">
445 <pattern>
446 <pattern-item n="prep"/>
447 </pattern>
448 <action>
449 <out>
450 <chunk name="prep">
451 <tags>
452 <tag><lit-tag v="PR"/></tag>
453 </tags>
454 <lu>
455 <clip pos="1" side="tl" part="lem"/>
456 <clip pos="1" side="tl" part="a_prep"/>
457 </lu>
458 </chunk>
459 </out>
460 </action>
461 </rule>
463 <rule comment="REGLA: CNJSUB">
464 <pattern>
465 <pattern-item n="cnjsub"/>
466 </pattern>
467 <action>
468 <out>
469 <chunk name="cnjsub">
470 <tags>
471 <tag><lit-tag v="CNJ"/></tag>
472 <tag><lit-tag v="SUB"/></tag>
473 </tags>
474 <lu>
475 <clip pos="1" side="tl" part="lem"/>
476 <clip pos="1" side="tl" part="a_cnj"/>
477 </lu>
478 </chunk>
479 </out>
480 </action>
481 </rule>
484 <rule comment="REGLA: CNJCOO">
485 <pattern>
486 <pattern-item n="cnjcoo"/>
487 </pattern>
488 <action>
489 <out>
490 <chunk name="cnjcoo">
491 <tags>
492 <tag><lit-tag v="CNJ"/></tag>
493 <tag><lit-tag v="COO"/></tag>
494 </tags>
495 <lu>
496 <clip pos="1" side="tl" part="lem"/>
497 <clip pos="1" side="tl" part="a_cnj"/>
498 </lu>
499 </chunk>
500 </out>
501 </action>
502 </rule>
505 <rule comment="REGLA: CNJADV">
506 <pattern>
507 <pattern-item n="cnjadv"/>
508 </pattern>
509 <action>
510 <out>
511 <chunk name="cnjadv">
512 <tags>
513 <tag><lit-tag v="CNJADV"/></tag>
514 </tags>
515 <lu>
516 <clip pos="1" side="tl" part="lem"/>
517 <clip pos="1" side="tl" part="a_cnj"/>
518 </lu>
519 </chunk>
520 </out>
521 </action>
522 </rule>
524 <rule comment="REGLA: PRPERS">
525 <pattern>
526 <pattern-item n="prpers"/>
527 </pattern>
528 <action>
529 <out>
530 <chunk name="prpers">
531 <tags>
532 <tag><lit-tag v="PRN"/></tag>
533 </tags>
534 <lu>
535 <clip pos="1" side="tl" part="lem"/>
536 <clip pos="1" side="tl" part="tipus_prn"/>
537 <clip pos="1" side="tl" part="pers"/>
538 <clip pos="1" side="tl" part="gen"/>
539 <clip pos="1" side="tl" part="nbr"/>
540 </lu>
541 </chunk>
542 </out>
543 </action>
544 </rule>
546 <rule comment="REGLA: ADJ">
547 <pattern>
548 <pattern-item n="adj"/>
549 </pattern>
550 <action>
551 <out>
552 <chunk name="adj">
553 <tags>
554 <tag><lit-tag v="ADJ"/></tag>
555 </tags>
556 <lu>
557 <clip pos="1" side="tl" part="lem"/>
558 <clip pos="1" side="tl" part="a_adj"/>
559 </lu>
560 </chunk>
561 </out>
562 </action>
563 </rule>
565 <rule comment="REGLA: PREADV">
566 <pattern>
567 <pattern-item n="preadv"/>
568 </pattern>
569 <action>
570 <out>
571 <chunk name="preadv">
572 <tags>
573 <tag><lit-tag v="PREADV"/></tag>
574 </tags>
575 <lu>
576 <clip pos="1" side="tl" part="lem"/>
577 <clip pos="1" side="tl" part="a_preadv"/>
578 </lu>
579 </chunk>
580 </out>
581 </action>
582 </rule>
585 <rule comment="REGLA: ADV">
586 <pattern>
587 <pattern-item n="adv"/>
588 </pattern>
589 <action>
590 <out>
591 <chunk name="adv">
592 <tags>
593 <tag><lit-tag v="ADV"/></tag>
594 </tags>
595 <lu>
596 <clip pos="1" side="tl" part="lem"/>
597 <clip pos="1" side="tl" part="a_adv"/>
598 </lu>
599 </chunk>
600 </out>
601 </action>
602 </rule>
606 <rule comment="REGLA: ADJ NOM">
607 <pattern>
608 <pattern-item n="adj"/>
609 <pattern-item n="nom"/>
610 </pattern>
611 <action>
612 <out>
613 <chunk name="adj_nom">
614 <tags>
615 <tag><lit-tag v="SN"/></tag>
616 </tags>
617 <lu>
618 <clip pos="1" side="tl" part="lem"/>
619 <clip pos="1" side="tl" part="a_adj"/>
620 </lu>
621 <b/>
622 <lu>
623 <clip pos="2" side="tl" part="lem"/>
624 <clip pos="2" side="tl" part="a_nom"/>
625 <clip pos="2" side="tl" part="nbr"/>
626 </lu>
627 </chunk>
628 </out>
629 </action>
630 </rule>
632 <rule comment="REGLA: NUM ADJ NOM">
633 <pattern>
634 <pattern-item n="num"/>
635 <pattern-item n="adj"/>
636 <pattern-item n="nom"/>
637 </pattern>
638 <action>
639 <out>
640 <chunk name="num_adj_nom">
641 <tags>
642 <tag><lit-tag v="SN"/></tag>
643 </tags>
644 <lu>
645 <clip pos="1" side="tl" part="lem"/>
646 <clip pos="1" side="tl" part="a_num"/>
647 <clip pos="1" side="tl" part="nbr"/>
648 </lu>
649 <b/>
650 <lu>
651 <clip pos="2" side="tl" part="lem"/>
652 <clip pos="2" side="tl" part="a_adj"/>
653 </lu>
654 <b/>
655 <lu>
656 <clip pos="3" side="tl" part="lem"/>
657 <clip pos="3" side="tl" part="a_nom"/>
658 <clip pos="3" side="tl" part="nbr"/>
659 </lu>
660 </chunk>
661 </out>
662 </action>
663 </rule>
665 <rule comment="REGLA: NUM NOM">
666 <pattern>
667 <pattern-item n="num"/>
668 <pattern-item n="nom"/>
669 </pattern>
670 <action>
671 <out>
672 <chunk name="num_nom">
673 <tags>
674 <tag><lit-tag v="SN"/></tag>
675 </tags>
676 <lu>
677 <clip pos="1" side="tl" part="lem"/>
678 <clip pos="1" side="tl" part="a_num"/>
679 <clip pos="1" side="tl" part="nbr"/>
680 </lu>
681 <b/>
682 <lu>
683 <clip pos="2" side="tl" part="lem"/>
684 <clip pos="2" side="tl" part="a_nom"/>
685 <clip pos="2" side="tl" part="nbr"/>
686 </lu>
687 </chunk>
688 </out>
689 </action>
690 </rule>
697 <rule>
698 <pattern>
699 <pattern-item n="verbm"/>
700 <pattern-item n="verbnm"/>
701 <pattern-item n="adv"/>
702 </pattern>
703 <action>
704 <out>
705 <chunk name="vaux_vblex_adv">
706 <tags>
707 <tag><lit-tag v="V"/></tag>
708 </tags>
709 <lu>
710 <clip pos="1" side="tl" part="lem"/>
711 <clip pos="1" side="tl" part="a_verb"/>
712 <clip pos="1" side="tl" part="temps"/>
713 </lu>
714 <b/>
715 <lu>
716 <clip pos="2" side="tl" part="lem"/>
717 <clip pos="2" side="tl" part="a_verb"/>
718 <clip pos="2" side="tl" part="temps"/>
719 </lu>
720 <b/>
721 <lu>
722 <clip pos="3" side="tl" part="lem"/>
723 <clip pos="3" side="tl" part="a_adv"/>
724 </lu>
725 </chunk>
726 </out>
727 </action>
728 </rule>
730 <rule comment="PRPERS VBNM"> <!-- In <PRN><VBLEX> constructions, propagate the person / number of
731 the personal pronoun to the verb. -->
732 <pattern>
733 <pattern-item n="prpers"/>
734 <pattern-item n="verbnm"/>
735 </pattern>
736 <action>
737 <choose>
738 <when>
739 <test> <!-- If it is third person singular in the present tense -->
740 <and>
741 <equal>
742 <clip pos="1" side="tl" part="pers"/>
743 <lit-tag v="p3"/>
744 </equal>
745 <equal>
746 <clip pos="2" side="tl" part="temps"/>
747 <lit-tag v="pres"/>
748 </equal>
749 <equal>
750 <clip pos="1" side="tl" part="nbr"/>
751 <lit-tag v="sg"/>
752 </equal>
753 </and>
754 </test>
755 <out>
756 <chunk name="prn_verb">
757 <tags>
758 <tag><lit-tag v="PRN"/></tag>
759 <tag><lit-tag v="V"/></tag>
760 </tags>
761 <lu>
762 <clip pos="1" side="tl" part="lem"/> <!-- Pronoun -->
763 <clip pos="1" side="tl" part="tipus_prn"/>
764 <clip pos="1" side="tl" part="pers"/>
765 <clip pos="1" side="tl" part="gen"/>
766 <clip pos="1" side="tl" part="nbr"/>
767 <lit v="$ ^"/>
768 <clip pos="2" side="tl" part="lem"/> <!-- Verb -->
769 <clip pos="2" side="tl" part="a_verb"/>
770 <lit-tag v="pri"/>
771 <clip pos="1" side="tl" part="pers"/>
772 <clip pos="1" side="tl" part="nbr"/>
773 </lu>
774 </chunk>
775 </out>
776 </when>
777 <when>
778 <test>
779 <equal>
780 <clip pos="2" side="tl" part="temps"/>
781 <lit-tag v="pres"/>
782 </equal>
783 </test>
784 <out>
785 <chunk name="prn_verb">
786 <tags>
787 <tag><lit-tag v="PRN"/></tag>
788 <tag><lit-tag v="V"/></tag>
789 </tags>
790 <lu>
791 <clip pos="1" side="tl" part="lem"/>
792 <clip pos="1" side="tl" part="tipus_prn"/>
793 <clip pos="1" side="tl" part="pers"/>
794 <clip pos="1" side="tl" part="gen"/>
795 <clip pos="1" side="tl" part="nbr"/>
796 <lit v="$ ^"/>
797 <clip pos="2" side="tl" part="lem"/>
798 <clip pos="2" side="tl" part="a_verb"/>
799 <lit-tag v="pres"/>
800 </lu>
801 </chunk>
802 </out>
803 </when>
804 <otherwise>
805 <out>
806 <chunk name="prn_verb">
807 <tags>
808 <tag><lit-tag v="PRN"/></tag>
809 <tag><lit-tag v="V"/></tag>
810 </tags>
811 <lu>
812 <clip pos="1" side="tl" part="lem"/>
813 <clip pos="1" side="tl" part="tipus_prn"/>
814 <clip pos="1" side="tl" part="pers"/>
815 <clip pos="1" side="tl" part="gen"/>
816 <clip pos="1" side="tl" part="nbr"/>
817 <lit v="$ ^"/>
818 <clip pos="2" side="tl" part="lem"/>
819 <clip pos="2" side="tl" part="a_verb"/>
820 <clip pos="2" side="tl" part="temps"/>
821 </lu>
822 </chunk>
823 </out>
824 </otherwise>
825 </choose>
826 </action>
827 </rule>
829 <rule> <!-- "nie" at the end of a phrase - remove it. this is a hack-->
830 <pattern>
831 <pattern-item n="adv"/>
832 <pattern-item n="end_punct"/>
833 </pattern>
834 <action>
835 <choose>
836 <when>
837 <test>
838 <equal>
839 <clip pos="1" side="sl" part="lem"/>
840 <lit v="nie"/>
841 </equal>
842 </test>
843 <out>
844 <chunk name="punt">
845 <tags>
846 <tag><lit-tag v="cm"/></tag>
847 </tags>
848 <lu>
849 <clip pos="2" side="tl" part="whole"/>
850 </lu>
851 </chunk>
852 </out>
853 </when>
854 <otherwise>
855 <out>
856 <chunk name="default">
857 <tags>
858 <tag><lit-tag v="adj"/></tag>
859 </tags>
860 <lu>
861 <clip pos="1" side="tl" part="whole"/>
862 <lit v="$ ^"/>
863 <clip pos="2" side="tl" part="whole"/>
864 </lu>
865 </chunk>
866 </out>
867 </otherwise>
868 </choose>
869 </action>
870 </rule>
872 <rule comment="REGLA: DET NOM">
873 <pattern>
874 <pattern-item n="det"/>
875 <pattern-item n="nom"/>
876 </pattern>
877 <action>
878 <out>
879 <chunk name="det_nom" case="caseFirstWord">
880 <tags>
881 <tag><lit-tag v="SN"/></tag>
882 <tag><clip pos="2" side="sl" part="gen"/></tag>
883 <tag><clip pos="2" side="sl" part="nbr"/></tag>
884 </tags>
885 <lu>
886 <clip pos="1" side="tl" part="lemh"/>
887 <clip pos="1" side="tl" part="a_det"/>
888 <clip pos="2" side="sl" part="nbr"/>
889 </lu>
890 <b/>
891 <lu>
892 <clip pos="2" side="tl" part="lemh"/>
893 <clip pos="2" side="tl" part="a_nom"/>
894 <clip pos="2" side="tl" part="nbr"/>
895 <clip pos="2" side="tl" part="lemq"/>
896 </lu>
897 </chunk>
898 </out>
899 <let>
900 <var n="caseFirstWord"/>
901 <lit v="aa"/>
902 </let>
903 </action>
904 </rule>
906 <rule comment="REGLA: DET NOM ADJ">
907 <pattern>
908 <pattern-item n="det"/>
909 <pattern-item n="nom"/>
910 <pattern-item n="adj"/>
911 </pattern>
912 <action>
913 <out>
914 <chunk name="det_adj_nom" case="caseFirstWord">
915 <tags>
916 <tag><lit-tag v="SN"/></tag>
917 <tag><clip pos="2" side="sl" part="gen"/></tag>
918 <tag><clip pos="2" side="sl" part="nbr"/></tag>
919 </tags>
920 <lu>
921 <clip pos="1" side="tl" part="lemh"/>
922 <clip pos="1" side="tl" part="a_det"/>
923 <clip pos="2" side="sl" part="nbr"/>
924 </lu>
925 <b/>
926 <lu>
927 <clip pos="3" side="tl" part="lem"/>
928 <clip pos="3" side="tl" part="a_adj"/>
929 </lu>
930 <b/>
931 <lu>
932 <clip pos="2" side="tl" part="lemh"/>
933 <clip pos="2" side="tl" part="a_nom"/>
934 <clip pos="2" side="tl" part="nbr"/>
935 <clip pos="2" side="tl" part="lemq"/>
936 </lu>
937 </chunk>
938 </out>
939 <let>
940 <var n="caseFirstWord"/>
941 <lit v="aa"/>
942 </let>
943 </action>
944 </rule>
947 <rule comment="REGLA: DET ADJ NOM">
948 <pattern>
949 <pattern-item n="det"/>
950 <pattern-item n="adj"/>
951 <pattern-item n="nom"/>
952 </pattern>
953 <action>
954 <out>
955 <chunk name="det_adj_nom" case="caseFirstWord">
956 <tags>
957 <tag><lit-tag v="SN"/></tag>
958 <tag><clip pos="2" side="sl" part="gen"/></tag>
959 <tag><clip pos="2" side="sl" part="nbr"/></tag>
960 </tags>
961 <lu>
962 <clip pos="1" side="tl" part="lemh"/>
963 <clip pos="1" side="tl" part="a_det"/>
964 <clip pos="3" side="sl" part="nbr"/>
965 </lu>
966 <b/>
967 <lu>
968 <clip pos="2" side="tl" part="lem"/>
969 <clip pos="2" side="tl" part="a_adj"/>
970 </lu>
971 <b/>
972 <lu>
973 <clip pos="3" side="tl" part="lemh"/>
974 <clip pos="3" side="tl" part="a_nom"/>
975 <clip pos="3" side="tl" part="nbr"/>
976 <clip pos="3" side="tl" part="lemq"/>
977 </lu>
978 </chunk>
979 </out>
980 <let>
981 <var n="caseFirstWord"/>
982 <lit v="aa"/>
983 </let>
984 </action>
985 </rule>
988 <rule comment="REGLA: VAUX PRN">
989 <pattern>
990 <pattern-item n="verbm"/>
991 <pattern-item n="prpers"/>
992 </pattern>
993 <action>
994 <out>
995 <chunk name="prpers" case="caseFirstWord">
996 <tags>
997 <tag><lit-tag v="PRN"/></tag>
998 </tags>
999 <lu>
1000 <clip pos="2" side="tl" part="lem"/>
1001 <clip pos="2" side="tl" part="tipus_prn"/>
1002 <clip pos="2" side="tl" part="pers"/>
1003 <clip pos="2" side="tl" part="gen"/>
1004 <clip pos="2" side="tl" part="nbr"/>
1005 </lu>
1006 </chunk>
1007 <b/>
1008 <chunk name="verb">
1009 <tags>
1010 <tag><lit-tag v="V"/></tag>
1011 </tags>
1012 <lu>
1013 <clip pos="1" side="tl" part="lem"/>
1014 <clip pos="1" side="tl" part="a_verb"/>
1015 <clip pos="1" side="tl" part="temps"/>
1016 <clip pos="1" side="tl" part="pers"/>
1017 <clip pos="1" side="tl" part="gen"/>
1018 <clip pos="1" side="tl" part="nbr"/>
1019 </lu>
1020 </chunk>
1021 </out>
1022 <let>
1023 <var n="caseFirstWord"/>
1024 <lit v="aa"/>
1025 </let>
1026 </action>
1027 </rule>
1029 <rule comment="REGLA: PRN PR PRN">
1030 <pattern>
1031 <pattern-item n="prn"/>
1032 <pattern-item n="prep"/>
1033 <pattern-item n="prpers"/>
1034 </pattern>
1035 <action>
1036 <out>
1037 <chunk name="det_nom" case="caseFirstWord">
1038 <tags>
1039 <tag><lit-tag v="PRN"/></tag>
1040 <tag><var n="nombre"/></tag>
1041 </tags>
1042 <lu>
1043 <clip pos="1" side="tl" part="lem"/>
1044 <clip pos="1" side="tl" part="tipus_prn"/>
1045 <clip pos="1" side="tl" part="pers"/>
1046 <clip pos="1" side="tl" part="gen"/>
1047 <clip pos="3" side="tl" part="nbr"/>
1048 <clip pos="3" side="tl" part="lemq"/>
1049 </lu>
1050 <b/>
1051 <lu>
1052 <clip pos="2" side="tl" part="lem"/>
1053 <clip pos="1" side="tl" part="a_prep"/>
1054 </lu>
1055 <b/>
1056 <lu>
1057 <clip pos="3" side="tl" part="lem"/>
1058 <clip pos="1" side="tl" part="tipus_prn"/>
1059 <clip pos="1" side="tl" part="pers"/>
1060 <clip pos="1" side="tl" part="gen"/>
1061 <clip pos="3" side="tl" part="nbr"/>
1062 <clip pos="3" side="tl" part="lemq"/>
1063 </lu>
1064 </chunk>
1065 </out>
1066 <let>
1067 <var n="caseFirstWord"/>
1068 <lit v="aa"/>
1069 </let>
1070 </action>
1071 </rule>
1073 <rule>
1074 <pattern>
1075 <pattern-item n="end_punct"/>
1076 </pattern>
1077 <action>
1078 <out>
1079 <chunk name="punct">
1080 <tags>
1081 <tag><lit-tag v="punct"/></tag>
1082 </tags>
1083 <lu>
1084 <clip pos="1" side="tl" part="whole"/>
1085 </lu>
1086 </chunk>
1087 </out>
1088 </action>
1089 </rule>
1091 <rule>
1092 <pattern>
1093 <pattern-item n="prefix"/>
1094 <pattern-item n="verbnm"/>
1095 </pattern>
1096 <action>
1097 <out>
1098 <chunk name="verb_participle">
1099 <tags>
1100 <tag><lit-tag v="V"/></tag>
1101 </tags>
1102 <lu>
1103 <clip pos="2" side="tl" part="lem"/>
1104 <clip pos="2" side="tl" part="a_verb"/>
1105 <clip pos="1" side="tl" part="temps"/>
1106 </lu>
1107 </chunk>
1108 </out>
1109 </action>
1110 </rule>
1112 <rule> <!-- REGLA: reset variables-->
1113 <pattern>
1114 <pattern-item n="sent"/>
1115 </pattern>
1116 <action>
1117 <let>
1118 <var n="nombre"/>
1119 <lit-tag v="sg"/>
1120 </let>
1121 <let>
1122 <var n="genere"/>
1123 <lit-tag v="m"/>
1124 </let>
1125 <out>
1126 <chunk name="punt">
1127 <tags>
1128 <tag><lit-tag v="sent"/></tag>
1129 </tags>
1130 <lu>
1131 <clip pos="1" side="tl" part="whole"/>
1132 </lu>
1133 </chunk>
1134 </out>
1136 </action>
1137 </rule>
1139 </section-rules>
1141 </transfer>