Few more things
[apertium.git] / apertium-tr-az / apertium-tr-az.tr-az.t1x
blob24ce7626c8d5a87fa57eb81bd3248bf2e0d548f5
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="cnjadv"/>
8 </def-cat>
9 <def-cat n="adj">
10 <cat-item tags="adj"/>
11 <cat-item tags="adj.*"/>
12 </def-cat>
13 <def-cat n="nom">
14 <cat-item tags="n.*"/>
15 <cat-item tags="np.*"/>
16 </def-cat>
17 <def-cat n="sent">
18 <cat-item tags="sent"/>
19 </def-cat>
20 <def-cat n="det">
21 <cat-item tags="det.ind.*"/>
22 <cat-item tags="det.def.*"/>
23 </def-cat>
24 <def-cat n="prpers">
25 <cat-item lemma="prpers" tags="prn.*"/>
26 </def-cat>
27 <def-cat n="verb">
28 <cat-item tags="vaux.*"/>
29 <cat-item tags="vblex.*"/>
30 </def-cat>
31 <def-cat n="prep"> <!-- preposition -->
32 <cat-item tags="pr"/>
33 </def-cat>
34 </section-def-cats>
36 <section-def-attrs>
37 <def-attr n="nbr"> <!-- Number -->
38 <attr-item tags="sg"/>
39 <attr-item tags="pl"/>
40 <attr-item tags="sp"/>
41 </def-attr>
42 <def-attr n="gen"> <!-- Gender -->
43 <attr-item tags="m"/>
44 <attr-item tags="f"/>
45 <attr-item tags="mf"/>
46 </def-attr>
47 <def-attr n="a_conj">
48 <attr-item tags="cnjadv"/>
49 </def-attr>
50 <def-attr n="a_case">
51 <attr-item tags="abs"/>
52 <attr-item tags="dac"/>
53 <attr-item tags="dat"/>
54 <attr-item tags="abl"/>
55 <attr-item tags="loc"/>
56 <attr-item tags="gen"/>
57 <attr-item tags="com"/>
58 </def-attr>
59 <def-attr n="a_nom">
60 <attr-item tags="n"/>
61 <attr-item tags="n.acr"/>
62 <attr-item tags="n.unc"/>
63 <attr-item tags="np.loc"/>
64 </def-attr>
65 <def-attr n="a_adj">
66 <attr-item tags="adj.sint"/>
67 <attr-item tags="adj"/>
68 <attr-item tags="comp"/>
69 <attr-item tags="sup"/>
70 </def-attr>
71 <def-attr n="a_det">
72 <attr-item tags="det.ind"/>
73 <attr-item tags="det.def"/>
74 </def-attr>
75 <def-attr n="tipus_prn">
76 <attr-item tags="prn.subj"/>
77 <attr-item tags="prn.obj"/>
78 </def-attr>
79 <def-attr n="pers"> <!-- Person -->
80 <attr-item tags="p1"/>
81 <attr-item tags="p2"/>
82 <attr-item tags="p3"/>
83 </def-attr>
84 <def-attr n="a_posesv"> <!-- Possessives -->
85 <attr-item tags="pp1s"/>
86 <attr-item tags="pp2s"/>
87 <attr-item tags="pp3s"/>
88 <attr-item tags="pp1p"/>
89 <attr-item tags="pp2p"/>
90 <attr-item tags="pp3p"/>
91 </def-attr>
92 <def-attr n="a_verb">
93 <attr-item tags="vblex"/>
94 <attr-item tags="vbser"/>
95 <attr-item tags="vbhaver"/>
96 <attr-item tags="vbmod"/>
97 <attr-item tags="vaux"/>
98 </def-attr>
99 <def-attr n="modo">
100 <attr-item tags="aff"/>
101 <attr-item tags="neg"/>
102 </def-attr>
103 <def-attr n="state">
104 <attr-item tags="int"/>
105 <attr-item tags="stat"/>
106 </def-attr>
107 <def-attr n="temps">
108 <attr-item tags="pp"/>
109 <attr-item tags="pii"/>
110 <attr-item tags="pis"/>
111 <attr-item tags="pri"/>
112 <attr-item tags="past"/>
113 <attr-item tags="pres"/>
114 <attr-item tags="inf"/>
115 </def-attr>
116 </section-def-attrs>
118 <section-def-vars>
119 <def-var n="numero"/>
120 <def-var n="caseFirstWord"/>
121 <def-var n="nombre"/>
122 </section-def-vars>
124 <section-rules>
125 <rule comment="REGLA: NOM (per a collocar la cua en les multiparaules amb g">
126 <pattern>
127 <pattern-item n="nom"/>
128 </pattern>
129 <action>
130 <out>
131 <chunk name="nom" case="caseFirstWord">
132 <tags>
133 <tag><lit-tag v="NP"/></tag>
134 <tag><clip pos="1" side="tl" part="nbr"/></tag>
135 </tags>
136 <lu>
137 <clip pos="1" side="tl" part="lem"/>
138 <clip pos="1" side="tl" part="a_nom"/>
139 <clip pos="1" side="tl" part="nbr"/>
140 <clip pos="1" side="tl" part="a_posesv"/>
141 <clip pos="1" side="tl" part="a_case"/>
142 </lu>
143 </chunk>
144 </out>
145 </action>
146 </rule>
148 <rule comment="REGLA: VERB">
149 <pattern>
150 <pattern-item n="verb"/>
151 </pattern>
152 <action>
153 <out>
154 <chunk name="verb">
155 <tags>
156 <tag><lit-tag v="V"/></tag>
157 </tags>
158 <lu>
159 <clip pos="1" side="tl" part="lem"/>
160 <clip pos="1" side="tl" part="a_verb"/>
161 <clip pos="1" side="tl" part="modo"/>
162 <clip pos="1" side="tl" part="temps"/>
163 <clip pos="1" side="tl" part="pers"/>
164 <clip pos="1" side="tl" part="nbr"/>
165 <clip pos="1" side="tl" part="state"/>
166 </lu>
167 </chunk>
168 </out>
169 </action>
170 </rule>
172 <rule> <!-- REGLA: reset variables-->
173 <pattern>
174 <pattern-item n="sent"/>
175 </pattern>
176 <action>
177 <let>
178 <var n="nombre"/>
179 <lit-tag v="sg"/>
180 </let>
181 <out>
182 <chunk name="punt">
183 <tags>
184 <tag><lit-tag v="sent"/></tag>
185 </tags>
186 <lu>
187 <clip pos="1" side="tl" part="whole"/>
188 </lu>
189 </chunk>
190 </out>
192 </action>
193 </rule>
195 </section-rules>
197 </transfer>