Debian Codegraph @

apertium-eo-es.es-eo.antaux3_t2x

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <interchunk>
3
4 <section-def-cats>
5 <def-cat n="SN">
6 <cat-item tags="SN.*"/>
7 <cat-item tags="unknown"/>
8 </def-cat>
9
10 <def-cat n="SNnotunk">
11 <cat-item tags="SN.*"/>
12 </def-cat>
13
14 <def-cat n="SNand_or">
15 <cat-item lemma="nom_conj_nom" tags="SN.*"/>
16 </def-cat>
17
18 <def-cat n="SNrelatiu">
19 <cat-item tags="SNrelatiu.*"/>
20 <cat-item lemma="qui" tags="SN.itg.*"/>
21 <cat-item lemma="que" tags="SN.itg.*"/>
22 </def-cat>
23
24 <def-cat n="SN_nopron"> <!-- sen pronomoj -->
25 <cat-item tags="SN.m.*"/>
26 <cat-item tags="SN.f.*"/>
27 <cat-item tags="SN.mf.*"/>
28 </def-cat>
29
30 <def-cat n="SN_nopron_obj_dat"> <!-- sen pronomoj prn.obj, prn.dat, prn.itg -->
31 <cat-item tags="SN.m.*"/>
32 <cat-item tags="SN.f.*"/>
33 <cat-item tags="SN.mf.*"/>
34 <cat-item tags="SN.tn.*"/>
35 <cat-item tags="SN.subj.*"/>
36 </def-cat>
37
38 <def-cat n="SN_noitg"> <!-- sen demandopronomoj -->
39 <cat-item tags="SN.m.*"/>
40 <cat-item tags="SN.f.*"/>
41 <cat-item tags="SN.mf.*"/>
42 <cat-item tags="SN.tn.*"/>
43 <cat-item tags="SN.subj.*"/>
44 <cat-item tags="SN.obj.*"/>
45 <cat-item tags="SN.dat.*"/>
46 <cat-item tags="unknown"/>
47 </def-cat>
48
49 <def-cat n="SNSVser">
50 <cat-item tags="SN.*"/>
51 <cat-item tags="SA.*"/> <!-- utilas por morfologiaj miselektoj -->
52 <cat-item tags="SV.vbser.*"/>
53 </def-cat>
54
55 <def-cat n="prn_subjenc">
56 <cat-item lemma="prn_subjenc" tags="SN.subj.*"/>
57 </def-cat>
58
59 <def-cat n="prn_nosubj">
60 <cat-item lemma="prn_nosubj" tags="SN.*"/>
61 <cat-item tags="SN.obj.*"/>
62 <cat-item tags="SN.dat.*"/>
63 </def-cat>
64
65 <def-cat n="ke">
66 <cat-item lemma="ke" tags="cnjsub"/>
67 </def-cat>
68
69 <def-cat n="adv">
70 <cat-item tags="adv"/>
71 <cat-item tags="preadv"/>
72 </def-cat>
73
74 <def-cat n="SV">
75 <cat-item tags="SV"/>
76 <cat-item tags="SV.*"/>
77 </def-cat>
78
79 <def-cat n="vblexinf">
80 <cat-item lemma="inf" tags="SV.vblex.*"/>
81 <cat-item lemma="inf" tags="SV.vbtr.*"/>
82 <cat-item lemma="inf" tags="SV.vbntr.*"/>
83 <cat-item lemma="inf" tags="SV.vbtr_ntr.*"/>
84 <cat-item tags="SV.vblex.inf.*"/>
85 <cat-item tags="SV.vbtr.inf.*"/>
86 <cat-item tags="SV.vbntr.inf.*"/>
87 <cat-item tags="SV.vbtr_ntr.inf.*"/>
88 </def-cat>
89
90 <def-cat n="pr">
91 <cat-item tags="pr"/>
92 </def-cat>
93
94 <def-cat n="de">
95 <cat-item lemma="de" tags="pr"/>
96 </def-cat>
97
98 <def-cat n="unknown">
99 <cat-item lemma="unknown" tags="unknown"/>
100 </def-cat>
101
102 <def-cat n="and_or">
103 <cat-item tags="and_or.*"/>
104 <cat-item tags="cnjcoo.*"/>
105 <cat-item tags="cnjcoo"/>
106 </def-cat>
107
108 <def-cat n="al">
109 <cat-item lemma="al" tags="pr"/>
110 </def-cat>
111
112 <def-cat n="al_de">
113 <cat-item lemma="al" tags="pr"/>
114 <cat-item lemma="de" tags="pr"/>
115 </def-cat>
116
117 <def-cat n="da">
118 <cat-item lemma="da" tags="pr"/>
119 </def-cat>
120
121 <def-cat n="loc">
122 <cat-item lemma="loc" tags="SN.*"/>
123 </def-cat>
124
125 <def-cat n="que">
126 <cat-item tags="SN.itg.*"/>
127 </def-cat>
128
129 <def-cat n="sent">
130 <cat-item tags="sent"/>
131 </def-cat>
132
133 <def-cat n="sent_frazofina">
134 <cat-item lemma="." tags="sent"/>
135 <cat-item lemma="?" tags="sent"/>
136 <cat-item lemma="!" tags="sent"/>
137 <cat-item lemma=":" tags="sent"/>
138 <cat-item lemma=";" tags="sent"/>
139 </def-cat>
140
141 <def-cat n="cm">
142 <cat-item lemma="cm" tags="sent"/>
143 </def-cat>
144
145 <def-cat n="cm_lpar">
146 <cat-item lemma="cm" tags="sent"/>
147 <cat-item lemma="lpar" tags="sent"/>
148 </def-cat>
149
150 <def-cat n="sent_preblank">
151 <cat-item lemma="?" tags="sent"/>
152 <cat-item lemma="!" tags="sent"/>
153 <cat-item lemma=":" tags="sent"/>
154 <cat-item lemma=";" tags="sent"/>
155 </def-cat>
156
157 <def-cat n="any">
158 <cat-item tags="SN.*"/>
159 <cat-item tags="SA.*"/>
160 <cat-item tags="SV.*"/>
161 <cat-item tags="preadv"/>
162 <cat-item tags="adv"/>
163 <cat-item tags="adv.*"/>
164 <cat-item tags="num.*"/>
165 <cat-item tags="predet.*"/>
166 <cat-item tags="det.*"/>
167 <cat-item tags="cnjadv"/>
168 <cat-item tags="cnjcoo"/>
169 <cat-item tags="cnjsub"/>
170 <cat-item tags="pr"/>
171 <cat-item tags="ij"/>
172 <cat-item tags="unknown"/>
173 <cat-item tags="sent"/>
174 <cat-item tags="default"/>
175 </def-cat>
176
177 </section-def-cats>
178
179 <section-def-attrs>
180 <def-attr n="a_chunk">
181 <attr-item tags="SN"/>
182 <attr-item tags="SV"/>
183 </def-attr>
184
185 <def-attr n="a_cas">
186 <attr-item tags="nom"/>
187 <attr-item tags="acc"/>
188 </def-attr>
189
190 <def-attr n="gen">
191 <attr-item tags="m"/>
192 <attr-item tags="f"/>
193 <attr-item tags="mf"/>
194 </def-attr>
195
196 <def-attr n="nbr">
197 <attr-item tags="sg"/>
198 <attr-item tags="pl"/>
199 <attr-item tags="sp"/>
200 </def-attr>
201
202 <def-attr n="tipus_prn">
203 <attr-item tags="subj"/>
204 <attr-item tags="obj"/>
205 <attr-item tags="dat"/>
206 <attr-item tags="tn"/>
207 <attr-item tags="itg"/>
208 <attr-item tags="pos"/>
209 <attr-item tags="ref"/>
210 </def-attr>
211
212 </section-def-attrs>
213
214
215 <section-def-vars>
216 <def-var n="nombre"/>
217 <def-var n="genere"/>
218 </section-def-vars>
219
220
221 <section-def-macros>
222
223 <def-macro n="kunordigo_nbr" npar="2">
224 <choose>
225 <when>
226 <test>
227 <and>
228 <or>
229 <equal><clip pos="2" part="nbr"/><lit-tag v="sp"/></equal>
230 <equal><clip pos="2" part="nbr"/><lit-tag v="ND"/></equal>
231 </or>
232 <or>
233 <equal><clip pos="1" part="nbr"/><lit-tag v="sg"/></equal>
234 <equal><clip pos="1" part="nbr"/><lit-tag v="pl"/></equal>
235 </or>
236 </and>
237 </test>
238 <let><clip pos="2" part="nbr"/><clip pos="1" part="nbr"/></let>
239 </when>
240 </choose>
241 <choose>
242 <when>
243 <test>
244 <and>
245 <or>
246 <equal><clip pos="1" part="nbr"/><lit-tag v="sp"/></equal>
247 <equal><clip pos="1" part="nbr"/><lit-tag v="ND"/></equal>
248 </or>
249 <or>
250 <equal><clip pos="2" part="nbr"/><lit-tag v="sg"/></equal>
251 <equal><clip pos="2" part="nbr"/><lit-tag v="pl"/></equal>
252 </or>
253 </and>
254 </test>
255 <let><clip pos="1" part="nbr"/><clip pos="2" part="nbr"/></let>
256 </when>
257 </choose>
258 </def-macro>
259
260 <def-macro n="generado_kiu" npar="2">
261 <out>
262 <chunk>
263 <get-case-from pos="2">
264 <lit v="prn"/>
265 </get-case-from>
266 <lit-tag v="SNrelatiu.rel"/>
267 <clip pos="1" part="nbr"/>
268 <lit-tag v="nom.nom"/>
269 <lit v="{^"/>
270 <get-case-from pos="2">
271 <lit v="kiu"/>
272 </get-case-from>
273 <lit-tag v="prn.rel.3.4"/>
274 <lit v="$}"/>
275 </chunk>
276 </out>
277 </def-macro>
278
279 <def-macro n="f_bcond" npar="2"><!--Per mirar si el blanc conté o no format. Cal posar aquesta funció en les regles en què desaparegui alguna paraula, per tal de decidir si el blanc de la paraula eliminada s'ha d'eliminar o conservar. Si conté format cal conservar-la, si no en conté cal eliminar-la perquè no apareguin dos espais seguits. -->
280 <choose>
281 <when>
282 <test><not><equal><b pos="1"/><lit v=" "/></equal></not></test>
283 <out>
284 <b pos="1"/>
285 </out>
286 </when>
287 </choose>
288 </def-macro>
289
290 </section-def-macros>
291
292 <section-rules>
293
294 <!-- korekto de SN + ke al SN + kiu -->
295
296 <rule comment="REGLA: SNnopron ke ( deux enseignants dont une femme; ont été tuées dont une femme)">
297 <pattern>
298 <pattern-item n="SN_nopron"/>
299 <pattern-item n="ke"/>
300 </pattern>
301 <action>
302 <out>
303 <chunk>
304 <clip pos="1" part="whole"/>
305 </chunk>
306 <b pos="1"/>
307 </out>
308 <call-macro n="generado_kiu">
309 <with-param pos="1"/>
310 <with-param pos="2"/>
311 </call-macro>
312 </action>
313 </rule>
314
315
316 <!-- kunordigo de SN kaj tuj posta SNrelatiu -->
317
318 <rule comment="REGLA: SN SNrel ( deux enseignants dont une femme; ont été tuées dont une femme)">
319 <pattern>
320 <pattern-item n="SNSVser"/>
321 <pattern-item n="SNrelatiu"/>
322 </pattern>
323 <action>
324 <call-macro n="kunordigo_nbr">
325 <with-param pos="1"/>
326 <with-param pos="2"/>
327 </call-macro>
328 <out>
329 <chunk>
330 <clip pos="1" part="whole"/>
331 </chunk>
332 <b pos="1"/>
333 <chunk>
334 <clip pos="2" part="whole"/>
335 </chunk>
336 </out>
337 </action>
338 </rule>
339
340 <rule comment="REGLA: SN, SNrel ( deux enseignants (dont une femme) )">
341 <pattern>
342 <pattern-item n="SNSVser"/>
343 <pattern-item n="cm_lpar"/>
344 <pattern-item n="SNrelatiu"/>
345 </pattern>
346 <action>
347 <call-macro n="kunordigo_nbr">
348 <with-param pos="1"/>
349 <with-param pos="3"/>
350 </call-macro>
351 <out>
352 <chunk>
353 <clip pos="1" part="whole"/>
354 </chunk>
355 <b pos="1"/>
356 <chunk>
357 <clip pos="2" part="whole"/>
358 </chunk>
359 <b pos="2"/>
360 <chunk>
361 <clip pos="3" part="whole"/>
362 </chunk>
363 </out>
364 </action>
365 </rule>
366
367
368 <rule comment="REGLA: SN SNrel ( deux enseignants (dont une femme) )">
369 <pattern>
370 <pattern-item n="SNSVser"/>
371 <pattern-item n="pr"/>
372 <pattern-item n="SNrelatiu"/>
373 </pattern>
374 <action>
375 <call-macro n="kunordigo_nbr">
376 <with-param pos="1"/>
377 <with-param pos="3"/>
378 </call-macro>
379 <out>
380 <chunk>
381 <clip pos="1" part="whole"/>
382 </chunk>
383 <b pos="1"/>
384 <chunk>
385 <clip pos="2" part="whole"/>
386 </chunk>
387 <b pos="2"/>
388 <chunk>
389 <clip pos="3" part="whole"/>
390 </chunk>
391 </out>
392 </action>
393 </rule>
394
395 <rule comment="REGLA: SN, SNrel ( deux enseignants (dont une femme) )">
396 <pattern>
397 <pattern-item n="SNSVser"/>
398 <pattern-item n="cm_lpar"/>
399 <pattern-item n="pr"/>
400 <pattern-item n="SNrelatiu"/>
401 </pattern>
402 <action>
403 <call-macro n="kunordigo_nbr">
404 <with-param pos="1"/>
405 <with-param pos="4"/>
406 </call-macro>
407 <out>
408 <chunk>
409 <clip pos="1" part="whole"/>
410 </chunk>
411 <b pos="1"/>
412 <chunk>
413 <clip pos="2" part="whole"/>
414 </chunk>
415 <b pos="2"/>
416 <chunk>
417 <clip pos="3" part="whole"/>
418 </chunk>
419 <b pos="3"/>
420 <chunk>
421 <clip pos="4" part="whole"/>
422 </chunk>
423 </out>
424 </action>
425 </rule>
426
427
428 <!-- generado de "ke" tuj post SV -->
429
430 <rule comment="REGLA: SV PRN_INT - SV KE">
431 <pattern>
432 <pattern-item n="SV"/>
433 <pattern-item n="que"/>
434 </pattern>
435 <action>
436 <out>
437 <chunk>
438 <clip pos="1" part="whole"/>
439 </chunk>
440 <b pos="1"/>
441 <chunk>
442 <get-case-from pos="2">
443 <lit v="ke"/>
444 </get-case-from>
445 <lit-tag v="cnjsub"/>
446 <lit v="{^"/>
447 <get-case-from pos="2">
448 <lit v="ke"/>
449 </get-case-from>
450 <lit-tag v="cnjsub"/>
451 <lit v="$}"/>
452 </chunk>
453 </out>
454 </action>
455 </rule>
456
457
458 <rule comment="REGLA: SV ADV PRN_INT - SV KE">
459 <pattern>
460 <pattern-item n="SV"/>
461 <pattern-item n="adv"/>
462 <pattern-item n="que"/>
463 </pattern>
464 <action>
465 <out>
466 <chunk>
467 <clip pos="1" part="whole"/>
468 </chunk>
469 <b pos="1"/>
470 <chunk>
471 <clip pos="2" part="whole"/>
472 </chunk>
473 <b pos="2"/>
474 <chunk>
475 <get-case-from pos="3">
476 <lit v="ke"/>
477 </get-case-from>
478 <lit-tag v="cnjsub"/>
479 <lit v="{^"/>
480 <get-case-from pos="3">
481 <lit v="ke"/>
482 </get-case-from>
483 <lit-tag v="cnjsub"/>
484 <lit v="$}"/>
485 </chunk>
486 </out>
487 </action>
488 </rule>
489
490
491 <rule comment="REGLA: SV PRON PRN_INT - SV PRON KE">
492 <pattern>
493 <pattern-item n="SV"/>
494 <pattern-item n="prn_nosubj"/>
495 <pattern-item n="que"/>
496 </pattern>
497 <action>
498 <out>
499 <chunk>
500 <clip pos="1" part="whole"/>
501 </chunk>
502 <b pos="1"/>
503 <chunk>
504 <clip pos="2" part="whole"/>
505 </chunk>
506 <b pos="2"/>
507 <chunk>
508 <get-case-from pos="3">
509 <lit v="ke"/>
510 </get-case-from>
511 <lit-tag v="cnjsub"/>
512 <lit v="{^"/>
513 <get-case-from pos="3">
514 <lit v="ke"/>
515 </get-case-from>
516 <lit-tag v="cnjsub"/>
517 <lit v="$}"/>
518 </chunk>
519 </out>
520 </action>
521 </rule>
522
523
524 <rule comment="REGLA: SV PRON ADV PRN_INT - SV PRON ADV KE">
525 <pattern>
526 <pattern-item n="SV"/>
527 <pattern-item n="prn_nosubj"/>
528 <pattern-item n="adv"/>
529 <pattern-item n="que"/>
530 </pattern>
531 <action>
532 <out>
533 <chunk>
534 <clip pos="1" part="whole"/>
535 </chunk>
536 <b pos="1"/>
537 <chunk>
538 <clip pos="2" part="whole"/>
539 </chunk>
540 <b pos="2"/>
541 <chunk>
542 <clip pos="3" part="whole"/>
543 </chunk>
544 <b pos="3"/>
545 <chunk>
546 <get-case-from pos="4">
547 <lit v="ke"/>
548 </get-case-from>
549 <lit-tag v="cnjsub"/>
550 <lit v="{^"/>
551 <get-case-from pos="4">
552 <lit v="ke"/>
553 </get-case-from>
554 <lit-tag v="cnjsub"/>
555 <lit v="$}"/>
556 </chunk>
557 </out>
558 </action>
559 </rule>
560
561 <!--
562 <rule comment="REGLA: SV PRON ADV PRN_INT - SV PRON ADV KE">
563 <pattern>
564 <pattern-item n="SV"/>
565 <pattern-item n="al"/>
566 <pattern-item n="adv"/>
567 <pattern-item n="que"/>
568 </pattern>
569 <action>
570 <out>
571 <chunk>
572 <clip pos="1" part="whole"/>
573 </chunk>
574 <b pos="1"/>
575 <chunk>
576 <clip pos="2" part="whole"/>
577 </chunk>
578 <b pos="2"/>
579 <chunk>
580 <clip pos="3" part="whole"/>
581 </chunk>
582 <b pos="3"/>
583 <chunk>
584 <get-case-from pos="4">
585 <lit v="ke"/>
586 </get-case-from>
587 <lit-tag v="cnjsub"/>
588 <lit v="{^"/>
589 <get-case-from pos="4">
590 <lit v="ke"/>
591 </get-case-from>
592 <lit-tag v="cnjsub"/>
593 <lit v="$}"/>
594 </chunk>
595 </out>
596 </action>
597 </rule>
598 -->
599
600 <rule comment="REGLA: SN A INF - SV INF: la manera de hacer -> la formo fari, el encarcago de sacar -> la respondeculo forigi">
601 <pattern>
602 <pattern-item n="SN"/>
603 <pattern-item n="al_de"/>
604 <pattern-item n="vblexinf"/>
605 </pattern>
606
607 <action>
608 <out>
609 <chunk>
610 <clip pos="1" part="whole"/>
611 </chunk>
612 <b pos="1"/>
613 </out>
614 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
615 <out>
616 <chunk>
617 <clip pos="3" part="whole"/>
618 </chunk>
619 </out>
620 </action>
621 </rule>
622
623 </section-rules>
624 </interchunk>