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