Debian Codegraph @

apertium-eo-fr.fr-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="pr">
80 <cat-item tags="pr"/>
81 </def-cat>
82
83 <def-cat n="de">
84 <cat-item lemma="de" tags="pr"/>
85 </def-cat>
86
87 <def-cat n="unknown">
88 <cat-item lemma="unknown" tags="unknown"/>
89 </def-cat>
90
91 <def-cat n="and_or">
92 <cat-item tags="and_or.*"/>
93 <cat-item tags="cnjcoo.*"/>
94 <cat-item tags="cnjcoo"/>
95 </def-cat>
96
97 <def-cat n="al">
98 <cat-item lemma="al" tags="pr"/>
99 </def-cat>
100
101 <def-cat n="da">
102 <cat-item lemma="da" tags="pr"/>
103 </def-cat>
104
105 <def-cat n="loc">
106 <cat-item lemma="loc" tags="SN.*"/>
107 </def-cat>
108
109 <def-cat n="que">
110 <cat-item tags="SN.itg.*"/>
111 </def-cat>
112
113 <def-cat n="sent">
114 <cat-item tags="sent"/>
115 </def-cat>
116
117 <def-cat n="sent_frazofina">
118 <cat-item lemma="." tags="sent"/>
119 <cat-item lemma="?" tags="sent"/>
120 <cat-item lemma="!" tags="sent"/>
121 <cat-item lemma=":" tags="sent"/>
122 <cat-item lemma=";" tags="sent"/>
123 </def-cat>
124
125 <def-cat n="cm">
126 <cat-item lemma="cm" tags="sent"/>
127 </def-cat>
128
129 <def-cat n="cm_lpar">
130 <cat-item lemma="cm" tags="sent"/>
131 <cat-item lemma="lpar" tags="sent"/>
132 </def-cat>
133
134 <def-cat n="sent_preblank">
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="any">
142 <cat-item tags="SN.*"/>
143 <cat-item tags="SA.*"/>
144 <cat-item tags="SV.*"/>
145 <cat-item tags="preadv"/>
146 <cat-item tags="adv"/>
147 <cat-item tags="adv.*"/>
148 <cat-item tags="num.*"/>
149 <cat-item tags="predet.*"/>
150 <cat-item tags="det.*"/>
151 <cat-item tags="cnjadv"/>
152 <cat-item tags="cnjcoo"/>
153 <cat-item tags="cnjsub"/>
154 <cat-item tags="pr"/>
155 <cat-item tags="ij"/>
156 <cat-item tags="unknown"/>
157 <cat-item tags="sent"/>
158 <cat-item tags="default"/>
159 </def-cat>
160 </section-def-cats>
161
162 <section-def-attrs>
163 <def-attr n="a_chunk">
164 <attr-item tags="SN"/>
165 <attr-item tags="SV"/>
166 </def-attr>
167
168 <def-attr n="a_cas">
169 <attr-item tags="nom"/>
170 <attr-item tags="acc"/>
171 </def-attr>
172
173 <def-attr n="gen">
174 <attr-item tags="m"/>
175 <attr-item tags="f"/>
176 <attr-item tags="mf"/>
177 </def-attr>
178
179 <def-attr n="nbr">
180 <attr-item tags="sg"/>
181 <attr-item tags="pl"/>
182 <attr-item tags="sp"/>
183 </def-attr>
184
185 <def-attr n="tipus_prn">
186 <attr-item tags="subj"/>
187 <attr-item tags="obj"/>
188 <attr-item tags="dat"/>
189 <attr-item tags="tn"/>
190 <attr-item tags="itg"/>
191 <attr-item tags="pos"/>
192 <attr-item tags="ref"/>
193 </def-attr>
194
195 </section-def-attrs>
196
197
198 <section-def-vars>
199 <def-var n="nombre"/>
200 <def-var n="genere"/>
201 </section-def-vars>
202
203
204 <section-def-macros>
205
206 <def-macro n="kunordigo_nbr" npar="2">
207 <choose>
208 <when>
209 <test>
210 <and>
211 <or>
212 <equal><clip pos="2" part="nbr"/><lit-tag v="sp"/></equal>
213 <equal><clip pos="2" part="nbr"/><lit-tag v="ND"/></equal>
214 </or>
215 <or>
216 <equal><clip pos="1" part="nbr"/><lit-tag v="sg"/></equal>
217 <equal><clip pos="1" part="nbr"/><lit-tag v="pl"/></equal>
218 </or>
219 </and>
220 </test>
221 <let><clip pos="2" part="nbr"/><clip pos="1" part="nbr"/></let>
222 </when>
223 </choose>
224 <choose>
225 <when>
226 <test>
227 <and>
228 <or>
229 <equal><clip pos="1" part="nbr"/><lit-tag v="sp"/></equal>
230 <equal><clip pos="1" part="nbr"/><lit-tag v="ND"/></equal>
231 </or>
232 <or>
233 <equal><clip pos="2" part="nbr"/><lit-tag v="sg"/></equal>
234 <equal><clip pos="2" part="nbr"/><lit-tag v="pl"/></equal>
235 </or>
236 </and>
237 </test>
238 <let><clip pos="1" part="nbr"/><clip pos="2" part="nbr"/></let>
239 </when>
240 </choose>
241 </def-macro>
242
243 <def-macro n="generado_kiu" npar="2">
244 <out>
245 <chunk>
246 <get-case-from pos="2">
247 <lit v="prn"/>
248 </get-case-from>
249 <lit-tag v="SNrelatiu.rel"/>
250 <clip pos="1" part="nbr"/>
251 <lit-tag v="nom.nom"/>
252 <lit v="{^"/>
253 <get-case-from pos="2">
254 <lit v="kiu"/>
255 </get-case-from>
256 <lit-tag v="prn.rel.3.4"/>
257 <lit v="$}"/>
258 </chunk>
259 </out>
260 </def-macro>
261
262 <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. -->
263 <choose>
264 <when>
265 <test><not><equal><b pos="1"/><lit v=" "/></equal></not></test>
266 <out>
267 <b pos="1"/>
268 </out>
269 </when>
270 </choose>
271 </def-macro>
272
273 </section-def-macros>
274
275 <section-rules>
276
277 <!-- korekto de SN + ke al SN + kiu -->
278
279 <rule comment="REGLA: SNnopron ke ( deux enseignants dont une femme; ont été tuées dont une femme)">
280 <pattern>
281 <pattern-item n="SN_nopron"/>
282 <pattern-item n="ke"/>
283 </pattern>
284 <action>
285 <out>
286 <chunk>
287 <clip pos="1" part="whole"/>
288 </chunk>
289 <b pos="1"/>
290 </out>
291 <call-macro n="generado_kiu">
292 <with-param pos="1"/>
293 <with-param pos="2"/>
294 </call-macro>
295 </action>
296 </rule>
297
298
299 <!-- kunordigo de SN kaj tuj posta SNrelatiu -->
300
301 <rule comment="REGLA: SN SNrel ( deux enseignants dont une femme; ont été tuées dont une femme)">
302 <pattern>
303 <pattern-item n="SNSVser"/>
304 <pattern-item n="SNrelatiu"/>
305 </pattern>
306 <action>
307 <call-macro n="kunordigo_nbr">
308 <with-param pos="1"/>
309 <with-param pos="2"/>
310 </call-macro>
311 <out>
312 <chunk>
313 <clip pos="1" part="whole"/>
314 </chunk>
315 <b pos="1"/>
316 <chunk>
317 <clip pos="2" part="whole"/>
318 </chunk>
319 </out>
320 </action>
321 </rule>
322
323 <rule comment="REGLA: SN, SNrel ( deux enseignants (dont une femme) )">
324 <pattern>
325 <pattern-item n="SNSVser"/>
326 <pattern-item n="cm_lpar"/>
327 <pattern-item n="SNrelatiu"/>
328 </pattern>
329 <action>
330 <call-macro n="kunordigo_nbr">
331 <with-param pos="1"/>
332 <with-param pos="3"/>
333 </call-macro>
334 <out>
335 <chunk>
336 <clip pos="1" part="whole"/>
337 </chunk>
338 <b pos="1"/>
339 <chunk>
340 <clip pos="2" part="whole"/>
341 </chunk>
342 <b pos="2"/>
343 <chunk>
344 <clip pos="3" part="whole"/>
345 </chunk>
346 </out>
347 </action>
348 </rule>
349
350
351 <rule comment="REGLA: SN SNrel ( deux enseignants (dont une femme) )">
352 <pattern>
353 <pattern-item n="SNSVser"/>
354 <pattern-item n="pr"/>
355 <pattern-item n="SNrelatiu"/>
356 </pattern>
357 <action>
358 <call-macro n="kunordigo_nbr">
359 <with-param pos="1"/>
360 <with-param pos="3"/>
361 </call-macro>
362 <out>
363 <chunk>
364 <clip pos="1" part="whole"/>
365 </chunk>
366 <b pos="1"/>
367 <chunk>
368 <clip pos="2" part="whole"/>
369 </chunk>
370 <b pos="2"/>
371 <chunk>
372 <clip pos="3" part="whole"/>
373 </chunk>
374 </out>
375 </action>
376 </rule>
377
378 <rule comment="REGLA: SN, SNrel ( deux enseignants (dont une femme) )">
379 <pattern>
380 <pattern-item n="SNSVser"/>
381 <pattern-item n="cm_lpar"/>
382 <pattern-item n="pr"/>
383 <pattern-item n="SNrelatiu"/>
384 </pattern>
385 <action>
386 <call-macro n="kunordigo_nbr">
387 <with-param pos="1"/>
388 <with-param pos="4"/>
389 </call-macro>
390 <out>
391 <chunk>
392 <clip pos="1" part="whole"/>
393 </chunk>
394 <b pos="1"/>
395 <chunk>
396 <clip pos="2" part="whole"/>
397 </chunk>
398 <b pos="2"/>
399 <chunk>
400 <clip pos="3" part="whole"/>
401 </chunk>
402 <b pos="3"/>
403 <chunk>
404 <clip pos="4" part="whole"/>
405 </chunk>
406 </out>
407 </action>
408 </rule>
409
410
411 <!-- generado de "ke" tuj post SV -->
412
413 <rule comment="REGLA: SV PRN_INT - SV KE">
414 <pattern>
415 <pattern-item n="SV"/>
416 <pattern-item n="que"/>
417 </pattern>
418 <action>
419 <out>
420 <chunk>
421 <clip pos="1" part="whole"/>
422 </chunk>
423 <b pos="1"/>
424 <chunk>
425 <get-case-from pos="2">
426 <lit v="ke"/>
427 </get-case-from>
428 <lit-tag v="cnjsub"/>
429 <lit v="{^"/>
430 <get-case-from pos="2">
431 <lit v="ke"/>
432 </get-case-from>
433 <lit-tag v="cnjsub"/>
434 <lit v="$}"/>
435 </chunk>
436 </out>
437 </action>
438 </rule>
439
440
441 <rule comment="REGLA: SV ADV PRN_INT - SV KE">
442 <pattern>
443 <pattern-item n="SV"/>
444 <pattern-item n="adv"/>
445 <pattern-item n="que"/>
446 </pattern>
447 <action>
448 <out>
449 <chunk>
450 <clip pos="1" part="whole"/>
451 </chunk>
452 <b pos="1"/>
453 <chunk>
454 <clip pos="2" part="whole"/>
455 </chunk>
456 <b pos="2"/>
457 <chunk>
458 <get-case-from pos="3">
459 <lit v="ke"/>
460 </get-case-from>
461 <lit-tag v="cnjsub"/>
462 <lit v="{^"/>
463 <get-case-from pos="3">
464 <lit v="ke"/>
465 </get-case-from>
466 <lit-tag v="cnjsub"/>
467 <lit v="$}"/>
468 </chunk>
469 </out>
470 </action>
471 </rule>
472
473
474 <rule comment="REGLA: SV PRON PRN_INT - SV PRON KE">
475 <pattern>
476 <pattern-item n="SV"/>
477 <pattern-item n="prn_nosubj"/>
478 <pattern-item n="que"/>
479 </pattern>
480 <action>
481 <out>
482 <chunk>
483 <clip pos="1" part="whole"/>
484 </chunk>
485 <b pos="1"/>
486 <chunk>
487 <clip pos="2" part="whole"/>
488 </chunk>
489 <b pos="2"/>
490 <chunk>
491 <get-case-from pos="3">
492 <lit v="ke"/>
493 </get-case-from>
494 <lit-tag v="cnjsub"/>
495 <lit v="{^"/>
496 <get-case-from pos="3">
497 <lit v="ke"/>
498 </get-case-from>
499 <lit-tag v="cnjsub"/>
500 <lit v="$}"/>
501 </chunk>
502 </out>
503 </action>
504 </rule>
505
506
507 <rule comment="REGLA: SV PRON ADV PRN_INT - SV PRON ADV KE">
508 <pattern>
509 <pattern-item n="SV"/>
510 <pattern-item n="prn_nosubj"/>
511 <pattern-item n="adv"/>
512 <pattern-item n="que"/>
513 </pattern>
514 <action>
515 <out>
516 <chunk>
517 <clip pos="1" part="whole"/>
518 </chunk>
519 <b pos="1"/>
520 <chunk>
521 <clip pos="2" part="whole"/>
522 </chunk>
523 <b pos="2"/>
524 <chunk>
525 <clip pos="3" part="whole"/>
526 </chunk>
527 <b pos="3"/>
528 <chunk>
529 <get-case-from pos="4">
530 <lit v="ke"/>
531 </get-case-from>
532 <lit-tag v="cnjsub"/>
533 <lit v="{^"/>
534 <get-case-from pos="4">
535 <lit v="ke"/>
536 </get-case-from>
537 <lit-tag v="cnjsub"/>
538 <lit v="$}"/>
539 </chunk>
540 </out>
541 </action>
542 </rule>
543
544 <!-- BLANKOJ -->
545
546 <rule comment="REGLA: forigo de blankoj antaŭ fermaj interpunkciiloj ">
547 <pattern>
548 <pattern-item n="any"/>
549 <pattern-item n="sent_preblank"/>
550 </pattern>
551 <action>
552 <out>
553 <chunk>
554 <clip pos="1" part="whole"/>
555 </chunk>
556 </out>
557 <call-macro n="f_bcond"><with-param pos="1"/><with-param pos="2"/></call-macro>
558 <out>
559 <chunk>
560 <clip pos="2" part="whole"/>
561 </chunk>
562 </out>
563 </action>
564 </rule>
565
566 <rule comment="REGLA: forigo de blankoj antaŭ fermaj interpunkciiloj ">
567 <pattern>
568 <pattern-item n="any"/>
569 <pattern-item n="sent_preblank"/>
570 <pattern-item n="sent_preblank"/>
571 </pattern>
572 <action>
573 <out>
574 <chunk>
575 <clip pos="1" part="whole"/>
576 </chunk>
577 </out>
578 <call-macro n="f_bcond"><with-param pos="1"/><with-param pos="2"/></call-macro>
579 <out>
580 <chunk>
581 <clip pos="2" part="whole"/>
582 </chunk>
583 </out>
584 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
585 <out>
586 <chunk>
587 <clip pos="3" part="whole"/>
588 </chunk>
589 </out>
590 </action>
591 </rule>
592
593 </section-rules>
594 </interchunk>