Debian Codegraph @

apertium-eo-fr.fr-eo.antaux1_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="unknown"/>
7 <cat-item tags="SN.*"/>
8 </def-cat>
9
10 <def-cat n="SNnotunk">
11 <cat-item tags="SN.*"/>
12 </def-cat>
13
14 <def-cat n="SNnodet">
15 <cat-item lemma="nom" tags="SN.*"/>
16 <cat-item lemma="nom_adj" tags="SN.*"/>
17 <cat-item lemma="num_nom" tags="SN.*"/>
18 <cat-item lemma="num_nom_adj" tags="SN.*"/>
19 <cat-item lemma="loc" tags="SN.*"/> <!-- une Europe nouvelle, toute l'Europe -->
20 <cat-item lemma="dato" tags="SN.*"/> <!-- povas esti determinita aŭ ne -->
21 </def-cat>
22
23 <def-cat n="SN_nopron"> <!-- sen pronomoj -->
24 <cat-item tags="SN.m.*"/>
25 <cat-item tags="SN.f.*"/>
26 <cat-item tags="SN.mf.*"/>
27 </def-cat>
28
29 <def-cat n="SN_nopron_obj_dat"> <!-- sen pronomoj prn.obj, prn.dat, prn.itg -->
30 <cat-item tags="SN.m.*"/>
31 <cat-item tags="SN.f.*"/>
32 <cat-item tags="SN.mf.*"/>
33 <cat-item tags="SN.tn.*"/>
34 <cat-item tags="SN.subj.*"/>
35 </def-cat>
36
37 <def-cat n="SNSA_nopron"> <!-- sen pronomoj -->
38 <cat-item tags="SN.m.*"/>
39 <cat-item tags="SN.f.*"/>
40 <cat-item tags="SN.mf.*"/>
41 <cat-item tags="SA.*"/>
42 </def-cat>
43
44 <def-cat n="num">
45 <cat-item lemma="num" tags="SN.*"/>
46 </def-cat>
47
48 <def-cat n="prn_obj">
49 <cat-item tags="SN.obj.*"/>
50 </def-cat>
51
52 <def-cat n="prn_dat">
53 <cat-item tags="SN.dat.*"/>
54 </def-cat>
55
56 <def-cat n="prn_obj_dat">
57 <cat-item tags="SN.obj.*"/>
58 <cat-item tags="SN.dat.*"/>
59 </def-cat>
60
61 <def-cat n="prn_ref">
62 <cat-item lemma="se" tags="SN.obj.*"/>
63 </def-cat>
64
65 <def-cat n="dato">
66 <cat-item lemma="dato" tags="SN.*"/>
67 </def-cat>
68
69 <def-cat n="det">
70 <cat-item tags="det.*"/>
71 <cat-item lemma="det_num" tags="SA.*"/>
72 <cat-item lemma="det_adj" tags="SA.*"/>
73 </def-cat>
74
75 <def-cat n="SAdj"> <!-- adjektiva sintagmo -->
76 <cat-item tags="SA.*"/>
77 </def-cat>
78
79 <def-cat n="SAnodet">
80 <cat-item lemma="adj" tags="SA.*"/>
81 </def-cat>
82
83 <def-cat n="pr">
84 <cat-item tags="pr"/>
85 </def-cat>
86
87 <def-cat n="al">
88 <cat-item lemma="al" tags="pr"/>
89 </def-cat>
90
91 <def-cat n="de">
92 <cat-item lemma="de" tags="pr"/>
93 </def-cat>
94
95 <def-cat n="da">
96 <cat-item lemma="da" tags="pr"/>
97 </def-cat>
98
99 <def-cat n="per">
100 <cat-item lemma="per" tags="pr"/>
101 </def-cat>
102
103 <def-cat n="adv">
104 <cat-item tags="preadv"/>
105 <cat-item tags="adv"/>
106 </def-cat>
107
108 <def-cat n="ne">
109 <cat-item lemma="ne" tags="adv"/>
110 <cat-item lemma="ne plu" tags="adv"/>
111 </def-cat>
112
113 <def-cat n="nur">
114 <cat-item lemma="nur" tags="adv"/>
115 </def-cat>
116
117 <def-cat n="adv_da">
118 <cat-item lemma="multe" tags="adv"/>
119 <cat-item lemma="malmulte" tags="adv"/>
120 <cat-item lemma="multege" tags="adv"/>
121 <cat-item lemma="malmultege" tags="adv"/>
122 <cat-item lemma="tro" tags="adv"/>
123 <cat-item lemma="maltro" tags="adv"/>
124 <cat-item lemma="sufiĉe" tags="adv"/>
125 <cat-item lemma="malsufiĉe" tags="adv"/>
126 <cat-item lemma="nesufiĉe" tags="adv"/>
127 </def-cat>
128
129 <def-cat n="adv_cnj">
130 <cat-item tags="adv"/>
131 <cat-item tags="preadv"/>
132 <cat-item tags="cnjadv"/>
133 </def-cat>
134
135 <def-cat n="pp">
136 <cat-item lemma="pp" tags="SA.*"/>
137 <cat-item lemma="verbcj_perifpp" tags="SV.*"/>
138 </def-cat>
139
140 <def-cat n="SV">
141 <cat-item tags="SV.*"/>
142 </def-cat>
143
144 <def-cat n="SV_pp">
145 <cat-item tags="SV.*"/>
146 <cat-item lemma="pp" tags="SA.*"/>
147 </def-cat>
148
149 <def-cat n="SVtr">
150 <cat-item tags="SV.vbtr.*"/>
151 <cat-item tags="SV.vbtr_ntr.*"/>
152 </def-cat>
153
154 <def-cat n="SVser">
155 <cat-item tags="SV.vbser.*"/>
156 </def-cat>
157
158 <def-cat n="SVtrser">
159 <cat-item tags="SV.vbtr.*"/>
160 <cat-item tags="SV.vbtr_ntr.*"/>
161 <cat-item lemma="verbcj" tags="SV.vbser.*"/> <!-- ĉefe por eviti problemojn ĉe "<esti informita> (pasivo = vbser) <de> (devus esti "pri", tamen tio rezultas de "être informé de") -->
162 <cat-item tags="SV.vbmod.*"/>
163 </def-cat>
164
165 <def-cat n="inf"> <!-- mankas vbser, vbmod -->
166 <cat-item tags="SV.vblex.inf"/>
167 <cat-item tags="SV.vbtr.inf"/>
168 <cat-item tags="SV.vbntr.inf"/>
169 <cat-item tags="SV.vbtr_ntr.inf"/>
170 <cat-item tags="SV.vblex.inf.*"/>
171 <cat-item tags="SV.vbtr.inf.*"/>
172 <cat-item tags="SV.vbntr.inf.*"/>
173 <cat-item tags="SV.vbtr_ntr.inf.*"/>
174 </def-cat>
175
176 <def-cat n="inf_tot">
177 <cat-item tags="SV.*.inf"/>
178 <cat-item tags="SV.*.inf.*"/>
179 </def-cat>
180
181 <def-cat n="le_det">
182 <cat-item lemma="le" tags="det.*"/>
183 </def-cat>
184
185 <def-cat n="un_autre_det_pl">
186 <cat-item lemma="un autre" tags="det.*.pl.*"/>
187 </def-cat>
188
189 <def-cat n="le_prn">
190 <cat-item lemma="le" tags="SN.obj.*"/>
191 </def-cat>
192
193 <def-cat n="and_or">
194 <cat-item lemma="kaj" tags="cnjcoo"/>
195 <cat-item lemma="aŭ" tags="cnjcoo"/>
196 </def-cat>
197
198 <def-cat n="que">
199 <cat-item tags="SN.itg.*"/>
200 </def-cat>
201
202 <def-cat n="que_cnj">
203 <cat-item lemma="ke" tags="cnjsub"/>
204 <cat-item tags="SN.itg.*"/>
205 </def-cat>
206
207 <def-cat n="ke_kiu">
208 <cat-item lemma="ke" tags="cnjsub"/>
209 <cat-item tags="SN.itg.*"/>
210 <cat-item tags="SNrelatiu.*"/>
211 </def-cat>
212
213 <def-cat n="cnjsub">
214 <cat-item tags="cnjsub"/>
215 </def-cat>
216
217 <def-cat n="porke">
218 <cat-item lemma="por ke" tags="cnjsub"/>
219 </def-cat>
220
221 <def-cat n="CM">
222 <cat-item lemma="cm" tags="sent"/>
223 </def-cat>
224
225 <def-cat n="lcit">
226 <cat-item lemma="lcit" tags="sent"/>
227 </def-cat>
228
229 <def-cat n="rcit">
230 <cat-item lemma="rcit" tags="sent"/>
231 </def-cat>
232
233 <def-cat n="unknown">
234 <cat-item lemma="unknown" tags="unknown"/>
235 </def-cat>
236
237 <def-cat n="sent_preblank">
238 <cat-item lemma="?" tags="sent"/>
239 <cat-item lemma="!" tags="sent"/>
240 <cat-item lemma=":" tags="sent"/>
241 <cat-item lemma=";" tags="sent"/>
242 </def-cat>
243
244 <def-cat n="any">
245 <cat-item tags="SN.*"/>
246 <cat-item tags="SA.*"/>
247 <cat-item tags="SV.*"/>
248 <cat-item tags="preadv"/>
249 <cat-item tags="adv"/>
250 <cat-item tags="adv.*"/>
251 <cat-item tags="num.*"/>
252 <cat-item tags="predet.*"/>
253 <cat-item tags="det.*"/>
254 <cat-item tags="cnjadv"/>
255 <cat-item tags="cnjcoo"/>
256 <cat-item tags="cnjsub"/>
257 <cat-item tags="pr"/>
258 <cat-item tags="ij"/>
259 <cat-item tags="unknown"/>
260 <cat-item tags="sent"/>
261 <cat-item tags="default"/>
262 </def-cat>
263 </section-def-cats>
264
265 <section-def-attrs>
266
267 <def-attr n="gen">
268 <attr-item tags="m"/>
269 <attr-item tags="f"/>
270 <attr-item tags="mf"/>
271 <attr-item tags="ND"/>
272 </def-attr>
273
274 <def-attr n="nbr">
275 <attr-item tags="sg"/>
276 <attr-item tags="pl"/>
277 <attr-item tags="sp"/>
278 <attr-item tags="ND"/>
279 </def-attr>
280
281 <def-attr n="tipus_prn">
282 <attr-item tags="subj"/>
283 <attr-item tags="obj"/>
284 <attr-item tags="dat"/>
285 <attr-item tags="tn"/>
286 <attr-item tags="itg"/>
287 <attr-item tags="pos"/>
288 <attr-item tags="ref"/>
289 </def-attr>
290
291 </section-def-attrs>
292
293 <section-def-vars>
294 <def-var n="nombre"/>
295 <def-var n="genere"/>
296 <def-var n="b1"/>
297 <def-var n="b2"/>
298 <def-var n="b3"/>
299 <def-var n="b4"/>
300 </section-def-vars>
301
302 <section-def-macros>
303
304 <def-macro n="kunordigo_nbr" npar="2">
305 <choose>
306 <when>
307 <test>
308 <and>
309 <or>
310 <equal><clip pos="2" part="nbr"/><lit-tag v="sp"/></equal>
311 <equal><clip pos="2" part="nbr"/><lit-tag v="ND"/></equal>
312 </or>
313 <or>
314 <equal><clip pos="1" part="nbr"/><lit-tag v="sg"/></equal>
315 <equal><clip pos="1" part="nbr"/><lit-tag v="pl"/></equal>
316 </or>
317 </and>
318 </test>
319 <let><clip pos="2" part="nbr"/><clip pos="1" part="nbr"/></let>
320 </when>
321 </choose>
322 <choose>
323 <when>
324 <test>
325 <and>
326 <or>
327 <equal><clip pos="1" part="nbr"/><lit-tag v="sp"/></equal>
328 <equal><clip pos="1" part="nbr"/><lit-tag v="ND"/></equal>
329 </or>
330 <or>
331 <equal><clip pos="2" part="nbr"/><lit-tag v="sg"/></equal>
332 <equal><clip pos="2" part="nbr"/><lit-tag v="pl"/></equal>
333 </or>
334 </and>
335 </test>
336 <let><clip pos="1" part="nbr"/><clip pos="2" part="nbr"/></let>
337 </when>
338 </choose>
339 </def-macro>
340
341 <def-macro n="kunordigo_gen" npar="2">
342 <choose>
343 <when>
344 <test>
345 <and>
346 <or>
347 <equal><clip pos="2" part="gen"/><lit-tag v="mf"/></equal>
348 <equal><clip pos="2" part="gen"/><lit-tag v="ND"/></equal>
349 </or>
350 <or>
351 <equal><clip pos="1" part="gen"/><lit-tag v="m"/></equal>
352 <equal><clip pos="1" part="gen"/><lit-tag v="f"/></equal>
353 </or>
354 </and>
355 </test>
356 <let><clip pos="2" part="gen"/><clip pos="1" part="gen"/></let>
357 </when>
358 </choose>
359 <choose>
360 <when>
361 <test>
362 <and>
363 <or>
364 <equal><clip pos="1" part="gen"/><lit-tag v="mf"/></equal>
365 <equal><clip pos="1" part="gen"/><lit-tag v="ND"/></equal>
366 </or>
367 <or>
368 <equal><clip pos="2" part="gen"/><lit-tag v="m"/></equal>
369 <equal><clip pos="2" part="gen"/><lit-tag v="f"/></equal>
370 </or>
371 </and>
372 </test>
373 <let><clip pos="1" part="gen"/><clip pos="2" part="gen"/></let>
374 </when>
375 </choose>
376 </def-macro>
377
378 <def-macro n="set_dat" npar="1"> <!-- obj -> dat -->
379 <choose>
380 <when>
381 <test>
382 <equal><clip pos="1" part="tipus_prn"/><lit-tag v="obj"/></equal>
383 </test>
384 <let><clip pos="1" part="tipus_prn"/><lit-tag v="dat"/></let>
385 </when>
386 </choose>
387 </def-macro>
388
389 <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. -->
390 <choose>
391 <when>
392 <test><not><equal><b pos="1"/><lit v=" "/></equal></not></test>
393 <out>
394 <b pos="1"/>
395 </out>
396 </when>
397 </choose>
398 </def-macro>
399
400 </section-def-macros>
401
402 <section-rules>
403
404 <!-- Reguloj de SAdj -->
405
406 <rule comment="REGLA: DET SA - SA ">
407 <pattern>
408 <pattern-item n="det"/>
409 <pattern-item n="SAnodet"/>
410 </pattern>
411 <action>
412 <call-macro n="kunordigo_nbr">
413 <with-param pos="1"/>
414 <with-param pos="2"/>
415 </call-macro>
416 <choose>
417 <when>
418 <test>
419 <equal caseless="yes"><clip pos="1" part="lem"/><lit v="un"/></equal>
420 </test>
421 <out>
422 <chunk>
423 <get-case-from pos="1"><lit v="det_adj1"/></get-case-from>
424 <clip pos="2" part="tags"/>
425 <lit v="{"/>
426 <clip pos="2" part="content"/>
427 <lit v="}"/>
428 </chunk>
429 </out>
430 <call-macro n="f_bcond"><with-param pos="1"/><with-param pos="2"/></call-macro>
431 </when>
432 <otherwise>
433 <out>
434 <chunk>
435 <get-case-from pos="1"><lit v="det_adj2"/></get-case-from>
436 <clip pos="2" part="tags"/>
437 <lit v="{"/>
438 <clip pos="1" part="content"/>
439 <b pos="1"/>
440 <clip pos="2" part="content"/>
441 <lit v="}"/>
442 </chunk>
443 </out>
444 </otherwise>
445 </choose>
446 </action>
447 </rule>
448
449
450 <rule comment="REGLA: ADV SAdj - SAdj ">
451 <pattern>
452 <pattern-item n="adv"/>
453 <pattern-item n="SAdj"/>
454 </pattern>
455 <action>
456 <out>
457 <chunk>
458 <get-case-from pos="1"><clip pos="2" part="lem"/></get-case-from>
459 <clip pos="2" part="tags"/>
460 <lit v="{"/>
461 <clip pos="1" part="content"/>
462 <b pos="1"/>
463 <clip pos="2" part="content"/>
464 <lit v="}"/>
465 </chunk>
466 </out>
467 </action>
468 </rule>
469
470
471 <rule comment="REGLA: ADV ADV SAdj - SAdj ">
472 <pattern>
473 <pattern-item n="adv"/>
474 <pattern-item n="adv"/>
475 <pattern-item n="SAdj"/>
476 </pattern>
477 <action>
478 <out>
479 <chunk>
480 <get-case-from pos="1"><clip pos="3" part="lem"/></get-case-from>
481 <clip pos="3" part="tags"/>
482 <lit v="{"/>
483 <clip pos="1" part="content"/>
484 <b pos="1"/>
485 <clip pos="2" part="content"/>
486 <b pos="2"/>
487 <clip pos="3" part="content"/>
488 <lit v="}"/>
489 </chunk>
490 </out>
491 </action>
492 </rule>
493
494
495 <rule comment="REGLA: SAdj and/or SAdj - SAdj ">
496 <pattern>
497 <pattern-item n="SAdj"/>
498 <pattern-item n="and_or"/>
499 <pattern-item n="SAdj"/>
500 </pattern>
501 <action>
502 <call-macro n="kunordigo_nbr">
503 <with-param pos="1"/>
504 <with-param pos="3"/>
505 </call-macro>
506 <out>
507 <chunk>
508 <clip pos="1" part="lem"/>
509 <clip pos="1" part="tags"/>
510 <lit v="{"/>
511 <clip pos="1" part="content"/>
512 <b pos="1"/>
513 <clip pos="2" part="content"/>
514 <b pos="2"/>
515 <clip pos="3" part="content"/>
516 <lit v="}"/>
517 </chunk>
518 </out>
519 </action>
520 </rule>
521
522
523 <rule comment="REGLA: ADV SAdj and/or SAdj - SAdj ">
524 <pattern>
525 <pattern-item n="adv"/>
526 <pattern-item n="SAdj"/>
527 <pattern-item n="and_or"/>
528 <pattern-item n="SAdj"/>
529 </pattern>
530 <action>
531 <call-macro n="kunordigo_nbr">
532 <with-param pos="2"/>
533 <with-param pos="4"/>
534 </call-macro>
535 <out>
536 <chunk>
537 <clip pos="2" part="lem"/>
538 <clip pos="2" part="tags"/>
539 <lit v="{"/>
540 <clip pos="1" part="content"/>
541 <b pos="1"/>
542 <clip pos="2" part="content"/>
543 <b pos="2"/>
544 <clip pos="3" part="content"/>
545 <b pos="3"/>
546 <clip pos="4" part="content"/>
547 <lit v="}"/>
548 </chunk>
549 </out>
550 </action>
551 </rule>
552
553
554 <rule comment="REGLA: ADV SAdj and/or ADV SAdj - SAdj ">
555 <pattern>
556 <pattern-item n="adv"/>
557 <pattern-item n="SAdj"/>
558 <pattern-item n="and_or"/>
559 <pattern-item n="adv"/>
560 <pattern-item n="SAdj"/>
561 </pattern>
562 <action>
563 <call-macro n="kunordigo_nbr">
564 <with-param pos="2"/>
565 <with-param pos="5"/>
566 </call-macro>
567 <out>
568 <chunk>
569 <clip pos="2" part="lem"/>
570 <clip pos="2" part="tags"/>
571 <lit v="{"/>
572 <clip pos="1" part="content"/>
573 <b pos="1"/>
574 <clip pos="2" part="content"/>
575 <b pos="2"/>
576 <clip pos="3" part="content"/>
577 <b pos="3"/>
578 <clip pos="4" part="content"/>
579 <b pos="4"/>
580 <clip pos="5" part="content"/>
581 <lit v="}"/>
582 </chunk>
583 </out>
584 </action>
585 </rule>
586
587
588 <rule comment="REGLA: SAdj, SAdj and/or SAdj - SAdj ">
589 <pattern>
590 <pattern-item n="SAdj"/>
591 <pattern-item n="CM"/>
592 <pattern-item n="SAdj"/>
593 <pattern-item n="and_or"/>
594 <pattern-item n="SAdj"/>
595 </pattern>
596 <action>
597 <call-macro n="kunordigo_nbr">
598 <with-param pos="1"/>
599 <with-param pos="3"/>
600 </call-macro>
601 <call-macro n="kunordigo_nbr">
602 <with-param pos="1"/>
603 <with-param pos="5"/>
604 </call-macro>
605 <out>
606 <chunk>
607 <clip pos="1" part="lem"/>
608 <clip pos="1" part="tags"/>
609 <lit v="{"/>
610 <clip pos="1" part="content"/>
611 <b pos="1"/>
612 <clip pos="2" part="content"/>
613 <b pos="2"/>
614 <clip pos="3" part="content"/>
615 <b pos="3"/>
616 <clip pos="4" part="content"/>
617 <b pos="4"/>
618 <clip pos="5" part="content"/>
619 <lit v="}"/>
620 </chunk>
621 </out>
622 </action>
623 </rule>
624
625
626 <rule comment="REGLA: ADV SAdj, SAdj and/or SAdj - SAdj ">
627 <pattern>
628 <pattern-item n="adv"/>
629 <pattern-item n="SAdj"/>
630 <pattern-item n="CM"/>
631 <pattern-item n="SAdj"/>
632 <pattern-item n="and_or"/>
633 <pattern-item n="SAdj"/>
634 </pattern>
635 <action>
636 <call-macro n="kunordigo_nbr">
637 <with-param pos="2"/>
638 <with-param pos="4"/>
639 </call-macro>
640 <call-macro n="kunordigo_nbr">
641 <with-param pos="2"/>
642 <with-param pos="6"/>
643 </call-macro>
644 <out>
645 <chunk>
646 <clip pos="2" part="lem"/>
647 <clip pos="2" part="tags"/>
648 <lit v="{"/>
649 <clip pos="1" part="content"/>
650 <b pos="1"/>
651 <clip pos="2" part="content"/>
652 <b pos="2"/>
653 <clip pos="3" part="content"/>
654 <b pos="3"/>
655 <clip pos="4" part="content"/>
656 <b pos="4"/>
657 <clip pos="5" part="content"/>
658 <b pos="5"/>
659 <clip pos="6" part="content"/>
660 <lit v="}"/>
661 </chunk>
662 </out>
663 </action>
664 </rule>
665
666
667 <rule comment="REGLA: SAdj, SAdj, SAdj and/or SAdj - SAdj ">
668 <pattern>
669 <pattern-item n="SAdj"/>
670 <pattern-item n="CM"/>
671 <pattern-item n="SAdj"/>
672 <pattern-item n="CM"/>
673 <pattern-item n="SAdj"/>
674 <pattern-item n="and_or"/>
675 <pattern-item n="SAdj"/>
676 </pattern>
677 <action>
678 <call-macro n="kunordigo_nbr">
679 <with-param pos="1"/>
680 <with-param pos="3"/>
681 </call-macro>
682 <call-macro n="kunordigo_nbr">
683 <with-param pos="1"/>
684 <with-param pos="5"/>
685 </call-macro>
686 <call-macro n="kunordigo_nbr">
687 <with-param pos="1"/>
688 <with-param pos="7"/>
689 </call-macro>
690 <out>
691 <chunk>
692 <clip pos="1" part="lem"/>
693 <clip pos="1" part="tags"/>
694 <lit v="{"/>
695 <clip pos="1" part="content"/>
696 <b pos="1"/>
697 <clip pos="2" part="content"/>
698 <b pos="2"/>
699 <clip pos="3" part="content"/>
700 <b pos="3"/>
701 <clip pos="4" part="content"/>
702 <b pos="4"/>
703 <clip pos="5" part="content"/>
704 <b pos="5"/>
705 <clip pos="6" part="content"/>
706 <b pos="6"/>
707 <clip pos="7" part="content"/>
708 <lit v="}"/>
709 </chunk>
710 </out>
711 </action>
712 </rule>
713
714
715 <rule comment="REGLA: ADV SAdj, SAdj and/or SAdj - SAdj ">
716 <pattern>
717 <pattern-item n="adv"/>
718 <pattern-item n="SAdj"/>
719 <pattern-item n="CM"/>
720 <pattern-item n="SAdj"/>
721 <pattern-item n="CM"/>
722 <pattern-item n="SAdj"/>
723 <pattern-item n="and_or"/>
724 <pattern-item n="SAdj"/>
725 </pattern>
726 <action>
727 <call-macro n="kunordigo_nbr">
728 <with-param pos="2"/>
729 <with-param pos="4"/>
730 </call-macro>
731 <call-macro n="kunordigo_nbr">
732 <with-param pos="2"/>
733 <with-param pos="6"/>
734 </call-macro>
735 <call-macro n="kunordigo_nbr">
736 <with-param pos="2"/>
737 <with-param pos="8"/>
738 </call-macro>
739 <out>
740 <chunk>
741 <clip pos="2" part="lem"/>
742 <clip pos="2" part="tags"/>
743 <lit v="{"/>
744 <clip pos="1" part="content"/>
745 <b pos="1"/>
746 <clip pos="2" part="content"/>
747 <b pos="2"/>
748 <clip pos="3" part="content"/>
749 <b pos="3"/>
750 <clip pos="4" part="content"/>
751 <b pos="4"/>
752 <clip pos="5" part="content"/>
753 <b pos="5"/>
754 <clip pos="6" part="content"/>
755 <b pos="6"/>
756 <clip pos="7" part="content"/>
757 <b pos="7"/>
758 <clip pos="8" part="content"/>
759 <lit v="}"/>
760 </chunk>
761 </out>
762 </action>
763 </rule>
764
765
766 <rule comment="REGLA: SAdj, SAdj, SAdj, SAdj and/or SAdj - SAdj ">
767 <pattern>
768 <pattern-item n="SAdj"/>
769 <pattern-item n="CM"/>
770 <pattern-item n="SAdj"/>
771 <pattern-item n="CM"/>
772 <pattern-item n="SAdj"/>
773 <pattern-item n="CM"/>
774 <pattern-item n="SAdj"/>
775 <pattern-item n="and_or"/>
776 <pattern-item n="SAdj"/>
777 </pattern>
778 <action>
779 <call-macro n="kunordigo_nbr">
780 <with-param pos="1"/>
781 <with-param pos="3"/>
782 </call-macro>
783 <call-macro n="kunordigo_nbr">
784 <with-param pos="1"/>
785 <with-param pos="5"/>
786 </call-macro>
787 <call-macro n="kunordigo_nbr">
788 <with-param pos="1"/>
789 <with-param pos="7"/>
790 </call-macro>
791 <call-macro n="kunordigo_nbr">
792 <with-param pos="1"/>
793 <with-param pos="9"/>
794 </call-macro>
795 <out>
796 <chunk>
797 <clip pos="1" part="lem"/>
798 <clip pos="1" part="tags"/>
799 <lit v="{"/>
800 <clip pos="1" part="content"/>
801 <b pos="1"/>
802 <clip pos="2" part="content"/>
803 <b pos="2"/>
804 <clip pos="3" part="content"/>
805 <b pos="3"/>
806 <clip pos="4" part="content"/>
807 <b pos="4"/>
808 <clip pos="5" part="content"/>
809 <b pos="5"/>
810 <clip pos="6" part="content"/>
811 <b pos="6"/>
812 <clip pos="7" part="content"/>
813 <b pos="7"/>
814 <clip pos="8" part="content"/>
815 <b pos="6"/>
816 <clip pos="9" part="content"/>
817 <lit v="}"/>
818 </chunk>
819 </out>
820 </action>
821 </rule>
822
823
824 <rule comment="REGLA: ADV SAdj, SAdj, SAdj and/or SAdj - SAdj ">
825 <pattern>
826 <pattern-item n="adv"/>
827 <pattern-item n="SAdj"/>
828 <pattern-item n="CM"/>
829 <pattern-item n="SAdj"/>
830 <pattern-item n="CM"/>
831 <pattern-item n="SAdj"/>
832 <pattern-item n="CM"/>
833 <pattern-item n="SAdj"/>
834 <pattern-item n="and_or"/>
835 <pattern-item n="SAdj"/>
836 </pattern>
837 <action>
838 <call-macro n="kunordigo_nbr">
839 <with-param pos="2"/>
840 <with-param pos="4"/>
841 </call-macro>
842 <call-macro n="kunordigo_nbr">
843 <with-param pos="2"/>
844 <with-param pos="6"/>
845 </call-macro>
846 <call-macro n="kunordigo_nbr">
847 <with-param pos="2"/>
848 <with-param pos="8"/>
849 </call-macro>
850 <call-macro n="kunordigo_nbr">
851 <with-param pos="2"/>
852 <with-param pos="10"/>
853 </call-macro>
854 <out>
855 <chunk>
856 <clip pos="2" part="lem"/>
857 <clip pos="2" part="tags"/>
858 <lit v="{"/>
859 <clip pos="1" part="content"/>
860 <b pos="1"/>
861 <clip pos="2" part="content"/>
862 <b pos="2"/>
863 <clip pos="3" part="content"/>
864 <b pos="3"/>
865 <clip pos="4" part="content"/>
866 <b pos="4"/>
867 <clip pos="5" part="content"/>
868 <b pos="5"/>
869 <clip pos="6" part="content"/>
870 <b pos="6"/>
871 <clip pos="7" part="content"/>
872 <b pos="7"/>
873 <clip pos="8" part="content"/>
874 <b pos="8"/>
875 <clip pos="9" part="content"/>
876 <b pos="9"/>
877 <clip pos="10" part="content"/>
878 <lit v="}"/>
879 </chunk>
880 </out>
881 </action>
882 </rule>
883
884
885 <rule comment="REGLA: DET ADV SAdj - SAdj ">
886 <pattern>
887 <pattern-item n="det"/>
888 <pattern-item n="adv"/>
889 <pattern-item n="SAdj"/>
890 </pattern>
891 <action>
892 <call-macro n="kunordigo_nbr">
893 <with-param pos="1"/>
894 <with-param pos="3"/>
895 </call-macro>
896 <out>
897 <chunk>
898 <get-case-from pos="1"><clip pos="3" part="lem"/></get-case-from>
899 <clip pos="3" part="tags"/>
900 <lit v="{"/>
901 <clip pos="1" part="content"/>
902 <b pos="1"/>
903 <clip pos="2" part="content"/>
904 <b pos="2"/>
905 <clip pos="3" part="content"/>
906 <lit v="}"/>
907 </chunk>
908 </out>
909 </action>
910 </rule>
911
912
913 <!-- Reguloj de SN -->
914
915 <rule comment="REGLA: DET SN - SN ">
916 <pattern>
917 <pattern-item n="det"/>
918 <pattern-item n="SNnodet"/>
919 </pattern>
920 <action>
921 <call-macro n="kunordigo_nbr">
922 <with-param pos="1"/>
923 <with-param pos="2"/>
924 </call-macro>
925 <call-macro n="kunordigo_gen">
926 <with-param pos="1"/>
927 <with-param pos="2"/>
928 </call-macro>
929 <choose>
930 <when>
931 <test>
932 <equal caseless="yes"><clip pos="1" part="lem"/><lit v="un"/></equal>
933 </test>
934 <call-macro n="f_bcond"><with-param pos="1"/><with-param pos="2"/></call-macro>
935 <out>
936 <chunk>
937 <get-case-from pos="1"><lit v="det_nom1"/></get-case-from>
938 <clip pos="2" part="tags"/>
939 <lit v="{"/>
940 <clip pos="2" part="content"/>
941 <lit v="}"/>
942 </chunk>
943 </out>
944 </when>
945 <otherwise>
946 <out>
947 <chunk>
948 <get-case-from pos="1"><lit v="det_nom2"/></get-case-from>
949 <clip pos="2" part="tags"/>
950 <lit v="{"/>
951 <clip pos="1" part="content"/>
952 <b pos="1"/>
953 <clip pos="2" part="content"/>
954 <lit v="}"/>
955 </chunk>
956 </out>
957 </otherwise>
958 </choose>
959 </action>
960 </rule>
961
962
963 <rule comment="REGLA: DET SA SN - SN ">
964 <pattern>
965 <pattern-item n="det"/>
966 <pattern-item n="SAnodet"/>
967 <pattern-item n="SNnodet"/>
968 </pattern>
969 <action>
970 <call-macro n="kunordigo_nbr">
971 <with-param pos="1"/>
972 <with-param pos="3"/>
973 </call-macro>
974 <call-macro n="kunordigo_gen">
975 <with-param pos="1"/>
976 <with-param pos="3"/>
977 </call-macro>
978 <choose>
979 <when>
980 <test>
981 <equal caseless="yes"><clip pos="1" part="lem"/><lit v="un"/></equal>
982 </test>
983 <call-macro n="f_bcond"><with-param pos="1"/><with-param pos="2"/></call-macro>
984 <out>
985 <chunk>
986 <get-case-from pos="1"><lit v="det_nom1"/></get-case-from>
987 <clip pos="2" part="tags"/>
988 <lit v="{"/>
989 <clip pos="2" part="content"/>
990 <b pos="2"/>
991 <clip pos="3" part="content"/>
992 <lit v="}"/>
993 </chunk>
994 </out>
995 </when>
996 <otherwise>
997 <out>
998 <chunk>
999 <get-case-from pos="1"><lit v="det_nom2"/></get-case-from>
1000 <clip pos="2" part="tags"/>
1001 <lit v="{"/>
1002 <clip pos="1" part="content"/>
1003 <b pos="1"/>
1004 <clip pos="2" part="content"/>
1005 <b pos="2"/>
1006 <clip pos="3" part="content"/>
1007 <lit v="}"/>
1008 </chunk>
1009 </out>
1010 </otherwise>
1011 </choose>
1012 </action>
1013 </rule>
1014
1015
1016 <rule comment="REGLA: LE SN - SN (kunigas misanalizitan artikolon kiel pronomon">
1017 <pattern>
1018 <pattern-item n="le_prn"/>
1019 <pattern-item n="SNSA_nopron"/>
1020 </pattern>
1021 <action>
1022
1023 <call-macro n="kunordigo_nbr">
1024 <with-param pos="1"/>
1025 <with-param pos="2"/>
1026 </call-macro>
1027 <call-macro n="kunordigo_gen">
1028 <with-param pos="1"/>
1029 <with-param pos="2"/>
1030 </call-macro>
1031
1032 <out>
1033 <chunk>
1034 <get-case-from pos="1"><clip pos="2" part="lem"/></get-case-from>
1035 <clip pos="2" part="tags"/>
1036 <lit v="{^"/>
1037 <get-case-from pos="1">
1038 <lit v="la"/>
1039 </get-case-from>
1040 <lit-tag v="det.def.sg.nom"/>
1041 <lit v="$"/>
1042 <b pos="1"/>
1043 <clip pos="2" part="content"/>
1044 <lit v="}"/>
1045 </chunk>
1046 </out>
1047 </action>
1048 </rule>
1049
1050
1051 <!-- que -->
1052
1053 <rule comment="REGLA: SN QUE - SN KIU ">
1054 <pattern>
1055 <pattern-item n="SN_nopron_obj_dat"/>
1056 <pattern-item n="que_cnj"/>
1057 </pattern>
1058 <action>
1059 <out>
1060 <chunk>
1061 <clip pos="1" part="whole"/>
1062 </chunk>
1063 <b pos="1"/>
1064 <chunk>
1065 <get-case-from pos="2">
1066 <lit v="prn"/>
1067 </get-case-from>
1068 <lit-tag v="SNrelatiu.rel.sp.nom.nom"/>
1069 <lit v="{^"/>
1070 <get-case-from pos="2">
1071 <lit v="kiu"/>
1072 </get-case-from>
1073 <lit-tag v="prn.rel.3.4"/>
1074 <lit v="$}"/>
1075 </chunk>
1076 </out>
1077 </action>
1078 </rule>
1079
1080
1081 <rule comment="REGLA: DET SN QUE - SN KIU ">
1082 <pattern>
1083 <pattern-item n="det"/>
1084 <pattern-item n="SNnodet"/>
1085 <pattern-item n="que_cnj"/>
1086 </pattern>
1087 <action>
1088 <call-macro n="kunordigo_nbr">
1089 <with-param pos="1"/>
1090 <with-param pos="2"/>
1091 </call-macro>
1092 <call-macro n="kunordigo_gen">
1093 <with-param pos="1"/>
1094 <with-param pos="2"/>
1095 </call-macro>
1096 <choose>
1097 <when>
1098 <test>
1099 <equal caseless="yes"><clip pos="1" part="lem"/><lit v="un"/></equal>
1100 </test>
1101 <call-macro n="f_bcond"><with-param pos="1"/><with-param pos="2"/></call-macro>
1102 <out>
1103 <chunk>
1104 <get-case-from pos="1"><lit v="det_nom1"/></get-case-from>
1105 <clip pos="2" part="tags"/>
1106 <lit v="{"/>
1107 <clip pos="2" part="content"/>
1108 <lit v="}"/>
1109 </chunk>
1110 </out>
1111 </when>
1112 <otherwise>
1113 <out>
1114 <chunk>
1115 <get-case-from pos="1"><lit v="det_nom2"/></get-case-from>
1116 <clip pos="2" part="tags"/>
1117 <lit v="{"/>
1118 <clip pos="1" part="content"/>
1119 <b pos="1"/>
1120 <clip pos="2" part="content"/>
1121 <lit v="}"/>
1122 </chunk>
1123 </out>
1124 </otherwise>
1125 </choose>
1126 <out>
1127 <b pos="2"/>
1128 <chunk>
1129 <get-case-from pos="3">
1130 <lit v="prn"/>
1131 </get-case-from>
1132 <lit-tag v="SNrelatiu.rel.sp.nom.nom"/>
1133 <lit v="{^"/>
1134 <get-case-from pos="3">
1135 <lit v="kiu"/>
1136 </get-case-from>
1137 <lit-tag v="prn.rel.3.4"/>
1138 <lit v="$}"/>
1139 </chunk>
1140 </out>
1141 </action>
1142 </rule>
1143
1144
1145 <rule comment="REGLA: DET SA SN QUE - SN KIU ">
1146 <pattern>
1147 <pattern-item n="det"/>
1148 <pattern-item n="SAnodet"/>
1149 <pattern-item n="SNnodet"/>
1150 <pattern-item n="que_cnj"/>
1151 </pattern>
1152 <action>
1153 <call-macro n="kunordigo_nbr">
1154 <with-param pos="1"/>
1155 <with-param pos="3"/>
1156 </call-macro>
1157 <call-macro n="kunordigo_gen">
1158 <with-param pos="1"/>
1159 <with-param pos="3"/>
1160 </call-macro>
1161 <choose>
1162 <when>
1163 <test>
1164 <equal caseless="yes"><clip pos="1" part="lem"/><lit v="un"/></equal>
1165 </test>
1166 <call-macro n="f_bcond"><with-param pos="1"/><with-param pos="2"/></call-macro>
1167 <out>
1168 <chunk>
1169 <get-case-from pos="1"><lit v="det_nom3"/></get-case-from>
1170 <clip pos="3" part="tags"/>
1171 <lit v="{"/>
1172 <clip pos="2" part="content"/>
1173 <b pos="2"/>
1174 <clip pos="3" part="content"/>
1175 <lit v="}"/>
1176 </chunk>
1177 </out>
1178 </when>
1179 <otherwise>
1180 <out>
1181 <chunk>
1182 <get-case-from pos="1"><lit v="det_nom4"/></get-case-from>
1183 <clip pos="3" part="tags"/>
1184 <lit v="{"/>
1185 <clip pos="1" part="content"/>
1186 <b pos="1"/>
1187 <clip pos="2" part="content"/>
1188 <b pos="2"/>
1189 <clip pos="3" part="content"/>
1190 <lit v="}"/>
1191 </chunk>
1192 </out>
1193 </otherwise>
1194 </choose>
1195 <out>
1196 <b pos="3"/>
1197 <chunk>
1198 <get-case-from pos="4">
1199 <lit v="prn"/>
1200 </get-case-from>
1201 <lit-tag v="SNrelatiu.rel.sp.nom.nom"/>
1202 <lit v="{^"/>
1203 <get-case-from pos="4">
1204 <lit v="kiu"/>
1205 </get-case-from>
1206 <lit-tag v="prn.rel.3.4"/>
1207 <lit v="$}"/>
1208 </chunk>
1209 </out>
1210 </action>
1211 </rule>
1212
1213
1214 <!--
1215 Ne plu necesa kun la nova prob
1216 <rule comment="REGLA: LE SN QUE - SN KIU (kunigas misanalizitan artikolon kiel pronomon">
1217 <pattern>
1218 <pattern-item n="le_prn"/>
1219 <pattern-item n="SNSA_nopron"/>
1220 <pattern-item n="que_cnj"/>
1221 </pattern>
1222 <action>
1223
1224 <call-macro n="kunordigo_nbr">
1225 <with-param pos="1"/>
1226 <with-param pos="2"/>
1227 </call-macro>
1228 <call-macro n="kunordigo_gen">
1229 <with-param pos="1"/>
1230 <with-param pos="2"/>
1231 </call-macro>
1232
1233 <out>
1234 <chunk>
1235 <get-case-from pos="1"><clip pos="2" part="lem"/></get-case-from>
1236 <clip pos="2" part="tags"/>
1237 <lit v="{^"/>
1238 <get-case-from pos="1">
1239 <lit v="la"/>
1240 </get-case-from>
1241 <lit-tag v="det.def.sg.nom"/>
1242 <lit v="$"/>
1243 <b pos="1"/>
1244 <clip pos="2" part="content"/>
1245 <lit v="}"/>
1246 </chunk>
1247 <b pos="2"/>
1248 <chunk>
1249 <get-case-from pos="3">
1250 <lit v="prn"/>
1251 </get-case-from>
1252 <lit-tag v="SNrelatiu.rel.sp.nom.nom"/>
1253 <lit v="{^"/>
1254 <get-case-from pos="3">
1255 <lit v="kiu"/>
1256 </get-case-from>
1257 <lit-tag v="prn.rel.3.4"/>
1258 <lit v="$}"/>
1259 </chunk>
1260 </out>
1261 </action>
1262 </rule>
1263 -->
1264
1265
1266 <!-- Reguloj de artikolo DU/DES, DES AUTRES -->
1267 <!-- En jesaj frazoj temas pri 2 bazaj reguloj (de le SN, de le SA SN),
1268 en kiuj oni forigas 'de le' (aux nur 'de', se temas pri "des autres") en du cirkonstancioj:
1269 post SVtr aŭ SVser kaj post KE (post punkto estas jam farite en t1x).
1270 La afero komplikiĝas pro la eblo de adverboj kaj pronomoj inter la verboj kaj la nomgrupo enkondukita de la artikolo.
1271 (post KIU la afero ne klaras, i.a. ĉar ĝi plu estas ne malofte analizata en kompleksaj komparoj)
1272 En la neaj frazoj, tiam temas pri "de SN" kaj "de SA SN": j'ai des (de+le) amis / je n'ai pas d'amis.
1273 -->
1274
1275 <rule comment="REGLA: SVtrser de le SN - SVtrser SN ">
1276 <pattern>
1277 <pattern-item n="SVtrser"/>
1278 <pattern-item n="de"/>
1279 <pattern-item n="le_det"/>
1280 <pattern-item n="SNnodet"/>
1281 </pattern>
1282 <action>
1283 <call-macro n="kunordigo_nbr">
1284 <with-param pos="3"/>
1285 <with-param pos="4"/>
1286 </call-macro>
1287 <call-macro n="kunordigo_gen">
1288 <with-param pos="3"/>
1289 <with-param pos="4"/>
1290 </call-macro>
1291 <out>
1292 <chunk>
1293 <clip pos="1" part="whole"/>
1294 </chunk>
1295 <b pos="1"/>
1296 </out>
1297 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
1298 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
1299 <out>
1300 <chunk>
1301 <lit v="det_nom"/>
1302 <clip pos="4" part="tags"/>
1303 <lit v="{"/>
1304 <clip pos="4" part="content"/>
1305 <lit v="}"/>
1306 </chunk>
1307 </out>
1308 </action>
1309 </rule>
1310
1311
1312 <rule comment="REGLA: SVtrser de le SA SN - SVtrser SN ">
1313 <pattern>
1314 <pattern-item n="SVtrser"/>
1315 <pattern-item n="de"/>
1316 <pattern-item n="le_det"/>
1317 <pattern-item n="SAnodet"/>
1318 <pattern-item n="SNnodet"/>
1319 </pattern>
1320 <action>
1321 <call-macro n="kunordigo_nbr">
1322 <with-param pos="3"/>
1323 <with-param pos="5"/>
1324 </call-macro>
1325 <call-macro n="kunordigo_gen">
1326 <with-param pos="3"/>
1327 <with-param pos="5"/>
1328 </call-macro>
1329 <out>
1330 <chunk>
1331 <clip pos="1" part="whole"/>
1332 </chunk>
1333 <b pos="1"/>
1334 </out>
1335 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
1336 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
1337 <out>
1338 <chunk>
1339 <get-case-from pos="3"><lit v="det_nom"/></get-case-from>
1340 <clip pos="5" part="tags"/>
1341 <lit v="{"/>
1342 <clip pos="4" part="content"/>
1343 <b pos="4"/>
1344 <clip pos="5" part="content"/>
1345 <lit v="}"/>
1346 </chunk>
1347 </out>
1348 </action>
1349 </rule>
1350
1351
1352 <rule comment="REGLA: SVtrser ADV de le SN - SVtrser SN ">
1353 <pattern>
1354 <pattern-item n="SVtrser"/>
1355 <pattern-item n="adv_cnj"/>
1356 <pattern-item n="de"/>
1357 <pattern-item n="le_det"/>
1358 <pattern-item n="SNnodet"/>
1359 </pattern>
1360 <action>
1361 <call-macro n="kunordigo_nbr">
1362 <with-param pos="4"/>
1363 <with-param pos="5"/>
1364 </call-macro>
1365 <call-macro n="kunordigo_gen">
1366 <with-param pos="4"/>
1367 <with-param pos="5"/>
1368 </call-macro>
1369 <out>
1370 <chunk>
1371 <clip pos="1" part="lem"/>
1372 <clip pos="1" part="tags"/>
1373 <lit v="{"/>
1374 <clip pos="1" part="content"/>
1375 <b pos="1"/>
1376 <clip pos="2" part="content"/>
1377 <lit v="}"/>
1378 </chunk>
1379 <b pos="2"/>
1380 </out>
1381 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
1382 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
1383 <out>
1384 <chunk>
1385 <lit v="det_nom"/>
1386 <clip pos="5" part="tags"/>
1387 <lit v="{"/>
1388 <clip pos="5" part="content"/>
1389 <lit v="}"/>
1390 </chunk>
1391 </out>
1392 </action>
1393 </rule>
1394
1395
1396 <rule comment="REGLA: SVtrser ADV de le SA SN - SVtrser SN ">
1397 <pattern>
1398 <pattern-item n="SVtrser"/>
1399 <pattern-item n="adv_cnj"/>
1400 <pattern-item n="de"/>
1401 <pattern-item n="le_det"/>
1402 <pattern-item n="SAnodet"/>
1403 <pattern-item n="SNnodet"/>
1404 </pattern>
1405 <action>
1406 <call-macro n="kunordigo_nbr">
1407 <with-param pos="4"/>
1408 <with-param pos="6"/>
1409 </call-macro>
1410 <call-macro n="kunordigo_gen">
1411 <with-param pos="4"/>
1412 <with-param pos="6"/>
1413 </call-macro>
1414 <out>
1415 <chunk>
1416 <clip pos="1" part="lem"/>
1417 <clip pos="1" part="tags"/>
1418 <lit v="{"/>
1419 <clip pos="1" part="content"/>
1420 <b pos="1"/>
1421 <clip pos="2" part="content"/>
1422 <lit v="}"/>
1423 </chunk>
1424 <b pos="2"/>
1425 </out>
1426 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
1427 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
1428 <out>
1429 <chunk>
1430 <get-case-from pos="4"><lit v="det_nom"/></get-case-from>
1431 <clip pos="6" part="tags"/>
1432 <lit v="{"/>
1433 <clip pos="5" part="content"/>
1434 <b pos="5"/>
1435 <clip pos="6" part="content"/>
1436 <lit v="}"/>
1437 </chunk>
1438 </out>
1439 </action>
1440 </rule>
1441
1442
1443 <rule comment="REGLA: SVtrser ADV ADV de le SN - SVtrser SN ">
1444 <pattern>
1445 <pattern-item n="SVtrser"/>
1446 <pattern-item n="adv_cnj"/>
1447 <pattern-item n="adv"/>
1448 <pattern-item n="de"/>
1449 <pattern-item n="le_det"/>
1450 <pattern-item n="SNnodet"/>
1451 </pattern>
1452 <action>
1453 <call-macro n="kunordigo_nbr">
1454 <with-param pos="5"/>
1455 <with-param pos="6"/>
1456 </call-macro>
1457 <call-macro n="kunordigo_gen">
1458 <with-param pos="5"/>
1459 <with-param pos="6"/>
1460 </call-macro>
1461 <out>
1462 <chunk>
1463 <clip pos="1" part="lem"/>
1464 <clip pos="1" part="tags"/>
1465 <lit v="{"/>
1466 <clip pos="1" part="content"/>
1467 <b pos="1"/>
1468 <clip pos="2" part="content"/>
1469 <b pos="2"/>
1470 <clip pos="3" part="content"/>
1471 <lit v="}"/>
1472 </chunk>
1473 <b pos="3"/>
1474 </out>
1475 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
1476 <call-macro n="f_bcond"><with-param pos="5"/><with-param pos="6"/></call-macro>
1477 <out>
1478 <chunk>
1479 <lit v="det_nom"/>
1480 <clip pos="6" part="tags"/>
1481 <lit v="{"/>
1482 <clip pos="6" part="content"/>
1483 <lit v="}"/>
1484 </chunk>
1485 </out>
1486 </action>
1487 </rule>
1488
1489
1490 <rule comment="REGLA: SVtrser ADV ADV de le SA SN - SVtrser SN ">
1491 <pattern>
1492 <pattern-item n="SVtrser"/>
1493 <pattern-item n="adv_cnj"/>
1494 <pattern-item n="adv"/>
1495 <pattern-item n="de"/>
1496 <pattern-item n="le_det"/>
1497 <pattern-item n="SAnodet"/>
1498 <pattern-item n="SNnodet"/>
1499 </pattern>
1500 <action>
1501 <call-macro n="kunordigo_nbr">
1502 <with-param pos="5"/>
1503 <with-param pos="7"/>
1504 </call-macro>
1505 <call-macro n="kunordigo_gen">
1506 <with-param pos="5"/>
1507 <with-param pos="7"/>
1508 </call-macro>
1509 <out>
1510 <chunk>
1511 <clip pos="1" part="lem"/>
1512 <clip pos="1" part="tags"/>
1513 <lit v="{"/>
1514 <clip pos="1" part="content"/>
1515 <b pos="1"/>
1516 <clip pos="2" part="content"/>
1517 <b pos="2"/>
1518 <clip pos="3" part="content"/>
1519 <lit v="}"/>
1520 </chunk>
1521 <b pos="3"/>
1522 </out>
1523 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
1524 <call-macro n="f_bcond"><with-param pos="5"/><with-param pos="6"/></call-macro>
1525 <out>
1526 <chunk>
1527 <get-case-from pos="5"><lit v="det_nom"/></get-case-from>
1528 <clip pos="7" part="tags"/>
1529 <lit v="{"/>
1530 <clip pos="6" part="content"/>
1531 <b pos="6"/>
1532 <clip pos="7" part="content"/>
1533 <lit v="}"/>
1534 </chunk>
1535 </out>
1536 </action>
1537 </rule>
1538
1539
1540 <rule comment="REGLA: SVtrser PR ADV de le SN - SVtrser SN: il mangera jusqu'à demain des pommes ">
1541 <pattern>
1542 <pattern-item n="SVtrser"/>
1543 <pattern-item n="pr"/>
1544 <pattern-item n="adv"/>
1545 <pattern-item n="de"/>
1546 <pattern-item n="le_det"/>
1547 <pattern-item n="SNnodet"/>
1548 </pattern>
1549 <action>
1550 <call-macro n="kunordigo_nbr">
1551 <with-param pos="5"/>
1552 <with-param pos="6"/>
1553 </call-macro>
1554 <call-macro n="kunordigo_gen">
1555 <with-param pos="5"/>
1556 <with-param pos="6"/>
1557 </call-macro>
1558 <out>
1559 <chunk>
1560 <clip pos="1" part="lem"/>
1561 <clip pos="1" part="tags"/>
1562 <lit v="{"/>
1563 <clip pos="1" part="content"/>
1564 <b pos="1"/>
1565 <clip pos="2" part="content"/>
1566 <b pos="2"/>
1567 <clip pos="3" part="content"/>
1568 <lit v="}"/>
1569 </chunk>
1570 <b pos="3"/>
1571 </out>
1572 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
1573 <call-macro n="f_bcond"><with-param pos="5"/><with-param pos="6"/></call-macro>
1574 <out>
1575 <chunk>
1576 <lit v="det_nom"/>
1577 <clip pos="6" part="tags"/>
1578 <lit v="{"/>
1579 <clip pos="6" part="content"/>
1580 <lit v="}"/>
1581 </chunk>
1582 </out>
1583 </action>
1584 </rule>
1585
1586
1587 <rule comment="REGLA: SVtrser PRNdat de le SN - SVtrser SN ">
1588 <pattern>
1589 <pattern-item n="SVtrser"/>
1590 <pattern-item n="prn_dat"/>
1591 <pattern-item n="de"/>
1592 <pattern-item n="le_det"/>
1593 <pattern-item n="SNnodet"/>
1594 </pattern>
1595 <action>
1596 <call-macro n="kunordigo_nbr">
1597 <with-param pos="4"/>
1598 <with-param pos="5"/>
1599 </call-macro>
1600 <call-macro n="kunordigo_gen">
1601 <with-param pos="4"/>
1602 <with-param pos="5"/>
1603 </call-macro>
1604 <out>
1605 <chunk>
1606 <clip pos="1" part="whole"/>
1607 </chunk>
1608 <b pos="1"/>
1609 <chunk>
1610 <clip pos="2" part="whole"/>
1611 </chunk>
1612 <b pos="2"/>
1613 </out>
1614 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
1615 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
1616 <out>
1617 <chunk>
1618 <lit v="det_nom"/>
1619 <clip pos="5" part="tags"/>
1620 <lit v="{"/>
1621 <clip pos="5" part="content"/>
1622 <lit v="}"/>
1623 </chunk>
1624 </out>
1625 </action>
1626 </rule>
1627
1628
1629 <rule comment="REGLA: SVtrser PRNdat de le SA SN - SVtrser PRNdat SN ">
1630 <pattern>
1631 <pattern-item n="SVtrser"/>
1632 <pattern-item n="prn_dat"/>
1633 <pattern-item n="de"/>
1634 <pattern-item n="le_det"/>
1635 <pattern-item n="SAnodet"/>
1636 <pattern-item n="SNnodet"/>
1637 </pattern>
1638 <action>
1639 <call-macro n="kunordigo_nbr">
1640 <with-param pos="4"/>
1641 <with-param pos="6"/>
1642 </call-macro>
1643 <call-macro n="kunordigo_gen">
1644 <with-param pos="4"/>
1645 <with-param pos="6"/>
1646 </call-macro>
1647 <out>
1648 <chunk>
1649 <clip pos="1" part="whole"/>
1650 </chunk>
1651 <b pos="1"/>
1652 <chunk>
1653 <clip pos="2" part="whole"/>
1654 </chunk>
1655 <b pos="2"/>
1656 </out>
1657 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
1658 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
1659 <out>
1660 <chunk>
1661 <get-case-from pos="4"><lit v="det_nom"/></get-case-from>
1662 <clip pos="6" part="tags"/>
1663 <lit v="{"/>
1664 <clip pos="5" part="content"/>
1665 <b pos="5"/>
1666 <clip pos="6" part="content"/>
1667 <lit v="}"/>
1668 </chunk>
1669 </out>
1670 </action>
1671 </rule>
1672
1673
1674 <!-- des autres -->
1675
1676 <rule comment="REGLA: SVtrser des autres SN - SVtrser autres SN ">
1677 <pattern>
1678 <pattern-item n="SVtrser"/>
1679 <pattern-item n="de"/>
1680 <pattern-item n="un_autre_det_pl"/>
1681 <pattern-item n="SNnodet"/>
1682 </pattern>
1683 <action>
1684 <call-macro n="kunordigo_nbr">
1685 <with-param pos="3"/>
1686 <with-param pos="4"/>
1687 </call-macro>
1688 <call-macro n="kunordigo_gen">
1689 <with-param pos="3"/>
1690 <with-param pos="4"/>
1691 </call-macro>
1692 <out>
1693 <chunk>
1694 <clip pos="1" part="whole"/>
1695 </chunk>
1696 <b pos="1"/>
1697 </out>
1698 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
1699 <out>
1700 <chunk>
1701 <lit v="det_nom"/>
1702 <clip pos="4" part="tags"/>
1703 <lit v="{"/>
1704 <clip pos="3" part="content"/>
1705 <b pos="3"/>
1706 <clip pos="4" part="content"/>
1707 <lit v="}"/>
1708 </chunk>
1709 </out>
1710 </action>
1711 </rule>
1712
1713
1714 <rule comment="REGLA: SVtrser des autres SA SN - SVtrser autres SA SN ">
1715 <pattern>
1716 <pattern-item n="SVtrser"/>
1717 <pattern-item n="de"/>
1718 <pattern-item n="un_autre_det_pl"/>
1719 <pattern-item n="SAnodet"/>
1720 <pattern-item n="SNnodet"/>
1721 </pattern>
1722 <action>
1723 <call-macro n="kunordigo_nbr">
1724 <with-param pos="3"/>
1725 <with-param pos="5"/>
1726 </call-macro>
1727 <call-macro n="kunordigo_gen">
1728 <with-param pos="3"/>
1729 <with-param pos="5"/>
1730 </call-macro>
1731 <out>
1732 <chunk>
1733 <clip pos="1" part="whole"/>
1734 </chunk>
1735 <b pos="1"/>
1736 </out>
1737 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
1738 <out>
1739 <chunk>
1740 <get-case-from pos="3"><lit v="det_nom"/></get-case-from>
1741 <clip pos="5" part="tags"/>
1742 <lit v="{"/>
1743 <clip pos="3" part="content"/>
1744 <b pos="3"/>
1745 <clip pos="4" part="content"/>
1746 <b pos="4"/>
1747 <clip pos="5" part="content"/>
1748 <lit v="}"/>
1749 </chunk>
1750 </out>
1751 </action>
1752 </rule>
1753
1754
1755 <rule comment="REGLA: SVtrser des autres SN - SVtrser autres autres SN ">
1756 <pattern>
1757 <pattern-item n="SVtrser"/>
1758 <pattern-item n="adv_cnj"/>
1759 <pattern-item n="de"/>
1760 <pattern-item n="un_autre_det_pl"/>
1761 <pattern-item n="SNnodet"/>
1762 </pattern>
1763 <action>
1764 <call-macro n="kunordigo_nbr">
1765 <with-param pos="4"/>
1766 <with-param pos="5"/>
1767 </call-macro>
1768 <call-macro n="kunordigo_gen">
1769 <with-param pos="4"/>
1770 <with-param pos="5"/>
1771 </call-macro>
1772 <out>
1773 <chunk>
1774 <clip pos="1" part="lem"/>
1775 <clip pos="1" part="tags"/>
1776 <lit v="{"/>
1777 <clip pos="1" part="content"/>
1778 <b pos="1"/>
1779 <clip pos="2" part="content"/>
1780 <lit v="}"/>
1781 </chunk>
1782 <b pos="2"/>
1783 </out>
1784 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
1785 <out>
1786 <chunk>
1787 <lit v="det_nom"/>
1788 <clip pos="5" part="tags"/>
1789 <lit v="{"/>
1790 <clip pos="4" part="content"/>
1791 <b pos="4"/>
1792 <clip pos="5" part="content"/>
1793 <lit v="}"/>
1794 </chunk>
1795 </out>
1796 </action>
1797 </rule>
1798
1799
1800 <rule comment="REGLA: SVtrser ADV des autres SA SN - SVtrser autres SN ">
1801 <pattern>
1802 <pattern-item n="SVtrser"/>
1803 <pattern-item n="adv_cnj"/>
1804 <pattern-item n="de"/>
1805 <pattern-item n="un_autre_det_pl"/>
1806 <pattern-item n="SAnodet"/>
1807 <pattern-item n="SNnodet"/>
1808 </pattern>
1809 <action>
1810 <call-macro n="kunordigo_nbr">
1811 <with-param pos="4"/>
1812 <with-param pos="6"/>
1813 </call-macro>
1814 <call-macro n="kunordigo_gen">
1815 <with-param pos="4"/>
1816 <with-param pos="6"/>
1817 </call-macro>
1818 <out>
1819 <chunk>
1820 <clip pos="1" part="lem"/>
1821 <clip pos="1" part="tags"/>
1822 <lit v="{"/>
1823 <clip pos="1" part="content"/>
1824 <b pos="1"/>
1825 <clip pos="2" part="content"/>
1826 <lit v="}"/>
1827 </chunk>
1828 <b pos="2"/>
1829 </out>
1830 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
1831 <out>
1832 <chunk>
1833 <get-case-from pos="4"><lit v="det_nom"/></get-case-from>
1834 <clip pos="6" part="tags"/>
1835 <lit v="{"/>
1836 <clip pos="4" part="content"/>
1837 <b pos="4"/>
1838 <clip pos="5" part="content"/>
1839 <b pos="5"/>
1840 <clip pos="6" part="content"/>
1841 <lit v="}"/>
1842 </chunk>
1843 </out>
1844 </action>
1845 </rule>
1846
1847
1848 <rule comment="REGLA: SVtrser ADV ADV des autres SN - SVtrser autres SN ">
1849 <pattern>
1850 <pattern-item n="SVtrser"/>
1851 <pattern-item n="adv_cnj"/>
1852 <pattern-item n="adv"/>
1853 <pattern-item n="de"/>
1854 <pattern-item n="un_autre_det_pl"/>
1855 <pattern-item n="SNnodet"/>
1856 </pattern>
1857 <action>
1858 <call-macro n="kunordigo_nbr">
1859 <with-param pos="5"/>
1860 <with-param pos="6"/>
1861 </call-macro>
1862 <call-macro n="kunordigo_gen">
1863 <with-param pos="5"/>
1864 <with-param pos="6"/>
1865 </call-macro>
1866 <out>
1867 <chunk>
1868 <clip pos="1" part="lem"/>
1869 <clip pos="1" part="tags"/>
1870 <lit v="{"/>
1871 <clip pos="1" part="content"/>
1872 <b pos="1"/>
1873 <clip pos="2" part="content"/>
1874 <b pos="2"/>
1875 <clip pos="3" part="content"/>
1876 <lit v="}"/>
1877 </chunk>
1878 <b pos="3"/>
1879 </out>
1880 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
1881 <out>
1882 <chunk>
1883 <lit v="det_nom"/>
1884 <clip pos="6" part="tags"/>
1885 <lit v="{"/>
1886 <clip pos="5" part="content"/>
1887 <b pos="5"/>
1888 <clip pos="6" part="content"/>
1889 <lit v="}"/>
1890 </chunk>
1891 </out>
1892 </action>
1893 </rule>
1894
1895
1896 <rule comment="REGLA: SVtrser ADV ADV des autres SA SN - SVtrser autres SN ">
1897 <pattern>
1898 <pattern-item n="SVtrser"/>
1899 <pattern-item n="adv_cnj"/>
1900 <pattern-item n="adv"/>
1901 <pattern-item n="de"/>
1902 <pattern-item n="un_autre_det_pl"/>
1903 <pattern-item n="SAnodet"/>
1904 <pattern-item n="SNnodet"/>
1905 </pattern>
1906 <action>
1907 <call-macro n="kunordigo_nbr">
1908 <with-param pos="5"/>
1909 <with-param pos="7"/>
1910 </call-macro>
1911 <call-macro n="kunordigo_gen">
1912 <with-param pos="5"/>
1913 <with-param pos="7"/>
1914 </call-macro>
1915 <out>
1916 <chunk>
1917 <clip pos="1" part="lem"/>
1918 <clip pos="1" part="tags"/>
1919 <lit v="{"/>
1920 <clip pos="1" part="content"/>
1921 <b pos="1"/>
1922 <clip pos="2" part="content"/>
1923 <b pos="2"/>
1924 <clip pos="3" part="content"/>
1925 <lit v="}"/>
1926 </chunk>
1927 <b pos="3"/>
1928 </out>
1929 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
1930 <out>
1931 <chunk>
1932 <get-case-from pos="5"><lit v="det_nom"/></get-case-from>
1933 <clip pos="7" part="tags"/>
1934 <lit v="{"/>
1935 <clip pos="5" part="content"/>
1936 <b pos="5"/>
1937 <clip pos="6" part="content"/>
1938 <b pos="6"/>
1939 <clip pos="7" part="content"/>
1940 <lit v="}"/>
1941 </chunk>
1942 </out>
1943 </action>
1944 </rule>
1945
1946
1947 <rule comment="REGLA: SVtrser PR ADV des autres SN - SVtrser SN: il mangera jusqu'à demain des pommes ">
1948 <pattern>
1949 <pattern-item n="SVtrser"/>
1950 <pattern-item n="pr"/>
1951 <pattern-item n="adv"/>
1952 <pattern-item n="de"/>
1953 <pattern-item n="un_autre_det_pl"/>
1954 <pattern-item n="SNnodet"/>
1955 </pattern>
1956 <action>
1957 <call-macro n="kunordigo_nbr">
1958 <with-param pos="5"/>
1959 <with-param pos="6"/>
1960 </call-macro>
1961 <call-macro n="kunordigo_gen">
1962 <with-param pos="5"/>
1963 <with-param pos="6"/>
1964 </call-macro>
1965 <out>
1966 <chunk>
1967 <clip pos="1" part="lem"/>
1968 <clip pos="1" part="tags"/>
1969 <lit v="{"/>
1970 <clip pos="1" part="content"/>
1971 <b pos="1"/>
1972 <clip pos="2" part="content"/>
1973 <b pos="2"/>
1974 <clip pos="3" part="content"/>
1975 <lit v="}"/>
1976 </chunk>
1977 <b pos="3"/>
1978 </out>
1979 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
1980 <out>
1981 <chunk>
1982 <lit v="det_nom"/>
1983 <clip pos="6" part="tags"/>
1984 <lit v="{"/>
1985 <clip pos="5" part="content"/>
1986 <b pos="5"/>
1987 <clip pos="6" part="content"/>
1988 <lit v="}"/>
1989 </chunk>
1990 </out>
1991 </action>
1992 </rule>
1993
1994
1995 <rule comment="REGLA: SVtrser PRNdat des autres SN - SVtrser autres SN ">
1996 <pattern>
1997 <pattern-item n="SVtrser"/>
1998 <pattern-item n="prn_dat"/>
1999 <pattern-item n="de"/>
2000 <pattern-item n="un_autre_det_pl"/>
2001 <pattern-item n="SNnodet"/>
2002 </pattern>
2003 <action>
2004 <call-macro n="kunordigo_nbr">
2005 <with-param pos="4"/>
2006 <with-param pos="5"/>
2007 </call-macro>
2008 <call-macro n="kunordigo_gen">
2009 <with-param pos="4"/>
2010 <with-param pos="5"/>
2011 </call-macro>
2012 <out>
2013 <chunk>
2014 <clip pos="1" part="whole"/>
2015 </chunk>
2016 <b pos="1"/>
2017 <chunk>
2018 <clip pos="2" part="whole"/>
2019 </chunk>
2020 <b pos="2"/>
2021 </out>
2022 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
2023 <out>
2024 <chunk>
2025 <lit v="det_nom"/>
2026 <clip pos="5" part="tags"/>
2027 <lit v="{"/>
2028 <clip pos="4" part="content"/>
2029 <b pos="4"/>
2030 <clip pos="5" part="content"/>
2031 <lit v="}"/>
2032 </chunk>
2033 </out>
2034 </action>
2035 </rule>
2036
2037
2038 <rule comment="REGLA: SVtrser PRNdat des autres SA SN - SVtrser PRNdat autres SN ">
2039 <pattern>
2040 <pattern-item n="SVtrser"/>
2041 <pattern-item n="prn_dat"/>
2042 <pattern-item n="de"/>
2043 <pattern-item n="un_autre_det_pl"/>
2044 <pattern-item n="SAnodet"/>
2045 <pattern-item n="SNnodet"/>
2046 </pattern>
2047 <action>
2048 <call-macro n="kunordigo_nbr">
2049 <with-param pos="4"/>
2050 <with-param pos="6"/>
2051 </call-macro>
2052 <call-macro n="kunordigo_gen">
2053 <with-param pos="4"/>
2054 <with-param pos="6"/>
2055 </call-macro>
2056 <out>
2057 <chunk>
2058 <clip pos="1" part="whole"/>
2059 </chunk>
2060 <b pos="1"/>
2061 <chunk>
2062 <clip pos="2" part="whole"/>
2063 </chunk>
2064 <b pos="2"/>
2065 </out>
2066 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
2067 <out>
2068 <chunk>
2069 <get-case-from pos="4"><lit v="det_nom"/></get-case-from>
2070 <clip pos="6" part="tags"/>
2071 <lit v="{"/>
2072 <clip pos="4" part="content"/>
2073 <b pos="4"/>
2074 <clip pos="5" part="content"/>
2075 <b pos="5"/>
2076 <clip pos="6" part="content"/>
2077 <lit v="}"/>
2078 </chunk>
2079 </out>
2080 </action>
2081 </rule>
2082
2083
2084
2085 <!-- negativaj frazoj -->
2086
2087 <rule comment="REGLA: NE SVtrser de SN - NE SVtrser SN ">
2088 <pattern>
2089 <pattern-item n="ne"/>
2090 <pattern-item n="SVtrser"/>
2091 <pattern-item n="de"/>
2092 <pattern-item n="SNnodet"/>
2093 </pattern>
2094 <action>
2095 <out>
2096 <chunk>
2097 <clip pos="1" part="whole"/>
2098 </chunk>
2099 <b pos="1"/>
2100 <chunk>
2101 <clip pos="2" part="whole"/>
2102 </chunk>
2103 <b pos="2"/>
2104 </out>
2105 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
2106 <out>
2107 <chunk>
2108 <clip pos="4" part="whole"/>
2109 </chunk>
2110 </out>
2111 </action>
2112 </rule>
2113
2114
2115 <rule comment="REGLA: NE SVtrser de SA SN - NE SVtrser SN ">
2116 <pattern>
2117 <pattern-item n="ne"/>
2118 <pattern-item n="SVtrser"/>
2119 <pattern-item n="de"/>
2120 <pattern-item n="SAnodet"/>
2121 <pattern-item n="SNnodet"/>
2122 </pattern>
2123 <action>
2124 <out>
2125 <chunk>
2126 <clip pos="1" part="whole"/>
2127 <b pos="1"/>
2128 </chunk>
2129 <chunk>
2130 <clip pos="2" part="whole"/>
2131 </chunk>
2132 <b pos="2"/>
2133 </out>
2134 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
2135 <out>
2136 <chunk>
2137 <get-case-from pos="3"><lit v="det_nom"/></get-case-from>
2138 <clip pos="5" part="tags"/>
2139 <lit v="{"/>
2140 <clip pos="4" part="content"/>
2141 <b pos="4"/>
2142 <clip pos="5" part="content"/>
2143 <lit v="}"/>
2144 </chunk>
2145 </out>
2146 </action>
2147 </rule>
2148
2149
2150 <rule comment="REGLA: NE SVtrser PRNdat de SN - NE SVtrser PRNdat SN ">
2151 <pattern>
2152 <pattern-item n="ne"/>
2153 <pattern-item n="SVtrser"/>
2154 <pattern-item n="prn_dat"/>
2155 <pattern-item n="de"/>
2156 <pattern-item n="SNnodet"/>
2157 </pattern>
2158 <action>
2159 <out>
2160 <chunk>
2161 <clip pos="1" part="whole"/>
2162 </chunk>
2163 <b pos="1"/>
2164 <chunk>
2165 <clip pos="2" part="whole"/>
2166 </chunk>
2167 <b pos="2"/>
2168 <chunk>
2169 <clip pos="3" part="whole"/>
2170 </chunk>
2171 <b pos="3"/>
2172 </out>
2173 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
2174 <out>
2175 <chunk>
2176 <clip pos="5" part="whole"/>
2177 </chunk>
2178 </out>
2179 </action>
2180 </rule>
2181
2182
2183 <rule comment="REGLA: NE SVtrser PRNdat de SA SN - NE SVtrser PRNdat SN ">
2184 <pattern>
2185 <pattern-item n="ne"/>
2186 <pattern-item n="SVtrser"/>
2187 <pattern-item n="prn_dat"/>
2188 <pattern-item n="de"/>
2189 <pattern-item n="SAnodet"/>
2190 <pattern-item n="SNnodet"/>
2191 </pattern>
2192 <action>
2193 <out>
2194 <chunk>
2195 <clip pos="1" part="whole"/>
2196 <b pos="1"/>
2197 </chunk>
2198 <chunk>
2199 <clip pos="2" part="whole"/>
2200 </chunk>
2201 <b pos="2"/>
2202 <chunk>
2203 <clip pos="3" part="whole"/>
2204 </chunk>
2205 <b pos="3"/>
2206 </out>
2207 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
2208 <out>
2209 <chunk>
2210 <get-case-from pos="4"><lit v="det_nom"/></get-case-from>
2211 <clip pos="5" part="tags"/>
2212 <lit v="{"/>
2213 <clip pos="6" part="content"/>
2214 <b pos="5"/>
2215 <clip pos="6" part="content"/>
2216 <lit v="}"/>
2217 </chunk>
2218 </out>
2219 </action>
2220 </rule>
2221
2222
2223 <rule comment="REGLA: SVtrser PRNdat NUR de SN - SVtrser PRNdat NUR SN ">
2224 <pattern>
2225 <pattern-item n="SVtrser"/>
2226 <pattern-item n="prn_dat"/>
2227 <pattern-item n="nur"/>
2228 <pattern-item n="de"/>
2229 <pattern-item n="SNnodet"/>
2230 </pattern>
2231 <action>
2232 <out>
2233 <chunk>
2234 <clip pos="1" part="whole"/>
2235 </chunk>
2236 <b pos="1"/>
2237 <chunk>
2238 <clip pos="2" part="whole"/>
2239 </chunk>
2240 <b pos="2"/>
2241 <chunk>
2242 <clip pos="3" part="whole"/>
2243 </chunk>
2244 <b pos="3"/>
2245 </out>
2246 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
2247 <out>
2248 <chunk>
2249 <clip pos="5" part="whole"/>
2250 </chunk>
2251 </out>
2252 </action>
2253 </rule>
2254
2255
2256 <rule comment="REGLA: SVtrser PRNdat NUR de SA SN - SVtrser PRNdat NUR SN ">
2257 <pattern>
2258 <pattern-item n="SVtrser"/>
2259 <pattern-item n="prn_dat"/>
2260 <pattern-item n="nur"/>
2261 <pattern-item n="de"/>
2262 <pattern-item n="SAnodet"/>
2263 <pattern-item n="SNnodet"/>
2264 </pattern>
2265 <action>
2266 <out>
2267 <chunk>
2268 <clip pos="1" part="whole"/>
2269 <b pos="1"/>
2270 </chunk>
2271 <chunk>
2272 <clip pos="2" part="whole"/>
2273 </chunk>
2274 <b pos="2"/>
2275 <chunk>
2276 <clip pos="3" part="whole"/>
2277 </chunk>
2278 <b pos="3"/>
2279 </out>
2280 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
2281 <out>
2282 <chunk>
2283 <get-case-from pos="4"><lit v="det_nom"/></get-case-from>
2284 <clip pos="6" part="tags"/>
2285 <lit v="{"/>
2286 <clip pos="5" part="content"/>
2287 <b pos="5"/>
2288 <clip pos="6" part="content"/>
2289 <lit v="}"/>
2290 </chunk>
2291 </out>
2292 </action>
2293 </rule>
2294
2295
2296 <!--
2297 <rule comment="REGLA: NE SVtrser ADV de SN - NE SVtrser SN ">
2298 <pattern>
2299 <pattern-item n="ne"/>
2300 <pattern-item n="SVtrser"/>
2301 <pattern-item n="adv_cnj"/>
2302 <pattern-item n="de"/>
2303 <pattern-item n="SNnodet"/>
2304 </pattern>
2305 <action>
2306 <out>
2307 <chunk>
2308 <clip pos="1" part="whole"/>
2309 </chunk>
2310 <b pos="1"/>
2311 <chunk>
2312 <clip pos="2" part="lem"/>
2313 <clip pos="2" part="tags"/>
2314 <lit v="{"/>
2315 <clip pos="2" part="content"/>
2316 <b pos="2"/>
2317 <clip pos="3" part="content"/>
2318 <lit v="}"/>
2319 </chunk>
2320 <b pos="3"/>
2321 </out>
2322 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
2323 <out>
2324 <chunk>
2325 <lit v="det_nom"/>
2326 <clip pos="5" part="tags"/>
2327 <lit v="{"/>
2328 <clip pos="5" part="content"/>
2329 <lit v="}"/>
2330 </chunk>
2331 </out>
2332 </action>
2333 </rule>
2334
2335
2336 <rule comment="REGLA: NE SVtrser ADV de SA SN - NE SVtrser SN ">
2337 <pattern>
2338 <pattern-item n="ne"/>
2339 <pattern-item n="SVtrser"/>
2340 <pattern-item n="adv_cnj"/>
2341 <pattern-item n="de"/>
2342 <pattern-item n="SAnodet"/>
2343 <pattern-item n="SNnodet"/>
2344 </pattern>
2345 <action>
2346 <out>
2347 <chunk>
2348 <clip pos="1" part="whole"/>
2349 </chunk>
2350 <b pos="1"/>
2351 <chunk>
2352 <clip pos="2" part="lem"/>
2353 <clip pos="2" part="tags"/>
2354 <lit v="{"/>
2355 <clip pos="2" part="content"/>
2356 <b pos="2"/>
2357 <clip pos="3" part="content"/>
2358 <lit v="}"/>
2359 </chunk>
2360 <b pos="3"/>
2361 </out>
2362 <call-macro n="f_bcond"><with-param pos="4"/><with-param pos="5"/></call-macro>
2363 <out>
2364 <chunk>
2365 <get-case-from pos="4"><lit v="det_nom"/></get-case-from>
2366 <clip pos="5" part="tags"/>
2367 <lit v="{"/>
2368 <clip pos="5" part="content"/>
2369 <b pos="5"/>
2370 <clip pos="6" part="content"/>
2371 <lit v="}"/>
2372 </chunk>
2373 </out>
2374 </action>
2375 </rule>
2376
2377
2378 <rule comment="REGLA: NE SVtrser ADV ADV de SN - NE SVtrser SN ">
2379 <pattern>
2380 <pattern-item n="ne"/>
2381 <pattern-item n="SVtrser"/>
2382 <pattern-item n="adv_cnj"/>
2383 <pattern-item n="adv"/>
2384 <pattern-item n="de"/>
2385 <pattern-item n="SNnodet"/>
2386 </pattern>
2387 <action>
2388 <out>
2389 <chunk>
2390 <clip pos="1" part="whole"/>
2391 </chunk>
2392 <b pos="1"/>
2393 <chunk>
2394 <clip pos="2" part="lem"/>
2395 <clip pos="2" part="tags"/>
2396 <lit v="{"/>
2397 <clip pos="2" part="content"/>
2398 <b pos="2"/>
2399 <clip pos="3" part="content"/>
2400 <b pos="3"/>
2401 <clip pos="4" part="content"/>
2402 <lit v="}"/>
2403 </chunk>
2404 <b pos="4"/>
2405 </out>
2406 <call-macro n="f_bcond"><with-param pos="5"/><with-param pos="6"/></call-macro>
2407 <out>
2408 <chunk>
2409 <lit v="det_nom"/>
2410 <clip pos="6" part="tags"/>
2411 <lit v="{"/>
2412 <clip pos="6" part="content"/>
2413 <lit v="}"/>
2414 </chunk>
2415 </out>
2416 </action>
2417 </rule>
2418
2419
2420 <rule comment="REGLA: NE SVtrser ADV ADV de SA SN - NE SVtrser SN ">
2421 <pattern>
2422 <pattern-item n="ne"/>
2423 <pattern-item n="SVtrser"/>
2424 <pattern-item n="adv_cnj"/>
2425 <pattern-item n="adv"/>
2426 <pattern-item n="de"/>
2427 <pattern-item n="SAnodet"/>
2428 <pattern-item n="SNnodet"/>
2429 </pattern>
2430 <action>
2431 <out>
2432 <chunk>
2433 <clip pos="1" part="whole"/>
2434 </chunk>
2435 <b pos="1"/>
2436 <chunk>
2437 <clip pos="2" part="lem"/>
2438 <clip pos="2" part="tags"/>
2439 <lit v="{"/>
2440 <clip pos="2" part="content"/>
2441 <b pos="2"/>
2442 <clip pos="3" part="content"/>
2443 <b pos="3"/>
2444 <clip pos="4" part="content"/>
2445 <lit v="}"/>
2446 </chunk>
2447 <b pos="4"/>
2448 </out>
2449 <call-macro n="f_bcond"><with-param pos="5"/><with-param pos="6"/></call-macro>
2450 <out>
2451 <chunk>
2452 <get-case-from pos="5"><lit v="det_nom"/></get-case-from>
2453 <clip pos="6" part="tags"/>
2454 <lit v="{"/>
2455 <clip pos="6" part="content"/>
2456 <b pos="6"/>
2457 <clip pos="7" part="content"/>
2458 <lit v="}"/>
2459 </chunk>
2460 </out>
2461 </action>
2462 </rule>
2463 -->
2464
2465
2466 <rule comment="REGLA: NE SVtrser PR ADV de SN - NE SVtrser SN: il mangera jusqu'à demain des pommes ">
2467 <pattern>
2468 <pattern-item n="ne"/>
2469 <pattern-item n="SVtrser"/>
2470 <pattern-item n="pr"/>
2471 <pattern-item n="adv"/>
2472 <pattern-item n="de"/>
2473 <pattern-item n="SNnodet"/>
2474 </pattern>
2475 <action>
2476 <out>
2477 <chunk>
2478 <clip pos="1" part="whole"/>
2479 </chunk>
2480 <b pos="1"/>
2481 <chunk>
2482 <clip pos="2" part="lem"/>
2483 <clip pos="2" part="tags"/>
2484 <lit v="{"/>
2485 <clip pos="2" part="content"/>
2486 <b pos="2"/>
2487 <clip pos="3" part="content"/>
2488 <b pos="3"/>
2489 <clip pos="4" part="content"/>
2490 <lit v="}"/>
2491 </chunk>
2492 <b pos="4"/>
2493 </out>
2494 <call-macro n="f_bcond"><with-param pos="5"/><with-param pos="6"/></call-macro>
2495 <out>
2496 <chunk>
2497 <lit v="det_nom"/>
2498 <clip pos="6" part="tags"/>
2499 <lit v="{"/>
2500 <clip pos="6" part="content"/>
2501 <lit v="}"/>
2502 </chunk>
2503 </out>
2504 </action>
2505 </rule>
2506
2507 <!-- artikol-reguloj post KE -->
2508
2509 <rule comment="REGLA: KE de le SN - KE SN ">
2510 <pattern>
2511 <pattern-item n="que_cnj"/>
2512 <pattern-item n="de"/>
2513 <pattern-item n="le_det"/>
2514 <pattern-item n="SNnodet"/>
2515 </pattern>
2516 <action>
2517 <call-macro n="kunordigo_nbr">
2518 <with-param pos="3"/>
2519 <with-param pos="4"/>
2520 </call-macro>
2521 <call-macro n="kunordigo_gen">
2522 <with-param pos="3"/>
2523 <with-param pos="4"/>
2524 </call-macro>
2525 <out>
2526 <chunk>
2527 <clip pos="1" part="whole"/>
2528 </chunk>
2529 <b pos="1"/>
2530 </out>
2531 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
2532 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
2533 <out>
2534 <chunk>
2535 <lit v="det_nom"/>
2536 <clip pos="4" part="tags"/>
2537 <lit v="{"/>
2538 <clip pos="4" part="content"/>
2539 <lit v="}"/>
2540 </chunk>
2541 </out>
2542 </action>
2543 </rule>
2544
2545
2546 <rule comment="REGLA: KE de le SA SN - KE SA SN ">
2547 <pattern>
2548 <pattern-item n="que_cnj"/>
2549 <pattern-item n="de"/>
2550 <pattern-item n="le_det"/>
2551 <pattern-item n="SAnodet"/>
2552 <pattern-item n="SNnodet"/>
2553 </pattern>
2554 <action>
2555 <call-macro n="kunordigo_nbr">
2556 <with-param pos="3"/>
2557 <with-param pos="5"/>
2558 </call-macro>
2559 <call-macro n="kunordigo_gen">
2560 <with-param pos="3"/>
2561 <with-param pos="5"/>
2562 </call-macro>
2563 <out>
2564 <chunk>
2565 <clip pos="1" part="whole"/>
2566 </chunk>
2567 <b pos="1"/>
2568 </out>
2569 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
2570 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
2571 <out>
2572 <chunk>
2573 <get-case-from pos="3"><lit v="det_nom"/></get-case-from>
2574 <clip pos="5" part="tags"/>
2575 <lit v="{"/>
2576 <clip pos="4" part="content"/>
2577 <b pos="4"/>
2578 <clip pos="5" part="content"/>
2579 <lit v="}"/>
2580 </chunk>
2581 </out>
2582 </action>
2583 </rule>
2584
2585
2586 <rule comment="REGLA: KE des autres SN - KE autres SN ">
2587 <pattern>
2588 <pattern-item n="que_cnj"/>
2589 <pattern-item n="de"/>
2590 <pattern-item n="un_autre_det_pl"/>
2591 <pattern-item n="SNnodet"/>
2592 </pattern>
2593 <action>
2594 <call-macro n="kunordigo_nbr">
2595 <with-param pos="3"/>
2596 <with-param pos="4"/>
2597 </call-macro>
2598 <call-macro n="kunordigo_gen">
2599 <with-param pos="3"/>
2600 <with-param pos="4"/>
2601 </call-macro>
2602 <out>
2603 <chunk>
2604 <clip pos="1" part="whole"/>
2605 </chunk>
2606 <b pos="1"/>
2607 </out>
2608 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
2609 <out>
2610 <chunk>
2611 <lit v="det_nom"/>
2612 <clip pos="4" part="tags"/>
2613 <lit v="{"/>
2614 <clip pos="3" part="content"/>
2615 <b pos="3"/>
2616 <clip pos="4" part="content"/>
2617 <lit v="}"/>
2618 </chunk>
2619 </out>
2620 </action>
2621 </rule>
2622
2623
2624 <rule comment="REGLA: KE des autres SA SN - KE autres SA SN ">
2625 <pattern>
2626 <pattern-item n="que_cnj"/>
2627 <pattern-item n="de"/>
2628 <pattern-item n="un_autre_det_pl"/>
2629 <pattern-item n="SAnodet"/>
2630 <pattern-item n="SNnodet"/>
2631 </pattern>
2632 <action>
2633 <call-macro n="kunordigo_nbr">
2634 <with-param pos="3"/>
2635 <with-param pos="5"/>
2636 </call-macro>
2637 <call-macro n="kunordigo_gen">
2638 <with-param pos="3"/>
2639 <with-param pos="5"/>
2640 </call-macro>
2641 <out>
2642 <chunk>
2643 <clip pos="1" part="whole"/>
2644 </chunk>
2645 <b pos="1"/>
2646 </out>
2647 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
2648 <out>
2649 <chunk>
2650 <get-case-from pos="3"><lit v="det_nom"/></get-case-from>
2651 <clip pos="5" part="tags"/>
2652 <lit v="{"/>
2653 <clip pos="3" part="content"/>
2654 <b pos="3"/>
2655 <clip pos="4" part="content"/>
2656 <b pos="4"/>
2657 <clip pos="5" part="content"/>
2658 <lit v="}"/>
2659 </chunk>
2660 </out>
2661 </action>
2662 </rule>
2663
2664
2665
2666 <!-- Fino Reguloj de artikolo DU/DES/D'AUTRES -->
2667
2668 <!-- kunordigo -->
2669
2670 <rule comment="REGLA: SN1 and/or SN2 - SN ">
2671 <pattern>
2672 <pattern-item n="SNnotunk"/>
2673 <pattern-item n="and_or"/>
2674 <pattern-item n="SN"/>
2675 </pattern>
2676 <action>
2677 <!-- Ni kunigas nur se SN1 kaj SN2 estas samnombraj; aliokaze unu el la du ŝanĝus sian nombron -->
2678 <!-- Ni kunigas nur se SN1 kaj SN2 estas ambaŭ pronomoj aŭ malpronomoj; aliokaze la sintagmo-ĉapo malsamas kaj estiĝas bordelo -->
2679 <choose>
2680 <when>
2681 <test>
2682 <and>
2683 <equal><clip pos="1" part="nbr"/><clip pos="3" part="nbr"/></equal>
2684 <equal><clip pos="1" part="tipus_prn"/><clip pos="3" part="tipus_prn"/></equal>
2685 <or>
2686 <and>
2687 <equal><clip pos="1" part="lem"/><lit v="prpers"/></equal>
2688 <equal><clip pos="3" part="lem"/><lit v="prpers"/></equal>
2689 </and>
2690 <and>
2691 <not><equal><clip pos="1" part="lem"/><lit v="prpers"/></equal></not>
2692 <not><equal><clip pos="3" part="lem"/><lit v="prpers"/></equal></not>
2693 </and>
2694 </or>
2695 <or>
2696 <and>
2697 <equal><clip pos="1" part="lem"/><lit v="prn_nosubj"/></equal>
2698 <equal><clip pos="3" part="lem"/><lit v="prn_nosubj"/></equal>
2699 </and>
2700 <and>
2701 <not><equal><clip pos="1" part="lem"/><lit v="prn_nosubj"/></equal></not>
2702 <not><equal><clip pos="3" part="lem"/><lit v="prn_nosubj"/></equal></not>
2703 </and>
2704 </or>
2705 </and>
2706 </test>
2707 <out>
2708 <chunk>
2709 <get-case-from pos="1"><lit v="nom_conj_nom"/></get-case-from>
2710 <clip pos="1" part="tags"/>
2711 <lit v="{"/>
2712 <clip pos="1" part="content"/>
2713 <b pos="1"/>
2714 <clip pos="2" part="content"/>
2715 <b pos="2"/>
2716 <clip pos="3" part="content"/>
2717 <lit v="}"/>
2718 </chunk>
2719 </out>
2720 </when>
2721 <otherwise>
2722 <out>
2723 <chunk>
2724 <clip pos="1" part="whole"/>
2725 </chunk>
2726 <b pos="1"/>
2727 <chunk>
2728 <clip pos="2" part="whole"/>
2729 </chunk>
2730 <b pos="2"/>
2731 <chunk>
2732 <clip pos="3" part="whole"/>
2733 </chunk>
2734 </out>
2735 </otherwise>
2736 </choose>
2737 </action>
2738 </rule>
2739
2740
2741 <rule comment="REGLA: SN0, SN1 and/or SN2 - SN ">
2742 <pattern>
2743 <pattern-item n="SNnotunk"/>
2744 <pattern-item n="CM"/>
2745 <pattern-item n="SN"/>
2746 <pattern-item n="and_or"/>
2747 <pattern-item n="SN"/>
2748 </pattern>
2749 <action>
2750 <!-- Ni kunigas nur se SN0 kaj SN2 estas samnombraj; aliokaze unu el la du ŝanĝus sian nombron -->
2751 <!-- Ni kunigas nur se SN0 kaj SN2 estas ambaŭ pronomoj aŭ malpronomoj; aliokaze la sintagmo-ĉapo malsamas kaj estiĝas bordelo -->
2752 <choose>
2753 <when>
2754 <test>
2755 <and>
2756 <equal><clip pos="1" part="nbr"/><clip pos="5" part="nbr"/></equal>
2757 <equal><clip pos="1" part="tipus_prn"/><clip pos="5" part="tipus_prn"/></equal>
2758 <or>
2759 <and>
2760 <equal><clip pos="1" part="lem"/><lit v="prpers"/></equal>
2761 <equal><clip pos="5" part="lem"/><lit v="prpers"/></equal>
2762 </and>
2763 <and>
2764 <not><equal><clip pos="1" part="lem"/><lit v="prpers"/></equal></not>
2765 <not><equal><clip pos="5" part="lem"/><lit v="prpers"/></equal></not>
2766 </and>
2767 </or>
2768 <or>
2769 <and>
2770 <equal><clip pos="1" part="lem"/><lit v="prn_nosubj"/></equal>
2771 <equal><clip pos="3" part="lem"/><lit v="prn_nosubj"/></equal>
2772 </and>
2773 <and>
2774 <not><equal><clip pos="1" part="lem"/><lit v="prn_nosubj"/></equal></not>
2775 <not><equal><clip pos="3" part="lem"/><lit v="prn_nosubj"/></equal></not>
2776 </and>
2777 </or>
2778 </and>
2779 </test>
2780 <out>
2781 <chunk>
2782 <get-case-from pos="1"><lit v="nom_conj_nom"/></get-case-from>
2783 <clip pos="1" part="tags"/>
2784 <lit v="{"/>
2785 <clip pos="1" part="content"/>
2786 <b pos="1"/>
2787 <clip pos="2" part="content"/>
2788 <b pos="2"/>
2789 <clip pos="3" part="content"/>
2790 <b pos="3"/>
2791 <clip pos="4" part="content"/>
2792 <b pos="4"/>
2793 <clip pos="5" part="content"/>
2794 <lit v="}"/>
2795 </chunk>
2796 </out>
2797 </when>
2798 <otherwise>
2799 <out>
2800 <chunk>
2801 <clip pos="1" part="whole"/>
2802 </chunk>
2803 <b pos="1"/>
2804 <chunk>
2805 <clip pos="2" part="whole"/>
2806 </chunk>
2807 <b pos="2"/>
2808 <chunk>
2809 <clip pos="3" part="whole"/>
2810 </chunk>
2811 <b pos="3"/>
2812 <chunk>
2813 <clip pos="4" part="whole"/>
2814 </chunk>
2815 <b pos="4"/>
2816 <chunk>
2817 <clip pos="5" part="whole"/>
2818 </chunk>
2819 </out>
2820 </otherwise>
2821 </choose>
2822 </action>
2823 </rule>
2824
2825
2826
2827
2828 <rule comment="REGLA: SN0, SN1, and/or SN2 - SN ">
2829 <pattern>
2830 <pattern-item n="SNnotunk"/>
2831 <pattern-item n="CM"/>
2832 <pattern-item n="SN"/>
2833 <pattern-item n="CM"/>
2834 <pattern-item n="and_or"/>
2835 <pattern-item n="SN"/>
2836 </pattern>
2837 <action>
2838 <!-- Ni kunigas nur se SN0 kaj SN2 estas samnombraj; aliokaze unu el la du ŝanĝus sian nombron -->
2839 <!-- Ni kunigas nur se SN0 kaj SN2 estas ambaŭ pronomoj aŭ malpronomoj; aliokaze la sintagmo-ĉapo malsamas kaj estiĝas bordelo -->
2840 <choose>
2841 <when>
2842 <test>
2843 <and>
2844 <equal><clip pos="1" part="nbr"/><clip pos="6" part="nbr"/></equal>
2845 <equal><clip pos="1" part="tipus_prn"/><clip pos="6" part="tipus_prn"/></equal>
2846 <or>
2847 <and>
2848 <equal><clip pos="1" part="lem"/><lit v="prpers"/></equal>
2849 <equal><clip pos="6" part="lem"/><lit v="prpers"/></equal>
2850 </and>
2851 <and>
2852 <not><equal><clip pos="1" part="lem"/><lit v="prpers"/></equal></not>
2853 <not><equal><clip pos="6" part="lem"/><lit v="prpers"/></equal></not>
2854 </and>
2855 </or>
2856 <or>
2857 <and>
2858 <equal><clip pos="1" part="lem"/><lit v="prn_nosubj"/></equal>
2859 <equal><clip pos="3" part="lem"/><lit v="prn_nosubj"/></equal>
2860 </and>
2861 <and>
2862 <not><equal><clip pos="1" part="lem"/><lit v="prn_nosubj"/></equal></not>
2863 <not><equal><clip pos="3" part="lem"/><lit v="prn_nosubj"/></equal></not>
2864 </and>
2865 </or>
2866 </and>
2867 </test>
2868 <out>
2869 <chunk>
2870 <get-case-from pos="1"><lit v="nom_conj_nom"/></get-case-from>
2871 <clip pos="1" part="tags"/>
2872 <lit v="{"/>
2873 <clip pos="1" part="content"/>
2874 <b pos="1"/>
2875 <clip pos="2" part="content"/>
2876 <b pos="2"/>
2877 <clip pos="3" part="content"/>
2878 <b pos="3"/>
2879 <clip pos="4" part="content"/>
2880 <b pos="4"/>
2881 <clip pos="5" part="content"/>
2882 <b pos="5"/>
2883 <clip pos="6" part="content"/>
2884 <lit v="}"/>
2885 </chunk>
2886 </out>
2887 </when>
2888 <otherwise>
2889 <out>
2890 <chunk>
2891 <clip pos="1" part="whole"/>
2892 </chunk>
2893 <b pos="1"/>
2894 <chunk>
2895 <clip pos="2" part="whole"/>
2896 </chunk>
2897 <b pos="2"/>
2898 <chunk>
2899 <clip pos="3" part="whole"/>
2900 </chunk>
2901 <b pos="3"/>
2902 <chunk>
2903 <clip pos="4" part="whole"/>
2904 </chunk>
2905 <b pos="4"/>
2906 <chunk>
2907 <clip pos="5" part="whole"/>
2908 </chunk>
2909 <b pos="5"/>
2910 <chunk>
2911 <clip pos="6" part="whole"/>
2912 </chunk>
2913 </out>
2914 </otherwise>
2915 </choose>
2916 </action>
2917 </rule>
2918
2919
2920 <!-- Ne eblas kunigi: kutime tio disigas du subfrazojn kaj tio permesas ke la subjekto de la dua subfrazo analiziĝas kiel parto de la objekto de la unua (kaj ricevu akuzativon)
2921 <rule comment="REGLA: , and/or - and/or ">
2922 <pattern>
2923 <pattern-item n="CM"/>
2924 <pattern-item n="and_or"/>
2925 </pattern>
2926 <action>
2927 <out>
2928 <chunk>
2929 <clip pos="2" part="lem"/>
2930 <clip pos="2" part="tags"/>
2931 <lit v="{"/>
2932 <b pos="1"/>
2933 <clip pos="2" part="content"/>
2934 <lit v="}"/>
2935 </chunk>
2936 </out>
2937 </action>
2938 </rule>
2939 -->
2940
2941 <rule comment="REGLA: DA LE - DE LA (da la tagoj -> de la tagoj: korekto de atribuoj en la antaŭa fazo) ">
2942 <pattern>
2943 <pattern-item n="da"/>
2944 <pattern-item n="le_det"/>
2945 </pattern>
2946 <action>
2947 <out>
2948 <chunk>
2949 <lit v="de"/>
2950 <lit-tag v="pr"/>
2951 <lit v="{^"/>
2952 <lit v="de"/>
2953 <lit-tag v="pr"/>
2954 <lit v="$}"/>
2955 </chunk>
2956 <b pos="1"/>
2957 <chunk>
2958 <clip pos="2" part="whole"/>
2959 </chunk>
2960 </out>
2961 </action>
2962 </rule>
2963
2964
2965 <rule comment="REGLA: PP PAR/Per - PP DE (vu par -> vidita de: korekto de la prepozicio, tradukita kiel 'per' en t1x ) ">
2966 <pattern>
2967 <pattern-item n="pp"/>
2968 <pattern-item n="per"/>
2969 </pattern>
2970 <action>
2971 <out>
2972 <chunk>
2973 <clip pos="1" part="whole"/>
2974 </chunk>
2975 <b pos="1"/>
2976 <chunk>
2977 <lit v="de_par"/>
2978 <lit-tag v="pr"/>
2979 <lit v="{^"/>
2980 <lit v="de"/>
2981 <lit-tag v="pr"/>
2982 <lit v="$}"/>
2983 </chunk>
2984 </out>
2985 </action>
2986 </rule>
2987
2988
2989 <rule comment="REGLA: ADV PP PAR/PER - PP DE (vite vu par -> rapide vidita de: korekto de la prepozicio, tradukita kiel 'per' en t1x ) ">
2990 <pattern>
2991 <pattern-item n="adv"/>
2992 <pattern-item n="pp"/>
2993 <pattern-item n="per"/>
2994 </pattern>
2995 <action>
2996 <out>
2997 <chunk>
2998 <get-case-from pos="1"><clip pos="2" part="lem"/></get-case-from>
2999 <clip pos="2" part="tags"/>
3000 <lit v="{"/>
3001 <clip pos="1" part="content"/>
3002 <b pos="1"/>
3003 <clip pos="2" part="content"/>
3004 <lit v="}"/>
3005 </chunk>
3006 <b pos="2"/>
3007 <chunk>
3008 <lit v="de_par"/>
3009 <lit-tag v="pr"/>
3010 <lit v="{^"/>
3011 <lit v="de"/>
3012 <lit-tag v="pr"/>
3013 <lit v="$}"/>
3014 </chunk>
3015 </out>
3016 </action>
3017 </rule>
3018
3019
3020 <rule comment="REGLA: ADV ADV PP PAR/PER - PP DE (très vite vu par -> tre rapide vidita de: korekto de la prepozicio, tradukita kiel 'per' en t1x ) ">
3021 <pattern>
3022 <pattern-item n="adv"/>
3023 <pattern-item n="adv"/>
3024 <pattern-item n="pp"/>
3025 <pattern-item n="per"/>
3026 </pattern>
3027 <action>
3028 <out>
3029 <chunk>
3030 <get-case-from pos="1"><clip pos="3" part="lem"/></get-case-from>
3031 <clip pos="3" part="tags"/>
3032 <lit v="{"/>
3033 <clip pos="1" part="content"/>
3034 <b pos="1"/>
3035 <clip pos="2" part="content"/>
3036 <b pos="2"/>
3037 <clip pos="3" part="content"/>
3038 <lit v="}"/>
3039 </chunk>
3040 <b pos="3"/>
3041 <chunk>
3042 <lit v="de_par"/>
3043 <lit-tag v="pr"/>
3044 <lit v="{^"/>
3045 <lit v="de"/>
3046 <lit-tag v="pr"/>
3047 <lit v="$}"/>
3048 </chunk>
3049 </out>
3050 </action>
3051 </rule>
3052
3053
3054 <!-- Reguloj de SV -->
3055
3056
3057 <rule comment="REGLA: SVser de INF - SVser INF (suis obligé de manger -> estas devigita manĝi )">
3058 <pattern>
3059 <pattern-item n="SVser"/>
3060 <pattern-item n="de"/>
3061 <pattern-item n="inf"/>
3062 </pattern>
3063 <action>
3064 <out>
3065 <chunk>
3066 <clip pos="1" part="whole"/>
3067 </chunk>
3068 <b pos="1"/>
3069 </out>
3070 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
3071 <out>
3072 <chunk>
3073 <clip pos="3" part="whole"/>
3074 </chunk>
3075 </out>
3076 </action>
3077 </rule>
3078
3079
3080 <rule comment="REGLA: SVser de ADV INF - SVser INF (c'est de ne manger -> estas ne manĝi )">
3081 <pattern>
3082 <pattern-item n="SVser"/>
3083 <pattern-item n="de"/>
3084 <pattern-item n="adv"/>
3085 <pattern-item n="inf"/>
3086 </pattern>
3087 <action>
3088 <out>
3089 <chunk>
3090 <clip pos="1" part="whole"/>
3091 </chunk>
3092 <b pos="1"/>
3093 </out>
3094 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
3095 <out>
3096 <chunk>
3097 <clip pos="3" part="whole"/>
3098 </chunk>
3099 <b pos="3"/>
3100 <chunk>
3101 <clip pos="4" part="whole"/>
3102 </chunk>
3103 </out>
3104 </action>
3105 </rule>
3106
3107
3108 <rule comment="REGLA: SVser PRNobj INF - SVser INF PRNobj (tu le sembles manger -> vi ŝajnas ĝin manĝi -> vi ŝajnas manĝi ĝin)">
3109 <pattern>
3110 <pattern-item n="SVser"/>
3111 <pattern-item n="prn_obj"/>
3112 <pattern-item n="inf"/>
3113 </pattern>
3114 <action>
3115 <out>
3116 <chunk>
3117 <clip pos="1" part="whole"/>
3118 </chunk>
3119 <b pos="1"/>
3120 <chunk>
3121 <clip pos="3" part="whole"/>
3122 </chunk>
3123 <b pos="2"/>
3124 <chunk>
3125 <clip pos="2" part="whole"/>
3126 </chunk>
3127 </out>
3128 </action>
3129 </rule>
3130
3131
3132 <rule comment="REGLA: PRNref SV - SV PRNref (se dit -> sin diras -> diras sin)">
3133 <pattern>
3134 <pattern-item n="prn_ref"/>
3135 <pattern-item n="SV"/>
3136 </pattern>
3137 <action>
3138 <out>
3139 <chunk>
3140 <get-case-from pos="1"><clip pos="2" part="lem"/></get-case-from>
3141 <clip pos="2" part="tags"/>
3142 <clip pos="2" part="chcontent"/>
3143 </chunk>
3144 <b pos="1"/>
3145 <chunk>
3146 <get-case-from pos="2"><clip pos="1" part="lem"/></get-case-from>
3147 <clip pos="1" part="tags"/>
3148 <clip pos="1" part="chcontent"/>
3149 </chunk>
3150 </out>
3151 </action>
3152 </rule>
3153
3154
3155 <rule comment="REGLA: SVser DATO KE - DATO (c'est le 19 març que -> la 19an de marto) ">
3156 <pattern>
3157 <pattern-item n="SVser"/>
3158 <pattern-item n="dato"/>
3159 <pattern-item n="que_cnj"/>
3160 </pattern>
3161 <action>
3162 <out>
3163 <chunk>
3164 <get-case-from pos="1"><clip pos="2" part="lem"/></get-case-from>
3165 <clip pos="2" part="tags"/>
3166 <lit v="{"/>
3167 <clip pos="2" part="content"/>
3168 <lit v="}"/>
3169 </chunk>
3170 </out>
3171 </action>
3172 </rule>
3173
3174
3175 <!--
3176 por eviti la neŝalton de la regulo pri artikolo en 'il decida de ne pas fumer de cigarrettes'
3177 <rule comment="REGLA: SV ADV - SV ">
3178 <pattern>
3179 <pattern-item n="SV"/>
3180 <pattern-item n="adv_cnj"/>
3181 </pattern>
3182 <action>
3183 <out>
3184 <chunk>
3185 <get-case-from pos="1"><clip pos="1" part="lem"/></get-case-from>
3186 <clip pos="1" part="tags"/>
3187 <lit v="{"/>
3188 <clip pos="1" part="content"/>
3189 <b pos="1"/>
3190 <clip pos="2" part="content"/>
3191 <lit v="}"/>
3192 </chunk>
3193 </out>
3194 </action>
3195 </rule>
3196 -->
3197
3198
3199 <rule comment="REGLA: SV, ADVCNJ, - SV ">
3200 <pattern>
3201 <pattern-item n="SV"/>
3202 <pattern-item n="CM"/>
3203 <pattern-item n="adv_cnj"/>
3204 <pattern-item n="CM"/>
3205 </pattern>
3206 <action>
3207 <out>
3208 <chunk>
3209 <get-case-from pos="1"><clip pos="1" part="lem"/></get-case-from>
3210 <clip pos="1" part="tags"/>
3211 <lit v="{"/>
3212 <clip pos="1" part="content"/>
3213 <b pos="1"/>
3214 <clip pos="2" part="content"/>
3215 <b pos="2"/>
3216 <clip pos="3" part="content"/>
3217 <b pos="3"/>
3218 <clip pos="4" part="content"/>
3219 <lit v="}"/>
3220 </chunk>
3221 </out>
3222 </action>
3223 </rule>
3224
3225
3226 <rule comment="REGLA: SV ADV and/or ADV - SV ">
3227 <pattern>
3228 <pattern-item n="SV"/>
3229 <pattern-item n="adv"/>
3230 <pattern-item n="and_or"/>
3231 <pattern-item n="adv"/>
3232 </pattern>
3233 <action>
3234 <out>
3235 <chunk>
3236 <get-case-from pos="1"><clip pos="1" part="lem"/></get-case-from>
3237 <clip pos="1" part="tags"/>
3238 <lit v="{"/>
3239 <clip pos="1" part="content"/>
3240 <b pos="1"/>
3241 <clip pos="2" part="content"/>
3242 <b pos="2"/>
3243 <clip pos="3" part="content"/>
3244 <b pos="3"/>
3245 <clip pos="4" part="content"/>
3246 <lit v="}"/>
3247 </chunk>
3248 </out>
3249 </action>
3250 </rule>
3251
3252
3253 <rule comment="REGLA: SV À/AL INF - SV INF: destiné à être -> destinitaj esti">
3254 <pattern>
3255 <pattern-item n="SV_pp"/>
3256 <pattern-item n="al"/>
3257 <pattern-item n="inf_tot"/>
3258 </pattern>
3259 <action>
3260 <out>
3261 <chunk>
3262 <clip pos="1" part="whole"/>
3263 </chunk>
3264 <b pos="1"/>
3265 </out>
3266 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
3267 <out>
3268 <chunk>
3269 <clip pos="3" part="whole"/>
3270 </chunk>
3271 </out>
3272 </action>
3273 </rule>
3274
3275
3276 <rule comment="REGLA: SV SN À/AL INF - SV SN INF: oblige les gens à être -> devigas la homojn esti">
3277 <pattern>
3278 <pattern-item n="SV"/>
3279 <pattern-item n="SN"/>
3280 <pattern-item n="al"/>
3281 <pattern-item n="inf_tot"/>
3282 </pattern>
3283 <action>
3284 <out>
3285 <chunk>
3286 <clip pos="1" part="whole"/>
3287 </chunk>
3288 <b pos="1"/>
3289 <chunk>
3290 <clip pos="2" part="whole"/>
3291 </chunk>
3292 <b pos="2"/>
3293 </out>
3294 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
3295 <out>
3296 <chunk>
3297 <clip pos="4" part="whole"/>
3298 </chunk>
3299 </out>
3300 </action>
3301 </rule>
3302
3303
3304 <rule comment="REGLA: SV À/AL ADV INF - SV ADV INF: destiné à ne pas être -> destinitaj ne esti">
3305 <pattern>
3306 <pattern-item n="SV_pp"/>
3307 <pattern-item n="al"/>
3308 <pattern-item n="ne"/>
3309 <pattern-item n="inf_tot"/>
3310 </pattern>
3311 <action>
3312 <out>
3313 <chunk>
3314 <clip pos="1" part="whole"/>
3315 </chunk>
3316 <b pos="1"/>
3317 </out>
3318 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
3319 <out>
3320 <chunk>
3321 <clip pos="3" part="whole"/>
3322 </chunk>
3323 <b pos="3"/>
3324 <chunk>
3325 <clip pos="4" part="whole"/>
3326 </chunk>
3327 </out>
3328 </action>
3329 </rule>
3330
3331
3332 <rule comment="REGLA: SV SN À/AL ADV INF - SV SN ADV INF: oblige les gens à ne pas être -> devigas la homojn ne esti">
3333 <pattern>
3334 <pattern-item n="SV"/>
3335 <pattern-item n="SN"/>
3336 <pattern-item n="al"/>
3337 <pattern-item n="adv"/>
3338 <pattern-item n="inf_tot"/>
3339 </pattern>
3340 <action>
3341 <out>
3342 <chunk>
3343 <clip pos="1" part="whole"/>
3344 </chunk>
3345 <b pos="1"/>
3346 <chunk>
3347 <clip pos="2" part="whole"/>
3348 </chunk>
3349 <b pos="2"/>
3350 </out>
3351 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
3352 <out>
3353 <chunk>
3354 <clip pos="4" part="whole"/>
3355 </chunk>
3356 <b pos="4"/>
3357 <chunk>
3358 <clip pos="5" part="whole"/>
3359 </chunk>
3360 </out>
3361 </action>
3362 </rule>
3363
3364
3365 <rule comment="REGLA: SV À/AL PRN INF - SV ADV INF: destiné à ne lui dire -> destinitaj diri al li">
3366 <pattern>
3367 <pattern-item n="SV_pp"/>
3368 <pattern-item n="al"/>
3369 <pattern-item n="prn_obj"/>
3370 <pattern-item n="inf_tot"/>
3371 </pattern>
3372 <action>
3373 <out>
3374 <chunk>
3375 <clip pos="1" part="whole"/>
3376 </chunk>
3377 <b pos="1"/>
3378 </out>
3379 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
3380 <out>
3381 <chunk>
3382 <clip pos="4" part="whole"/>
3383 </chunk>
3384 <b pos="3"/>
3385 <chunk>
3386 <clip pos="3" part="whole"/>
3387 </chunk>
3388 </out>
3389 </action>
3390 </rule>
3391
3392
3393 <rule comment="REGLA: SV SN À/AL PRN INF - SV SN ADV INF: oblige les gens à lui dire -> devigas la homojn diri al li">
3394 <pattern>
3395 <pattern-item n="SV"/>
3396 <pattern-item n="SN"/>
3397 <pattern-item n="al"/>
3398 <pattern-item n="prn_obj"/>
3399 <pattern-item n="inf_tot"/>
3400 </pattern>
3401 <action>
3402 <out>
3403 <chunk>
3404 <clip pos="1" part="whole"/>
3405 </chunk>
3406 <b pos="1"/>
3407 <chunk>
3408 <clip pos="2" part="whole"/>
3409 </chunk>
3410 <b pos="2"/>
3411 </out>
3412 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
3413 <out>
3414 <chunk>
3415 <clip pos="5" part="whole"/>
3416 </chunk>
3417 <b pos="4"/>
3418 <chunk>
3419 <clip pos="4" part="whole"/>
3420 </chunk>
3421 </out>
3422 </action>
3423 </rule>
3424
3425
3426 <!-- adverboj -->
3427
3428 <rule comment="REGLA: ADV de - ADV da ">
3429 <pattern>
3430 <pattern-item n="adv_da"/>
3431 <pattern-item n="de"/>
3432 </pattern>
3433 <action>
3434 <out>
3435 <chunk>
3436 <clip pos="1" part="whole"/>
3437 </chunk>
3438 <b pos="1"/>
3439 <chunk>
3440 <lit v="da"/>
3441 <lit-tag v="pr"/>
3442 <lit v="{^"/>
3443 <lit v="da"/>
3444 <lit-tag v="pr"/>
3445 <lit v="$}"/>
3446 </chunk>
3447 </out>
3448 </action>
3449 </rule>
3450
3451 <rule comment="REGLA: ADV ADV de - ADV da ">
3452 <pattern>
3453 <pattern-item n="adv"/>
3454 <pattern-item n="adv_da"/>
3455 <pattern-item n="de"/>
3456 </pattern>
3457 <action>
3458 <out>
3459 <chunk>
3460 <clip pos="1" part="lem"/>
3461 <clip pos="1" part="tags"/>
3462 <lit v="{"/>
3463 <clip pos="1" part="content"/>
3464 <b pos="1"/>
3465 <clip pos="2" part="content"/>
3466 <lit v="}"/>
3467 </chunk>
3468 <b pos="2"/>
3469 <chunk>
3470 <lit v="da"/>
3471 <lit-tag v="pr"/>
3472 <lit v="{^"/>
3473 <lit v="da"/>
3474 <lit-tag v="pr"/>
3475 <lit v="$}"/>
3476 </chunk>
3477 </out>
3478 </action>
3479 </rule>
3480
3481 <rule comment="REGLA: ADV ADV ADV de - ADV da ">
3482 <pattern>
3483 <pattern-item n="adv"/>
3484 <pattern-item n="adv"/>
3485 <pattern-item n="adv_da"/>
3486 <pattern-item n="de"/>
3487 </pattern>
3488 <action>
3489 <out>
3490 <chunk>
3491 <clip pos="1" part="lem"/>
3492 <clip pos="1" part="tags"/>
3493 <lit v="{"/>
3494 <clip pos="1" part="content"/>
3495 <b pos="1"/>
3496 <clip pos="2" part="content"/>
3497 <b pos="2"/>
3498 <clip pos="3" part="content"/>
3499 <lit v="}"/>
3500 </chunk>
3501 <b pos="3"/>
3502 <chunk>
3503 <lit v="da"/>
3504 <lit-tag v="pr"/>
3505 <lit v="{^"/>
3506 <lit v="da"/>
3507 <lit-tag v="pr"/>
3508 <lit v="$}"/>
3509 </chunk>
3510 </out>
3511 </action>
3512 </rule>
3513
3514
3515 <!--
3516 <rule comment="REGLA: ADV de le - ADV da ">
3517 <pattern>
3518 <pattern-item n="adv_da"/>
3519 <pattern-item n="de"/>
3520 <pattern-item n="le_det"/>
3521 </pattern>
3522 <action>
3523 <out>
3524 <chunk>
3525 <clip pos="1" part="whole"/>
3526 </chunk>
3527 <b pos="1"/>
3528 <chunk>
3529 <lit v="da"/>
3530 <lit-tag v="pr"/>
3531 <lit v="{^"/>
3532 <lit v="da"/>
3533 <lit-tag v="pr"/>
3534 <lit v="$}"/>
3535 </chunk>
3536 </out>
3537 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
3538 </action>
3539 </rule>
3540 -->
3541
3542 <rule comment="REGLA: ADV ADV - ADV ">
3543 <pattern>
3544 <pattern-item n="adv"/>
3545 <pattern-item n="adv"/>
3546 </pattern>
3547 <action>
3548 <out>
3549 <chunk>
3550 <clip pos="1" part="lem"/>
3551 <clip pos="1" part="tags"/>
3552 <lit v="{"/>
3553 <clip pos="1" part="content"/>
3554 <b pos="1"/>
3555 <clip pos="2" part="content"/>
3556 <lit v="}"/>
3557 </chunk>
3558 </out>
3559 </action>
3560 </rule>
3561
3562 <rule comment="REGLA: ADV ADV ADV - ADV ">
3563 <pattern>
3564 <pattern-item n="adv"/>
3565 <pattern-item n="adv"/>
3566 <pattern-item n="adv"/>
3567 </pattern>
3568 <action>
3569 <out>
3570 <chunk>
3571 <clip pos="1" part="lem"/>
3572 <clip pos="1" part="tags"/>
3573 <lit v="{"/>
3574 <clip pos="1" part="content"/>
3575 <b pos="1"/>
3576 <clip pos="2" part="content"/>
3577 <b pos="2"/>
3578 <clip pos="3" part="content"/>
3579 <lit v="}"/>
3580 </chunk>
3581 </out>
3582 </action>
3583 </rule>
3584
3585 <rule comment="REGLA: ADV ADV ADV ADV - ADV ">
3586 <pattern>
3587 <pattern-item n="adv"/>
3588 <pattern-item n="adv"/>
3589 <pattern-item n="adv"/>
3590 <pattern-item n="adv"/>
3591 </pattern>
3592 <action>
3593 <out>
3594 <chunk>
3595 <clip pos="1" part="lem"/>
3596 <clip pos="1" part="tags"/>
3597 <lit v="{"/>
3598 <clip pos="1" part="content"/>
3599 <b pos="1"/>
3600 <clip pos="2" part="content"/>
3601 <b pos="2"/>
3602 <clip pos="3" part="content"/>
3603 <b pos="3"/>
3604 <clip pos="4" part="content"/>
3605 <lit v="}"/>
3606 </chunk>
3607 </out>
3608 </action>
3609 </rule>
3610
3611 <rule comment="REGLA: ADV and/or ADV - ADV ">
3612 <pattern>
3613 <pattern-item n="adv"/>
3614 <pattern-item n="and_or"/>
3615 <pattern-item n="adv"/>
3616 </pattern>
3617 <action>
3618 <out>
3619 <chunk>
3620 <clip pos="1" part="lem"/>
3621 <clip pos="1" part="tags"/>
3622 <lit v="{"/>
3623 <clip pos="1" part="content"/>
3624 <b pos="1"/>
3625 <clip pos="2" part="content"/>
3626 <b pos="2"/>
3627 <clip pos="3" part="content"/>
3628 <lit v="}"/>
3629 </chunk>
3630 </out>
3631 </action>
3632 </rule>
3633
3634 <rule comment="REGLA: ADV, ADV and/or ADV - ADV ">
3635 <pattern>
3636 <pattern-item n="adv"/>
3637 <pattern-item n="CM"/>
3638 <pattern-item n="adv"/>
3639 <pattern-item n="and_or"/>
3640 <pattern-item n="adv"/>
3641 </pattern>
3642 <action>
3643 <out>
3644 <chunk>
3645 <clip pos="1" part="lem"/>
3646 <clip pos="1" part="tags"/>
3647 <lit v="{"/>
3648 <clip pos="1" part="content"/>
3649 <b pos="1"/>
3650 <clip pos="2" part="content"/>
3651 <b pos="2"/>
3652 <clip pos="3" part="content"/>
3653 <b pos="3"/>
3654 <clip pos="4" part="content"/>
3655 <b pos="4"/>
3656 <clip pos="5" part="content"/>
3657 <lit v="}"/>
3658 </chunk>
3659 </out>
3660 </action>
3661 </rule>
3662
3663
3664 <rule comment="REGLA: PREP PRNobj - PREP PRNsubj: nominativo post prepozicio">
3665 <pattern>
3666 <pattern-item n="pr"/>
3667 <pattern-item n="prn_obj"/>
3668 </pattern>
3669 <action>
3670 <let>
3671 <clip pos="2" part="tipus_prn"/>
3672 <lit-tag v="subj"/>
3673 </let>
3674 <out>
3675 <chunk>
3676 <clip pos="1" part="whole"/>
3677 </chunk>
3678 <b pos="1"/>
3679 <chunk>
3680 <clip pos="2" part="whole"/>
3681 </chunk>
3682 </out>
3683 </action>
3684 </rule>
3685
3686
3687 <rule comment="REGLA: PREP PRNobj INF - senŝanĝe (por eviti ŝanĝojn en aliaj reguloj) ">
3688 <pattern>
3689 <pattern-item n="pr"/>
3690 <pattern-item n="prn_obj"/>
3691 <pattern-item n="inf"/>
3692 </pattern>
3693 <action>
3694 <out>
3695 <chunk>
3696 <clip pos="1" part="whole"/>
3697 </chunk>
3698 <b pos="1"/>
3699 <chunk>
3700 <clip pos="2" part="whole"/>
3701 </chunk>
3702 <b pos="2"/>
3703 <chunk>
3704 <clip pos="3" part="whole"/>
3705 </chunk>
3706 </out>
3707 </action>
3708 </rule>
3709
3710
3711 <!-- CITILOJ -->
3712
3713 <rule comment="REGLA: « any » - any ">
3714 <pattern>
3715 <pattern-item n="lcit"/>
3716 <pattern-item n="any"/>
3717 <pattern-item n="rcit"/>
3718 </pattern>
3719 <action>
3720 <out>
3721 <chunk>
3722 <clip pos="2" part="lem"/>
3723 <clip pos="2" part="tags"/>
3724 <lit v="{"/>
3725 <clip pos="1" part="content"/>
3726 <b pos="1"/>
3727 <clip pos="2" part="content"/>
3728 <b pos="2"/>
3729 <clip pos="3" part="content"/>
3730 <lit v="}"/>
3731 </chunk>
3732 </out>
3733 </action>
3734 </rule>
3735
3736
3737 <rule comment="REGLA: « DET SN » - « SN » ">
3738 <pattern>
3739 <pattern-item n="lcit"/>
3740 <pattern-item n="det"/>
3741 <pattern-item n="SNnodet"/>
3742 <pattern-item n="rcit"/>
3743 </pattern>
3744 <action>
3745 <call-macro n="kunordigo_nbr">
3746 <with-param pos="2"/>
3747 <with-param pos="3"/>
3748 </call-macro>
3749 <call-macro n="kunordigo_gen">
3750 <with-param pos="2"/>
3751 <with-param pos="3"/>
3752 </call-macro>
3753 <choose>
3754 <when>
3755 <test>
3756 <equal caseless="yes"><clip pos="2" part="lem"/><lit v="un"/></equal>
3757 </test>
3758 <out>
3759 <chunk>
3760 <get-case-from pos="2"><lit v="det_nom"/></get-case-from>
3761 <clip pos="3" part="tags"/>
3762 <lit v="{"/>
3763 <clip pos="1" part="content"/>
3764 <b pos="1"/>
3765 <clip pos="3" part="content"/>
3766 <b pos="2"/>
3767 <clip pos="4" part="content"/>
3768 <lit v="}"/>
3769 </chunk>
3770 </out>
3771 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
3772 </when>
3773 <otherwise>
3774 <out>
3775 <chunk>
3776 <get-case-from pos="2"><lit v="det_nom"/></get-case-from>
3777 <clip pos="3" part="tags"/>
3778 <lit v="{"/>
3779 <clip pos="1" part="content"/>
3780 <b pos="1"/>
3781 <clip pos="2" part="content"/>
3782 <b pos="2"/>
3783 <clip pos="3" part="content"/>
3784 <b pos="3"/>
3785 <clip pos="4" part="content"/>
3786 <lit v="}"/>
3787 </chunk>
3788 </out>
3789 </otherwise>
3790 </choose>
3791 </action>
3792 </rule>
3793
3794
3795 <rule comment="REGLA: DET « SN » - SN ">
3796 <pattern>
3797 <pattern-item n="det"/>
3798 <pattern-item n="lcit"/>
3799 <pattern-item n="SNSA_nopron"/>
3800 <pattern-item n="rcit"/>
3801 </pattern>
3802 <action>
3803
3804 <call-macro n="kunordigo_nbr">
3805 <with-param pos="1"/>
3806 <with-param pos="3"/>
3807 </call-macro>
3808 <call-macro n="kunordigo_gen">
3809 <with-param pos="1"/>
3810 <with-param pos="3"/>
3811 </call-macro>
3812
3813 <choose>
3814 <when>
3815 <test>
3816 <equal caseless="yes"><clip pos="1" part="lem"/><lit v="un"/></equal>
3817 </test>
3818 <out>
3819 <chunk>
3820 <get-case-from pos="1"><lit v="det_nom"/></get-case-from>
3821 <clip pos="3" part="tags"/>
3822 <lit v="{"/>
3823 <clip pos="2" part="content"/>
3824 <b pos="1"/>
3825 <clip pos="3" part="content"/>
3826 <b pos="2"/>
3827 <clip pos="4" part="content"/>
3828 <lit v="}"/>
3829 </chunk>
3830 </out>
3831 <call-macro n="f_bcond"><with-param pos="3"/><with-param pos="4"/></call-macro>
3832 </when>
3833 <otherwise>
3834 <out>
3835 <chunk>
3836 <get-case-from pos="1"><lit v="det_nom"/></get-case-from>
3837 <clip pos="3" part="tags"/>
3838 <lit v="{"/>
3839 <get-case-from pos="1">
3840 <clip pos="1" part="content"/>
3841 </get-case-from>
3842 <b pos="1"/>
3843 <clip pos="2" part="content"/>
3844 <b pos="2"/>
3845 <clip pos="3" part="content"/>
3846 <b pos="3"/>
3847 <clip pos="4" part="content"/>
3848 <lit v="}"/>
3849 </chunk>
3850 </out>
3851 </otherwise>
3852 </choose>
3853 </action>
3854 </rule>
3855
3856
3857 <rule comment="REGLA: LE « SN » - SN (kunigas misanalizitan artikolon kiel pronomon">
3858 <pattern>
3859 <pattern-item n="le_prn"/>
3860 <pattern-item n="lcit"/>
3861 <pattern-item n="SNSA_nopron"/>
3862 <pattern-item n="rcit"/>
3863 </pattern>
3864 <action>
3865
3866 <call-macro n="kunordigo_nbr">
3867 <with-param pos="1"/>
3868 <with-param pos="3"/>
3869 </call-macro>
3870 <call-macro n="kunordigo_gen">
3871 <with-param pos="1"/>
3872 <with-param pos="3"/>
3873 </call-macro>
3874
3875 <out>
3876 <chunk>
3877 <get-case-from pos="1"><lit v="det_nom"/></get-case-from>
3878 <clip pos="3" part="tags"/>
3879 <lit v="{^"/>
3880 <get-case-from pos="1">
3881 <lit v="la"/>
3882 </get-case-from>
3883 <lit-tag v="det.def.sg.nom"/>
3884 <lit v="$"/>
3885 <b pos="1"/>
3886 <clip pos="2" part="content"/>
3887 <b pos="2"/>
3888 <clip pos="3" part="content"/>
3889 <b pos="3"/>
3890 <clip pos="4" part="content"/>
3891 <lit v="}"/>
3892 </chunk>
3893 </out>
3894 </action>
3895 </rule>
3896
3897
3898 <rule comment="REGLA: SN « SAdj » - « SAdj » SN ">
3899 <pattern>
3900 <pattern-item n="SN_nopron"/>
3901 <pattern-item n="lcit"/>
3902 <pattern-item n="SAdj"/>
3903 <pattern-item n="rcit"/>
3904 </pattern>
3905 <action>
3906 <choose>
3907 <when> <!-- ni kontrolas, ĉu la SN kaj la SAdj interakordas -->
3908 <test>
3909 <or>
3910 <and>
3911 <equal><clip pos="1" part="nbr"/><lit-tag v="sg"/></equal>
3912 <or>
3913 <equal><clip pos="3" part="nbr"/><lit-tag v="sg"/></equal>
3914 <equal><clip pos="3" part="nbr"/><lit-tag v="sp"/></equal>
3915 </or>
3916 </and>
3917 <and>
3918 <equal><clip pos="1" part="nbr"/><lit-tag v="pl"/></equal>
3919 <or>
3920 <equal><clip pos="3" part="nbr"/><lit-tag v="pl"/></equal>
3921 <equal><clip pos="3" part="nbr"/><lit-tag v="sp"/></equal>
3922 </or>
3923 </and>
3924 </or>
3925 </test>
3926 <choose>
3927 <when> <!-- ni kontrolas, ĉu la SN estas sendeterminanta kaj ĉu ni havas "kanonan blankaron" -->
3928 <test>
3929 <and>
3930 <or>
3931 <equal><clip pos="1" part="lem"/><lit v="nom"/></equal>
3932 <equal><clip pos="1" part="lem"/><lit v="nom_adj"/></equal>
3933 </or>
3934 <equal><b pos="1"/><lit v=" "/></equal>
3935 <or>
3936 <equal><b pos="2"/><lit v=" "/></equal>
3937 <equal><b pos="2"/><lit v=""/></equal>
3938 </or>
3939 <or>
3940 <equal><b pos="3"/><lit v=" "/></equal>
3941 <equal><b pos="3"/><lit v=""/></equal>
3942 </or>
3943 </and>
3944 </test>
3945 <out> <!-- ni ŝanĝas la vortordon kaj eventuale forigas blankojn -->
3946 <chunk>
3947 <clip pos="1" part="lem"/>
3948 <clip pos="1" part="tags"/>
3949 <lit v="{"/>
3950 <clip pos="2" part="content"/>
3951 <clip pos="3" part="content"/>
3952 <clip pos="4" part="content"/>
3953 <b/>
3954 <clip pos="1" part="content"/>
3955 <lit v="}"/>
3956 </chunk>
3957 </out>
3958 </when>
3959 <otherwise>
3960 <out> <!-- ni ĉion kunigas unugrupen, sed ne ŝanĝas la vortordon por eviti spaco-problemojn -->
3961 <chunk>
3962 <clip pos="1" part="lem"/>
3963 <clip pos="1" part="tags"/>
3964 <lit v="{"/>
3965 <clip pos="1" part="content"/>
3966 <b pos="1"/>
3967 <clip pos="2" part="content"/>
3968 <b pos="2"/>
3969 <clip pos="3" part="content"/>
3970 <b pos="3"/>
3971 <clip pos="4" part="content"/>
3972 <lit v="}"/>
3973 </chunk>
3974 </out>
3975 </otherwise>
3976 </choose>
3977 </when>
3978 <otherwise>
3979 <out> <!-- ni ne povas ĉion kunigi unugrupen, sed ja la SAdj-n kun siaj citiloj -->
3980 <chunk>
3981 <clip pos="1" part="whole"/>
3982 </chunk>
3983 <b pos="1"/>
3984 <chunk>
3985 <clip pos="3" part="lem"/>
3986 <clip pos="3" part="tags"/>
3987 <lit v="{"/>
3988 <clip pos="2" part="content"/>
3989 <b pos="2"/>
3990 <clip pos="3" part="content"/>
3991 <b pos="3"/>
3992 <clip pos="4" part="content"/>
3993 <lit v="}"/>
3994 </chunk>
3995 </out>
3996 </otherwise>
3997 </choose>
3998 </action>
3999 </rule>
4000
4001 <!-- UNKNOWN -->
4002
4003 <rule comment="REGLA: DET UNK - UNK ">
4004 <pattern>
4005 <pattern-item n="det"/>
4006 <pattern-item n="unknown"/>
4007 </pattern>
4008 <action>
4009 <choose>
4010 <when>
4011 <test>
4012 <equal caseless="yes"><clip pos="1" part="lem"/><lit v="un"/></equal>
4013 </test>
4014 <out>
4015 <chunk>
4016 <get-case-from pos="1"><lit v="det_unk1"/></get-case-from>
4017 <lit-tag v="SN"/>
4018 <clip pos="1" part="gen"/>
4019 <clip pos="1" part="nbr"/>
4020 <lit-tag v="nom.nom"/>
4021 <lit v="{"/>
4022 <clip pos="2" part="content"/>
4023 <lit v="}"/>
4024 </chunk>
4025 </out>
4026 <call-macro n="f_bcond"><with-param pos="1"/><with-param pos="2"/></call-macro>
4027 </when>
4028 <otherwise>
4029 <out>
4030 <chunk>
4031 <get-case-from pos="1"><lit v="det_unk2"/></get-case-from>
4032 <lit-tag v="SN"/>
4033 <clip pos="1" part="gen"/>
4034 <clip pos="1" part="nbr"/>
4035 <lit-tag v="nom.nom"/>
4036 <lit v="{"/>
4037 <clip pos="1" part="content"/>
4038 <b pos="1"/>
4039 <clip pos="2" part="content"/>
4040 <lit v="}"/>
4041 </chunk>
4042 </out>
4043 </otherwise>
4044 </choose>
4045 </action>
4046 </rule>
4047
4048
4049 <!-- BLANKOJ -->
4050
4051 <rule comment="REGLA: forigo de blankoj antaŭ fermaj interpunkciiloj ">
4052 <pattern>
4053 <pattern-item n="any"/>
4054 <pattern-item n="sent_preblank"/>
4055 </pattern>
4056 <action>
4057 <out>
4058 <chunk>
4059 <clip pos="1" part="whole"/>
4060 </chunk>
4061 </out>
4062 <call-macro n="f_bcond"><with-param pos="1"/><with-param pos="2"/></call-macro>
4063 <out>
4064 <chunk>
4065 <clip pos="2" part="whole"/>
4066 </chunk>
4067 </out>
4068 </action>
4069 </rule>
4070
4071
4072 <rule comment="REGLA: forigo de blankoj antaŭ fermaj interpunkciiloj ">
4073 <pattern>
4074 <pattern-item n="any"/>
4075 <pattern-item n="sent_preblank"/>
4076 <pattern-item n="sent_preblank"/>
4077 </pattern>
4078 <action>
4079 <out>
4080 <chunk>
4081 <clip pos="1" part="whole"/>
4082 </chunk>
4083 </out>
4084 <call-macro n="f_bcond"><with-param pos="1"/><with-param pos="2"/></call-macro>
4085 <out>
4086 <chunk>
4087 <clip pos="2" part="whole"/>
4088 </chunk>
4089 </out>
4090 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
4091 <out>
4092 <chunk>
4093 <clip pos="3" part="whole"/>
4094 </chunk>
4095 </out>
4096 </action>
4097 </rule>
4098
4099 </section-rules>
4100 </interchunk>