ergar
[apertium.git] / apertium-es-it / apertium-es-it.es-it.t3x
blobe03af24621b8acfdf8068e60cff89db4b0da27f9
1 <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- nxml -*- -->
2 <postchunk>
3 <section-def-cats>
5 <def-cat n="prep">
6 <cat-item name="pr"/>
7 </def-cat>
10 <def-cat n="inf">
11 <cat-item name="inf"/>
12 </def-cat>
14 <def-cat n="solo">
15 <cat-item name="solo"/>
16 </def-cat>
18 <def-cat n="nom">
19 <cat-item name="nom"/>
20 </def-cat>
22 <def-cat n="sn_2e">
23 <cat-item name="det_nom"/>
24 <cat-item name="det_adj"/>
25 </def-cat>
27 <def-cat n="sn_3e">
28 <cat-item name="det_adj_nom"/>
29 <cat-item name="det_nom_adj"/>
30 </def-cat>
32 <def-cat n="sn_4e">
33 <cat-item name="det_adv_adj_nom"/>
34 <cat-item name="det_nom_adv_adj"/>
35 </def-cat>
37 <def-cat n="sn_5e">
38 <cat-item name="det_adj_cnjcoo_adj_nom"/>
39 <cat-item name="det_nom_adj_cnjcoo_adj"/>
40 </def-cat>
42 </section-def-cats>
44 <section-def-attrs>
46 <def-attr n="tprep">
47 <attr-item tags="a"/>
48 <attr-item tags="en"/>
49 <attr-item tags="para"/>
50 </def-attr>
51 <def-attr n="pers">
52 <attr-item tags="p1"/>
53 <attr-item tags="p2"/>
54 <attr-item tags="p3"/>
55 <attr-item tags="PD"/>
56 </def-attr>
58 <def-attr n="gen">
59 <attr-item tags="m"/>
60 <attr-item tags="f"/>
61 <attr-item tags="mf"/>
62 <attr-item tags="GD"/>
63 <attr-item tags="nt"/>
64 </def-attr>
66 <def-attr n="nbr">
67 <attr-item tags="sg"/>
68 <attr-item tags="pl"/>
69 <attr-item tags="sp"/>
70 <attr-item tags="ND"/>
71 </def-attr>
73 <def-attr n="determinant">
74 <attr-item tags="treu_det"/>
75 </def-attr>
77 <def-attr n="a_SN">
78 <attr-item tags="DET"/>
79 <attr-item tags="UNDET"/>
80 <attr-item tags="NUM"/>
81 <attr-item tags="PDET"/><!--'Per determinar', per a SN UNDET que han de passar a determinats, transformaci?que far?el postchunk detectant els PDET. -->
82 </def-attr>
85 <def-attr n="a_verb">
86 <attr-item tags="vblex"/>
87 <attr-item tags="vblex.pron"/>
88 <attr-item tags="vbhaver"/>
89 <attr-item tags="vbser"/>
90 <attr-item tags="vbmod"/>
91 <attr-item tags="HAVER"/>
92 </def-attr>
94 <def-attr n="a_nom">
95 <attr-item tags="n"/>
96 <attr-item tags="np"/>
97 </def-attr>
99 <def-attr n="a_np">
100 <attr-item tags="np.ant"/>
101 <attr-item tags="np.cog"/>
102 <attr-item tags="np.al"/>
103 </def-attr>
105 <def-attr n="a_prnpro">
106 <attr-item tags="prn.pro"/>
107 </def-attr>
109 <def-attr n="a_pr">
110 <attr-item tags="pr"/>
111 </def-attr>
112 <def-attr n="a_adv">
113 <attr-item tags="adv"/>
114 </def-attr>
116 </section-def-attrs>
117 <section-def-vars>
118 <def-var n="paraula"/>
119 </section-def-vars>
122 <section-def-macros>
124 <def-macro n="f_bcond" npar="1">
125 <choose>
126 <when>
127 <test>
128 <not>
129 <equal>
130 <b pos="1"/>
131 <lit v=" "/>
132 </equal>
133 </not>
134 </test>
135 <out>
136 <b pos="1"/>
137 </out>
138 </when>
139 </choose>
140 </def-macro>
142 </section-def-macros>
144 <section-rules>
146 <!-- <rule comment="CHUNK: regla que no fa res">
147 <pattern>
148 <pattern-item n="det_nom"/>
149 </pattern>
150 <action>
151 <out>
152 <lu>
153 <clip pos="1" part="whole"/>
154 </lu>
155 <b pos="1"/>
156 <lu>
157 <clip pos="2" part="whole"/>
158 </lu>
159 </out>
160 </action>
161 </rule> -->
163 <rule comment="CHUNK:">
164 <pattern>
165 <pattern-item n="nom"/>
166 </pattern>
167 <action>
168 <out>
169 <lu>
170 <clip pos="1" part="whole"/>
171 </lu>
172 </out>
173 </action>
174 </rule>
176 <rule comment="solo">
177 <pattern>
178 <pattern-item n="solo"/>
179 </pattern>
180 <action>
181 <out>
182 <lu>
183 <get-case-from pos="1">
184 <lit v="sólo"/>
185 </get-case-from>
186 <clip pos="1" part="a_adv"/>
187 </lu>
188 </out>
189 </action>
190 </rule>
192 <rule comment="fa els canvis de prepo">
193 <pattern>
194 <pattern-item n="prep"/>
195 </pattern>
196 <action>
197 <choose>
198 <when>
199 <test>
200 <equal>
201 <clip pos="0" part="tprep"/>
202 <lit-tag v="a"/>
203 </equal>
204 </test>
205 <let>
206 <clip pos="1" part="lem"/>
207 <lit v="a"/>
208 </let>
209 </when>
210 <when>
211 <test>
212 <equal>
213 <clip pos="0" part="tprep"/>
214 <lit-tag v="en"/>
215 </equal>
216 </test>
217 <let>
218 <clip pos="1" part="lem"/>
219 <lit v="en"/>
220 </let>
221 </when>
222 <when>
223 <test>
224 <equal>
225 <clip pos="0" part="tprep"/>
226 <lit-tag v="para"/>
227 </equal>
228 </test>
229 <let>
230 <clip pos="1" part="lem"/>
231 <lit v="para"/>
232 </let>
233 </when>
234 </choose>
235 <out>
236 <lu>
237 <clip pos="1" part="lem"/>
238 <clip pos="1" part="a_pr"/>
239 </lu>
240 </out>
242 </action>
243 </rule>
245 <rule comment="treu el det 2elem">
246 <pattern>
247 <pattern-item n="sn_2e"/>
248 </pattern>
249 <action>
250 <choose>
251 <when>
252 <test>
253 <equal>
254 <clip pos="0" part="determinant"/>
255 <lit-tag v="treu_det"/>
256 </equal>
257 </test>
258 <out>
259 <lu>
260 <clip pos="2" part="whole"/>
261 </lu>
262 </out>
263 <call-macro n="f_bcond">
264 <with-param pos="1"/>
265 </call-macro>
266 </when>
267 <otherwise>
268 <out>
269 <lu>
270 <clip pos="1" part="whole"/>
271 </lu>
272 <b pos="1"/>
273 <lu>
274 <clip pos="2" part="whole"/>
275 </lu>
276 </out>
277 </otherwise>
278 </choose>
279 </action>
280 </rule>
282 <rule comment="treu el det 3 elem">
283 <pattern>
284 <pattern-item n="sn_3e"/>
285 </pattern>
286 <action>
287 <choose>
288 <when>
289 <test>
290 <equal>
291 <clip pos="0" part="determinant"/>
292 <lit-tag v="treu_det"/>
293 </equal>
294 </test>
295 <call-macro n="f_bcond">
296 <with-param pos="1"/>
297 </call-macro>
298 <out>
299 <lu>
300 <clip pos="2" part="whole"/>
301 </lu>
302 <b pos="2"/>
303 <lu>
304 <clip pos="3" part="whole"/>
305 </lu>
307 </out>
308 </when>
309 <otherwise>
310 <out>
311 <lu>
312 <clip pos="1" part="whole"/>
313 </lu>
314 <b pos="1"/>
315 <lu>
316 <clip pos="2" part="whole"/>
317 </lu>
318 <b pos="2"/>
319 <lu>
320 <clip pos="3" part="whole"/>
321 </lu>
322 </out>
323 </otherwise>
324 </choose>
325 </action>
326 </rule>
328 <rule comment="treu el det 4 elem">
329 <pattern>
330 <pattern-item n="sn_4e"/>
331 </pattern>
332 <action>
333 <choose>
334 <when>
335 <test>
336 <equal>
337 <clip pos="0" part="determinant"/>
338 <lit-tag v="treu_det"/>
339 </equal>
340 </test>
341 <call-macro n="f_bcond">
342 <with-param pos="1"/>
343 </call-macro>
344 <out>
345 <lu>
346 <clip pos="2" part="whole"/>
347 </lu>
348 <b pos="2"/>
349 <lu>
350 <clip pos="3" part="whole"/>
351 </lu>
352 <b pos="3"/>
353 <lu>
354 <clip pos="4" part="whole"/>
355 </lu>
356 </out>
357 </when>
358 <otherwise>
359 <out>
360 <lu>
361 <clip pos="1" part="whole"/>
362 </lu>
363 <b pos="1"/>
364 <lu>
365 <clip pos="2" part="whole"/>
366 </lu>
367 <b pos="2"/>
368 <lu>
369 <clip pos="3" part="whole"/>
370 </lu>
371 <b pos="3"/>
372 <lu>
373 <clip pos="4" part="whole"/>
374 </lu>
375 </out>
376 </otherwise>
377 </choose>
378 </action>
379 </rule>
381 <rule comment="treu el det 5 elem">
382 <pattern>
383 <pattern-item n="sn_5e"/>
384 </pattern>
385 <action>
386 <choose>
387 <when>
388 <test>
389 <equal>
390 <clip pos="0" part="determinant"/>
391 <lit-tag v="treu_det"/>
392 </equal>
393 </test>
394 <call-macro n="f_bcond">
395 <with-param pos="1"/>
396 </call-macro>
397 <out>
398 <lu>
399 <clip pos="2" part="whole"/>
400 </lu>
401 <b pos="2"/>
402 <lu>
403 <clip pos="3" part="whole"/>
404 </lu>
405 <b pos="3"/>
406 <lu>
407 <clip pos="4" part="whole"/>
408 </lu>
409 <b pos="4"/>
410 <lu>
411 <clip pos="5" part="whole"/>
412 </lu>
413 </out>
414 </when>
415 <otherwise>
416 <out>
417 <lu>
418 <clip pos="1" part="whole"/>
419 </lu>
420 <b pos="1"/>
421 <lu>
422 <clip pos="2" part="whole"/>
423 </lu>
424 <b pos="2"/>
425 <lu>
426 <clip pos="3" part="whole"/>
427 </lu>
428 <b pos="3"/>
429 <lu>
430 <clip pos="4" part="whole"/>
431 </lu>
432 <b pos="4"/>
433 <lu>
434 <clip pos="5" part="whole"/>
435 </lu>
436 </out>
437 </otherwise>
438 </choose>
439 </action>
440 </rule>
442 </section-rules>
443 </postchunk>