-
Notifications
You must be signed in to change notification settings - Fork 0
/
matxin-spa-eus.verb_transfer.foma
986 lines (793 loc) · 41.3 KB
/
matxin-spa-eus.verb_transfer.foma
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
! ES->EU Aditz Kateen Transferentziarako FST definizioa
echo >> Definizioak ;
echo >> Definitions ;
echo >> ======================================== ;
echo >> Oinarrizko definizioak ;
echo >> Basic definitions ;
define Alfabeto [ a | b | c | d | e | f | g | h | i | j | k | l | m | n |
o | p | q | r | s | t | u | v | w | x | y | z ] ;
define AlfabetoLarri [ A | B | C | D | E | F | G | H | I | J | K | L | M | N |
O | P | Q | R | S | T | U | V | W | X | Y | Z ] ;
define Zifrak [ %0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 ] ;
define Karak [ Alfabeto | AlfabetoLarri | Zifrak | "_" | "-" ] ;
define KarakPlus [ Karak | %[ | %] | %+ ] ;
define IM [ "[" Karak+ "]" ] ;
define XXX [ "==>" ];
!define IVM [ {VM}|{VS}|{VA} ] ;
define IVM [ {VM}|{VS} ] ;
define IVA [ {VA} ] ;
define IMInf [ "[" [IVM|IVA]{N} Karak* "]" ] ;
define IMPar [ "[" [IVM|IVA]{P} Karak* "]" ] ;
define IMGer [ "[" [IVM|IVA]{G} Karak* "]" ] ;
define IMAdjPar [ "[" {AQ} Karak* {P} "]" ] ;
!define IMInfGer [ IMInf | IMGer ] ;
!define IMEzJok [ IMInf | IMPar | IMGer ] ;
define IMInfGer [ "[" IVM[N|G] Karak* "]" ] ;
define IMEzJok [ "[" IVM[N|G|P] Karak* "]" ] ;
!define VMIP [ "[" VM{ip} Karak* "]" ];
!define VMII [ "[" VM{ii} Karak* "]" ];
!define VMIS [ "[" VM{is} Karak* "]" ];
!define VMIF [ "[" VM{if} Karak* "]" ];
!define VMIC [ "[" VM{ic} Karak* "]" ];
!define VMSP [ "[" VM{sp} Karak* "]" ];
!define VMSI [ "[" VM{si} Karak* "]" ];
!define VMM [ "[" VM{m} Karak* "]" ];
!define VAIP [ "[" VA{ip} Karak* "]" ];
!define VAII [ "[" VA{ii} Karak* "]" ];
!define VAIS [ "[" VA{is} Karak* "]" ];
!define VAIF [ "[" VA{if} Karak* "]" ];
!define VAIC [ "[" VA{ic} Karak* "]" ];
!define VASP [ "[" VA{sp} Karak* "]" ];
!define VASI [ "[" VA{si} Karak* "]" ];
define VMIP [ "[" IVM{IP} Karak* "]" ];
define VMII [ "[" IVM{II} Karak* "]" ];
define VMIS [ "[" IVM{IS} Karak* "]" ];
define VMIF [ "[" IVM{IF} Karak* "]" ];
define VMIC [ "[" IVM{IC} Karak* "]" ];
define VMSP [ "[" IVM{SP} Karak* "]" ];
define VMSI [ "[" IVM{SI} Karak* "]" ];
define VMM [ "[" IVM{M} Karak* "]" ];
define VAIP [ "[" IVA{IP} Karak* "]" ];
define VAII [ "[" IVA{II} Karak* "]" ];
define VAIS [ "[" IVA{IS} Karak* "]" ];
define VAIF [ "[" IVA{IF} Karak* "]" ];
define VAIC [ "[" IVA{IC} Karak* "]" ];
define VASP [ "[" IVA{SP} Karak* "]" ];
define VASI [ "[" IVA{SI} Karak* "]" ];
!define IMJok [ VMIP | VMII | VMIS | VMIF | VMIC |
! VAIP | VAII | VAIS | VAIF | VAIC ];
!define IMPI [ VMIP | VMII |
! VAIP | VAII ];
define IMJok [ "[" [IVM|IVA][{IP}|{II}|{IS}|{IF}|{IC}|{SP}|{SI}|{M}] Karak* "]" ];
!define IMJok [ "[" IVM[{IP}|{II}|{IS}|{IF}|{IC}|{SP}|{SI}] Karak* "]" ];
!define IMPI [ "[" [IVM|IVA][{IP}|{II}|{SP}|{SI}] Karak* "]" ];
define AdNES [ "_" Karak+ "_" ] ;
define HaberNag [ "_" {haber} "_" ] ;
define HaberLag [ {.haber.} ] ;
define SerPas [ {.ser.} ] ;
define AdNEU [ Karak+ ] ;
echo >> Perifrastikoen definizioak;
echo >> Definition of periphrastic verbs;
! Con infinitivo
define AdP1IJok [ [ {.poder.} | {.deber.} | {.querer.}] IMJok
| [ {.tener.} | {.haber.} ] IMJok %+ {.que.} IM
| [ {.haber.} |{.terminar.} | {.dejar.} ] IMJok %+ {.de.} IM
| {.estar.} IMJok %+ {.a}"_"{punto}"_"{de.} IM
| [ {.empezar.}|{.comenzar.}|{.echar.}|{.romper.}|{.ir.}] IMJok %+ {.a.} IM
];
! Con gerundio
define AdP1GJok [ [ {.acabar.} | {.andar.} | {.comenzar.} | {.empezar.}
| {.continuar.} | {.continuar.} | {.estar.} | {.ir.}
| {.llevar.} | {.seguir.} | {.terminar.} | {.venir.}] IMJok
];
! Con participio!!!!!!!!!!!!!
define AdP1PJok [ {.estar.} IMJok
];
!!!define AdP1Jok [ AdP1IJok | AdP1GJok | AdP1PJok];
define AdP2Jok [ {.soler.} IMJok
| [ {.deber.} | {.acabar.} ] IMJok %+ {.de.} IM
| {.acostumbrar.} IMJok %+ {.a.} IM
];
define AdP3Jok [ {.volver.} IMJok %+ {.a.} IM
];
define AdP4Jok [ [ {.llegar.} | {.acertar.} | {.alcanzar.} ] IMJok %+ {.a.} IM
];
define AdP1IPar [ [ {.poder.} | {.deber.} | {.querer.}] IMPar
| [ {.tener.}| {.haber.} ] IMPar %+ {.que.} IM
| [ {.haber.} |{.terminar.} | {.dejar.} ] IMPar %+ {.de.} IM
| {.estar.} IMPar %+ {.a}"_"{punto}"_"{de.} IM
| [ {.empezar.}|{.comenzar.}|{.echar.}|{.romper.}|{.ir.}] IMPar %+ {.a.} IM
];
define AdP1GPar [ [ {.acabar.} | {.andar.} | {.comenzar.} | {.empezar.}
| {.continuar.} | {.estar.} | {.ir.}
| {.llevar.} | {.seguir.} | {.terminar.} | {.venir.}] IMPar
];
!!!!!!
define AdP1PPar [ {.estar.} IMJok
];
!!!define AdP1Par [ AdP1IPar | AdP1GPar | AdP1PPar ];
define AdP2Par [ {.soler.} IMPar
| [ {.deber.} | {.acabar.} ] IMPar %+ {.de.} IM
| {.acostumbrar.} IMPar %+ {.a.} IM
];
define AdP3Par [ {.volver.} IMPar %+ {.a.} IM
];
define AdP4Par [ [ {.llegar.} | {.acertar.} | {.alcanzar.} ] IMPar %+ {.a.} IM
];
define PerifEdun [ {nahi} | {behar} | {jarraitu} | {eraman} | {amaitu} ] ;
define PerifIzan [ {hasi} | {ari} | {aritu} | {egon} | {joan} | {etorri} ] ;
echo >> Beste definizio batzuk;
echo >> Some other definitions;
define Trans [ "[" [ {DA} | {DU} | {ZAIO} | {DIO}] "]" ];
define Perts [ %0 | 1 | 2 | 3 ];
define Num [ %0 | s | p ];
define Sub [ "[" {sub} Perts Num "]" ];
define Obj [ "[" {obj} Perts Num "]" ];
define Dat [ "[" {dat} Perts Num "]" ];
echo >> Euskarazko aditz trinkoen definizioak;
echo >> Basque synthetic verbs' definitions;
define AdTrTran [ {edun} | {ukan} | {eduki} | {eraman} | {ekarri} | {jakin} ] ;
define AdTrIntr [ {izan} | {egon} | {etorri} | {joan} ] ;
define AdTrinkoa [ AdTrTran | AdTrIntr ];
echo >> Espainierazko izenordainen definizioak;
echo >> Spanish pronouns' definitions;
!!! Hay que quitar estos comentarios. Dan problema por las tildes
define PaSe [ [ {.se.} "[" {P00CN000} "]" ] | [ {.se.} "[" {P0000000} "]" ] | [ {.él.} "[" {P0300000} "]" ] | [ {.se.} "[" {P03CN000} "]" ]];
define PaMe [ [ {.yo.} "[" {PP1CS000} "]" ] | [ {.yo.} "[" {P010S000} "]" ] | [ {.me.} "[" {PP1CS000} "]" ] | [ {.me.} "[" {P010S000} "]" ] ];
define PaTe [ [ {.tú.} "[" {PP2CS000} "]" ] | [ {.tú.} "[" {P020S000} "]" ] | [ {.te.} "[" {PP2CS000} "]" ] | [ {.te.} "[" {P020S000} "]" ] ];
define PaLo [ [ {.él.} "[" {PP3MSA00} "]" ] | [ {.lo.} "[" {PP3MSA00} "]" ] ];
define PaLa [ [ {.él.} "[" {PP3FSA00} "]" ] | [ {.lo.} "[" {PP3FSA00} "]" ] ];
define PaLe [ [ {.él.} "[" {PP3CSD00} "]" ] | [ {.le.} "[" {PP3CSD00} "]" ] ];
define PaOs [ [ {.tú.} "[" {PP2CP000} "]" ] | [ {.tú.} "[" {P020P000} "]" ] | [ {.os.} "[" {PP2CP000} "]" ] | [ {.os.} "[" {P020P000} "]" ] ];
define PaNos [ [ {.yo.} "[" {PP1CP000} "]" ] | [ {.yo.} "[" {P010P000} "]" ] | [ {.nos.} "[" {PP1CP000} "]" ]
| [ {.nos.} "[" {P010P000} "]" ] ];
!define PaLos [ [ {.él.} "[" {PP3MPA00} "]" ] | [ {.los.} "[" {PP3MPA00} "]" ] ];
!define PaLas [ [ {.él.} "[" {PP3FPA00} "]" ] | [ {.los.} "[" {PP3FPA00} "]" ] ];
!define PaLes [ [ {.él.} "[" {PP3CPD00} "]" ] | [ {.les.} "[" {PP3CPD00} "]" ] ];
define PaLos [ [ {.él.} "[" {PP3MPA00} "]" ] | [ {.lo.} "[" {PP3MPA00} "]" ] ];
define PaLas [ [ {.él.} "[" {PP3FPA00} "]" ] | [ {.lo.} "[" {PP3FPA00} "]" ] ];
define PaLes [ [ {.él.} "[" {PP3CPD00} "]" ] | [ {.le.} "[" {PP3CPD00} "]" ] ];
define PaSePost [ [ {.él.} "[" {PP3CN000} "]" ] | [ {.se.} "[" {PP3CN000} "]" ] | [ {.se.} "[" {P03CN000} "]" ] ];
define PaLoPost [ [ {.él.} "[" {PP3CNA00} "]" ] | [ {.lo.} "[" {PP3CNA00} "]" ] ];
define Pr [ PaSe | PaSePost | PaMe| PaTe | PaLo | PaLoPost | PaLa | PaLe | PaNos | PaOs | PaLos | PaLas | PaLes ];
!!! Hay que quitar estos comentarios. Dan problema por las tildesVer si se soluciona así
!!!define PaSe [ [ "[" {P0000000} "]" ] | [ "[" {P0300000} "]" ] ];
!!!define PaSePost [ [ "[" {PP3CN000} "]" ] | [ "[" {P03CN000} "]" ] ];
!!!define PaMe [ [ "[" {PP1CS000} "]" ] | [ "[" {P010S000} "]" ] ];
!!!define PaTe [ [ "[" {PP2CS000} "]" ] | [ "[" {P020S000} "]" ] ];
!!!define PaLo [ [ "[" {PP3MSA00} "]" ] ];
!!!define PaLoPost [ [ "[" {PP3CNA00} "]" ] ];
!!!define PaLa [ [ "[" {PP3FSA00} "]" ] ];
!!!define PaLe [ [ "[" {PP3CSD00} "]" ] ];
!!!define PaNos [ [ "[" {PP1CP000} "]" ] | [ "[" {P010P000} "]" ] ];
!!!define PaOs [ [ "[" {PP2CP000} "]" ] | [ "[" {P020P000} "]" ] ];
!!!define PaLos [ [ "[" {PP3MPA00} "]" ] ];
!!!define PaLas [ [ "[" {PP3FPA00} "]" ] ];
!!!define PaLes [ [ "[" {PP3CPD00} "]" ] ];
!!!define Pr [ {.} ?* {.} [ PaSe | PaSePost | PaMe| PaTe | PaLo | PaLoPost | PaLa | PaLe | PaNos | PaOs | PaLos | PaLas | PaLes ] ];
!define Erl [ "[" [ {KAUS} | {KONP} | {ZHG} | {ERLT} | {MEN} ] "]" ];
! Beharrezkoa da loakiluaren gaineko aditzik balego, ber informazio morfologikoa, eta aditz mota (edo ze aditza den), subjuntibozoak tratatu ahal izateko: dudo que haya venido / etorri izana dudan jartzen dut
!define PAN [ "<" [ {vmip} | {vmpp} ] ">" ];
!define PANVMIP
echo >> Sarrera: Espainierazko aditz-kate osoaren definizioak;
echo >> Input: Spanish pronounswhole verb-chains' definitions;
!Gorkak aldatua
!define AdKEJ [ AdNES IMEzJok "&" AdNEU ];
define AdKEJ [ [Pr %+]* AdNES IMEzJok [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKArrSin [ [Pr %+]* AdNES IMJok [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKArrLag [ [Pr %+]* HaberLag IMJok [%+Pr]* %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer1ISin [ [Pr %+]* AdP1IJok [%+ Pr]* %+ AdNES IMInf [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer1ILag [ [Pr %+]* HaberLag IMJok [%+Pr]* %+ AdP1IPar %+ AdNES IMInf [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer1GSin [ [Pr %+]* AdP1GJok [%+ Pr]* %+ AdNES IMGer [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer1GLag [ [Pr %+]* HaberLag IMJok [%+Pr]* %+ AdP1GPar %+ AdNES IMGer [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
!!!!!!! Aingeruk gehituta
define AdKPer1PSin [ [Pr %+]* AdP1PJok [%+ Pr]* %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer1PLag [ [Pr %+]* HaberLag IMJok [%+Pr]* %+ AdP1PPar %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
!!!!!!
define AdKPer2Sin [ [Pr %+]* AdP2Jok [%+ Pr]* %+ AdNES IMInf [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer2Lag [ [Pr %+]* HaberLag IMJok [%+Pr]* %+ AdP2Par %+ AdNES IMInf [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer3Sin [ [Pr %+]* AdP3Jok [%+ Pr]* %+ AdNES IMInf [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer3Lag [ [Pr %+]* HaberLag IMJok [%+Pr]* %+ AdP3Par %+ AdNES IMInf [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer4Sin [ [Pr %+]* AdP4Jok [%+ Pr]* %+ AdNES IMInf [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer4Lag [ [Pr %+]* HaberLag IMJok [%+Pr]* %+ AdP4Par %+ AdNES IMInf [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKEJPas [ SerPas IMEzJok %+ AdNES IMPar "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKArrSinPas [[Pr %+]* SerPas IMJok %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKArrLagPas [[Pr %+]* HaberLag IMJok %+ SerPas IMPar %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer1ISinPas [[Pr %+]* AdP1IJok %+ SerPas IMInf %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer1ILagPas [[Pr %+]* HaberLag IMJok %+ AdP1IPar %+ SerPas IMInf %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer1GSinPas [[Pr %+]* AdP1GJok %+ SerPas IMGer %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer1GLagPas [[Pr %+]* HaberLag IMJok %+ AdP1GPar %+ SerPas IMGer %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
!!!!!
define AdKPer1PSinPas [[Pr %+]* AdP1PJok %+ SerPas IMPar %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer1PLagPas [[Pr %+]* HaberLag IMJok %+ AdP1PPar %+ SerPas IMPar %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
!!!!!!
define AdKPer2SinPas [[Pr %+]* AdP2Jok %+ SerPas IMInf %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer2LagPas [[Pr %+]* HaberLag IMJok %+ AdP2Par %+ SerPas IMInf %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer3SinPas [[Pr %+]* AdP3Jok %+ SerPas IMInf %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer3LagPas [[Pr %+]* HaberLag IMJok %+ AdP3Par %+ SerPas IMInf %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer4SinPas [[Pr %+]* AdP4Jok %+ SerPas IMInf %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer4LagPas [[Pr %+]* HaberLag IMJok %+ AdP4Par %+ SerPas IMInf %+ AdNES IMPar [%+ Pr]* "&" Sub Obj Dat "&" Trans "&" AdNEU ];
define AdKPer1Sin [ AdKPer1ISin | AdKPer1GSin | AdKPer1PSin] ;
define AdKPer1Lag [ AdKPer1ILag | AdKPer1GLag | AdKPer1PLag ] ;
define AdKPer1SinPas [ AdKPer1ISinPas | AdKPer1GSinPas | AdKPer1PSinPas ] ;
define AdKPer1LagPas [ AdKPer1ILagPas | AdKPer1GLagPas | AdKPer1PLagPas ] ;
define AdKArr [ AdKArrSin | AdKArrLag ] ;
define AdKPer1 [ AdKPer1Sin | AdKPer1Lag ] ;
define AdKPer2 [ AdKPer2Sin | AdKPer2Lag ] ;
define AdKPer3 [ AdKPer3Sin | AdKPer3Lag ] ;
define AdKPer4 [ AdKPer4Sin | AdKPer4Lag ] ;
define AdKAkt [ AdKEJ | AdKArr | AdKPer1 | AdKPer2 | AdKPer3 | AdKPer4 ];
!define AdKArr [ AdKArrSin | AdKArrLag | AdKArrSinPas | AdKArrLagPas ] ;
!define AdKPer1 [ AdKPer1Sin | AdKPer1Lag | AdKPer1SinPas | AdKPer1LagPas ] ;
!define AdKPer2 [ AdKPer2Sin | AdKPer2Lag | AdKPer2SinPas | AdKPer2LagPas ] ;
!define AdKPer3 [ AdKPer3Sin | AdKPer3Lag | AdKPer3SinPas | AdKPer3LagPas ] ;
!define AdKPer4 [ AdKPer4Sin | AdKPer4Lag | AdKPer4SinPas | AdKPer4LagPas ] ;
define AdKArrPas [ AdKArrSinPas | AdKArrLagPas ] ;
define AdKPer1Pas [ AdKPer1SinPas | AdKPer1LagPas ] ;
define AdKPer2Pas [ AdKPer2SinPas | AdKPer2LagPas ] ;
define AdKPer3Pas [ AdKPer3SinPas | AdKPer3LagPas ] ;
define AdKPer4Pas [ AdKPer4SinPas | AdKPer4LagPas ] ;
define AdKPas [ AdKEJPas | AdKArrPas | AdKPer1Pas | AdKPer2Pas | AdKPer3Pas | AdKPer4Pas ];
define AdK [ AdKAkt | AdKPas ];
echo >> Irteera: Euskarazko aditz-kate osoaren definizioak;
echo >> Output: SpanishBasque whole verb-chains' definitions;
define IrtEJ [ XXX {EJ}")" "<NAG>" {AspN} {Erl} ] ;
define IrtAR [ XXX {AR}")" "<NAG>" {AspN} "/" {AdM} {AspM} "/"{AdL} {DenMod} {Nr}{Ni}{Nk} {Erl} ] ;
define IrtP1 [ XXX {P1}")" "<NAG>" {AspN} "/" {Per}"<PER>"{AspP} "/" {AdM} {AspM} "/"{AdL} {DenMod} {Nr}{Ni}{Nk} {Erl} ] ;
define IrtP2 [ XXX {P2}")" "<NAG>" {AspN} "/" {Prt} "/" {AdM} {AspM} "/"{AdL} {DenMod} {Nr}{Ni}{Nk} {Erl} ] ;
define IrtP3 [ XXX {P3}")" "<NAG>" {AspN} "/" {Adb} "/" {AdM} {AspM} "/"{AdL} {DenMod} {Nr}{Ni}{Nk} {Erl} ] ;
define IrtEJPas [ XXX {EJPAS}")" "<NAG>" {AspN} {Erl} ] ;
define IrtARPas [ XXX {ARPAS}")" "<NAG>" {AspN} "/" {AdM} {AspM} "/"{AdL} {DenMod} {Nr}{Ni}{Nk} {Erl} ] ;
define IrtP1Pas [ XXX {P1PAS}")" "<NAG>" {AspN} "/" {Per}"<PER>"{AspP} "/" {AdM} {AspM} "/"{AdL} {DenMod} {Nr}{Ni}{Nk} {Erl} ] ;
define IrtP2Pas [ XXX {P2PAS}")" "<NAG>" {AspN} "/" {Prt} "/" {AdM} {AspM} "/"{AdL} {DenMod} {Nr}{Ni}{Nk} {Erl} ] ;
define IrtP3Pas [ XXX {P3PAS}")" "<NAG>" {AspN} "/" {Adb} "/" {AdM} {AspM} "/"{AdL} {DenMod} {Nr}{Ni}{Nk} {Erl} ] ;
echo >> + Sarrera -> Irteera ;
echo >> + Input -> Output ;
echo >> ======================================== ;
regex [ [ "$" -> IrtEJ "$" || "#" AdKEJ _ ] ] ;
regex [ [ "$" -> IrtAR "$" || "#" AdKArr _ ] ] ;
regex [ [ "$" -> IrtP1 "$" || "#" AdKPer1 _ ] ] ;
regex [ [ "$" -> IrtP2 "$" || "#" AdKPer2 _ ] ] ;
regex [ [ "$" -> IrtP3 "$" || "#" AdKPer3 _ ] ] ;
regex [ [ "$" -> IrtAR "$" || "#" AdKPer4 _ ] ] ;
regex [ [ "$" -> IrtEJPas "$" || "#" AdKEJPas _ ] ] ;
regex [ [ "$" -> IrtARPas "$" || "#" AdKArrPas _ ] ] ;
regex [ [ "$" -> IrtP1Pas "$" || "#" AdKPer1Pas _ ] ] ;
regex [ [ "$" -> IrtP2Pas "$" || "#" AdKPer2Pas _ ] ] ;
regex [ [ "$" -> IrtP3Pas "$" || "#" AdKPer3Pas _ ] ] ;
regex [ [ "$" -> IrtARPas "$" || "#" AdKPer4Pas _ ] ] ;
echo >> + Ordezkapenak ;
! "hay coches/hay dinero" bezalakoetan analizatzailetik datozen erroreak zuzentzeko
! "hay que venir", "han de venir"
!define egonVA [
regex [
[ {VA} -> {VM} || ?* {_egon_} "[" _ ?* ]
.o.
[ {VA} -> {VM} || ?* {.haber.} "[" _ Karak* "]" %+ {.que.} ?* ]
.o.
[ {VA} -> {VM} || ?* {.haber.} "[" _ Karak* "]" %+ {.de.} ?* ]
];
!define egonPertsNum [
regex [
[ {3S} -> {3P} || ?* {_egon_} ?* _ ?* {obj3p} ]
];
!define izanTrans [
! [ {DU} -> {DA} || ?* {_izan_} ?* _ ?* ]
! .o.
! [ {DIO} -> {ZAIO} || ?* {_izan_} ?* _ ?* ]
! .o.
! [ {DA} -> {DU} || ?* {_edun_} ?* _ ?* ]
! .o.
! [ {ZAIO} -> {DIO} || ?* {_edun_} ?* _ ?* ]
!];
!define edunUkan [
regex [
[ {_edun} -> {_ukan} || ?* _ ?* ]
.o.
[ {_edun} -> {_ukan} || ?* _ ?* ]
];
!define LoLa [
regex [
[ {obj00} -> {obj3s} || ?* [ PaLo | PaLa | PaLoPost ] ?* _ ?* ]
.o.
[ {obj00} -> {obj3p} || ?* [ PaLos | PaLas ] ?* _ ?* ]
.o.
[ {dat00} -> {dat3s} || ?* [ PaLe ] ?* _ ?* ]
.o.
[ {dat00} -> {dat3p} || ?* [ PaLes ] ?* _ ?* ]
];
!define meTeSeDuDa [
regex [
[ {DU} -> {DA} || ?* [ PaMe ?* {1S} | PaTe ?* {2S} | PaSe ?* {3S} ] ?* "["{obj00}"]""["{dat00}"]" ?* _ ?* ]
.o.
[ {DU} -> {DA} || ?* [ PaNos ?* {1P} | PaOs ?* {2P} | PaSe ?* {3P} ] ?* "["{obj00}"]""["{dat00}"]" ?* _ ?* ]
! .o.
! [ {DU} -> {DA} || ?* PaSe ?* ~Pr ?* {3P} ?* "["{sub00}"]" ?* _ ?* ]
.o.
[ {DU} -> {DA} || ?* PaSe ?* [ PaMe | PaTe | PaLe | PaNos | PaOs ] ?* [{3S}|{3P}] ?* _ ?* ]
];
!define meTeSe [
regex [
[ {obj00} -> {obj1s} || ?* ["2"|"3"]["S"|"P"] ?* [ PaMe ] ?* _ ?* [{DU}|{DIO}] ?* ]
.o.
[ {dat00} -> {dat1s} || ?* ["2"|"3"]["S"|"P"] ?* [ PaMe ] ?* {obj} ["0"|"2"|"3"] ?* _ ?* ]
.o.
[ {obj00} -> {obj2s} || ?* ["1"|"3"]["S"|"P"] ?* [ PaTe ] ?* _ ?* [{DU}|{DIO}] ?* ]
.o.
[ {dat00} -> {dat2s} || ?* ["1"|"3"]["S"|"P"] ?* [ PaTe ] ?* {obj} ["0"|"1"|"3"] ?* _ ?* ]
.o.
[ {obj00} -> {obj1p} || ?* ["2"|"3"]["S"|"P"] ?* [ PaNos ] ?* _ ?* [{DU}|{DIO}] ?* ]
.o.
[ {dat00} -> {dat1p} || ?* ["2"|"3"]["S"|"P"] ?* [ PaNos ] ?* {obj} ["0"|"2"|"3"] ?* _ ?* ]
.o.
[ {obj00} -> {obj2p} || ?* ["1"|"3"]["S"|"P"] ?* [ PaOs ] ?* _ ?* [{DU}|{DIO}] ?* ]
.o.
[ {dat00} -> {dat2p} || ?* ["1"|"3"]["S"|"P"] ?* [ PaOs ] ?* {obj} ["0"|"1"|"3"] ?* _ ?* ]
.o.
[ {dat00} -> {dat3s} || ?* [ PaSe | PaSePost] ?* [PaLo|PaLos|PaLa|PaLas|PaLoPost] ?* _ ?* ]
];
!define meTeSe2 [
regex [
[ {obj00} -> {obj1s} || ?* [ PaMe ] ?* ["2"|"3"]["S"|"P"] ?* _ ?* [{DU}|{DIO}] ?* ]
.o.
[ {dat00} -> {dat1s} || ?* [ PaMe ] ?* ["2"|"3"]["S"|"P"] ?* {obj} ["0"|"2"|"3"] ?* _ ?* ]
.o.
[ {obj00} -> {obj2s} || ?* [ PaTe ] ?* ["1"|"3"]["S"|"P"] ?* _ ?* [{DU}|{DIO}] ?* ]
.o.
[ {dat00} -> {dat2s} || ?* [ PaTe ] ?* ["1"|"3"]["S"|"P"] ?* {obj} ["0"|"1"|"3"] ?* _ ?* ]
.o.
[ {obj00} -> {obj1p} || ?* [ PaNos] ?* ["2"|"3"]["S"|"P"] ?* _ ?* [{DU}|{DIO}] ?* ]
.o.
[ {dat00} -> {dat1p} || ?* [ PaNos] ?* ["2"|"3"]["S"|"P"] ?* {obj} ["0"|"2"|"3"] ?* _ ?* ]
.o.
[ {obj00} -> {obj2p} || ?* [ PaOs ] ?* ["1"|"3"]["S"|"P"] ?* _ ?* [{DU}|{DIO}] ?* ]
.o.
[ {dat00} -> {dat2p} || ?* [ PaOs ] ?* ["1"|"3"]["S"|"P"] ?* ?* {obj} ["0"|"1"|"3"] ?* _ ?* ]
];
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Trinkoetan: "/"{AdM}{AspM}"/"{AdL} bihurtu [ADT]
!define TransTrinkArr [
regex [
[ {AspN} ?* "/" {AdL} -> "[ADT]" || ?* [VMIP | VMII] ?* AdTrinkoa ?* XXX {AR} ?* _ ?* ]
!## |
!## [ ~ [ ?* [VMIP | VMII] ?* AdTrinkoa ?* XXX {AR} ?* {AspN} ?* "/" {AdL} ?* ] ]
];
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Aditz nagusiaren aspektua (AspN)
!define TransAspNEJ [
regex [
[ {AspN} -> "ADIZE" || ?* IMInf ?* XXX {EJ} ?* _ ?* ]
.o.
[ {AspN} -> "INE" || ?* IMGer ?* XXX {EJ} ?* _ ?* ]
.o.
[ {AspN} -> "MOD" || ?* IMPar ?* XXX {EJ} ?* _ ?* ]
.o.
[ {AspN} -> "BURU" || ?* IMAdjPar ?* XXX {EJ} ?* _ ?* ]
] ;
!define TransAspNArrPer3 [
regex [
[ {AspN} -> "EZBU" || ?* [ VMIP | VMII ] ?* XXX [{AR}|{P3}] ?* _ ?* ]
.o.
[ {AspN} -> "BURU" || ?* [ VMIS | VAIP | VAII | VAIS | VASP ] ?* XXX [{AR}|{P3}] ?* _ ?* ]
.o.
[ {AspN} -> "GERO" || ?* [ VMIF | VMIC | VAIC | VASI ] ?* XXX [{AR}|{P3}] ?* _ ?* ]
.o.
[ {AspN} -> "ADOIN" || ?* [ VMSP | VMSI | VMM ] ?* XXX [{AR}|{P3}] ?* _ ?* ]
.o.
[ {AspN} -> "ABS" || ?* [ VAIF] ?* XXX [{AR}|{P3}] ?* _ ?* ]
] ;
! AINGERU: ADi: Gehitu dut:
! | {.acabar.}|{.andar.}|{.comenzar.}| ...
!define TransAspNPer1 [
regex [
[ {AspN} -> "HUR" || ?* {.estar.} IM %+ {.a}"_"{punto}"_"{de.} ?* XXX {P1} ?* _ ?* ]
.o.
[ {AspN} -> "ALA" || ?* {.ir.} IM %+ {.a.} ?* XXX {P1} ?* _ ?* ]
.o.
[ {AspN} -> "MOD" || ?* {.estar.} ?* %+ AdNES IMPar ?* XXX {P1} ?* _ ?* ]
.o.
[ {AspN} -> "EZBU" || ?* [ [{.empezar.}|{.comenzar.}|{.echar.}|{.romper.}] IM %+ {.a.} #...
| {.terminar.} IM %+ {.de.}
| [ {.acabar.}|{.andar.}|{.comenzar.}|{.empezar.}
|{.continuar.}|{.continuar.}|{.estar.}|{.ir.}
|{.llevar.}|{.seguir.}|{.terminar.}|{.venir.}] IM
] ?* XXX {P1} ?* _ ?* ]
.o.
[ {AspN} -> "BURU" || ?* [[{.tener.}|{.haber.}] IM %+ {.que.}
|{.haber.} IM %+ {.de.}|{.poder.}|{.deber.}] ?* XXX {P1} ?* _ ?* ]
.o.
[ {AspN} -> "DAT" || ?* {.dejar.} IM %+ {.de.} ?* XXX {P1} ?* _ ?* ]
.o.
[ {AspN} -> "INE" || ?* IMGer ?* XXX {P1} ?* _ ?* ]
];
!define TransAspNPer2 [
regex [
[ {AspN} -> "BURU" || ?* {.deber.} IM %+ {.de.} ?* [ VMIP | VMII ] ?* XXX {P2} ?* _ ?* ]
.o.
[ {AspN} -> "PART" || ?* XXX {P2} ?* _ ?* ]
];
! TransAspNArr-ren berdina!!!
!##define TransAspTrinkoak [
!## [ ~[ ?* {AspN} ?* ] ]
!##];
!##define TransAspN [ TransAspNEJ | TransAspNArrPer3 | TransAspNPer1 | TransAspNPer2 | TransAspTrinkoak ];
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Aditz Kate perifrastikoetan ordezkapenak ;
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Aditz perifrastikoetan (P1) perifrastikoen itzulpena;
!define TransPer [
regex [
[ {Per} -> {ahal} {_izan} || ?* {.poder.} ?* _ ?* ]
.o.
[ {Per} -> {amaitu} || ?* [ {.acabar.} | {.terminar.} ] ?* _ ?* ]
.o.
[ {Per} -> {egon} || ?* {.estar.} IM %+ {.a}"_"{punto}"_"{de.} ?* _ ?* ]
!!!! Aingeruk gehituta (está cansado -> nekatuta dago)
.o.
[ {Per} -> {egon} || ?* {.estar.} ?* %+ AdNES IMPar ?* _ ?* ]
.o.
[ {Per} -> {ari} {_izan} || ?* [ {.andar.} | {.estar.} ] ?* _ ?* ]
.o.
[ {Per} -> {behar} {_izan} || ?* [ {.deber.}|[{.tener.}|{.haber.}] IM %+ {.que.}|{.haber.} IM %+ {.de.}] ?* _ ?* ]
.o.
[ {Per} -> {eraman} || ?* [ {.llevar.} ] ?* _ ?* ]
.o.
[ {Per} -> {etorri} || ?* [ {.venir.} ] ?* _ ?* ]
.o.
[ {Per} -> {hasi} || ?* [ {.empezar.}|{.comenzar.}|{.echar.}|{.romper.} ] ?* _ ?* ]
.o.
[ {Per} -> {jarraitu} || ?* [ {.seguir.}| {.continuar.} ] ?* _ ?* ]
.o.
[ {Per} -> {joan} || ?* {.ir.} ?* _ ?* ]
.o.
[ {Per} -> {nahi} {_izan} || ?* {.querer.} ?* _ ?* ]
.o.
[ {Per} -> {utzi} || ?* {.dejar.} IM %+ {.de.} ?* _ ?* ]
!## |
!## [ ~ [ ?* XXX {P1} ?* ] ]
];
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Aditz perifrastiko (P1) trinkoak;
!Aingeru. Adi: gehitu dut
!define TransTrinkPer [
regex [ [ {AspP} ?* "/"{AdL} -> "[ADT]" || ?* [VMIP | VMII ] ?* XXX {P1} ?* "/" AdTrinkoa "<"{PER}">" ?* _ ?* ] ];
regex [ [ {AspP} ?* "/"{AdL} -> "[ADT]" || ?* [VAIP | VAII ] ?* XXX {P1} ?* "/" {egon} "<"{PER}">" ?* _ ?* ] ];
!regex [
! [ {AspP} ?* "/"{AdL} -> "[ADT]" || ?* [VMIP | VMII ] ?* XXX {P1} ?* "/" AdTrinkoa "<"{PER}">" ?* _ ?* ]
! |
! [ {AspP} ?* "/"{AdL} -> "[ADT]" || ?* [VAIP | VAII ] ?* XXX {P1} ?* "/" {egon} "<"{PER}">" ?* _ ?* ]
!
!## |
!## [ ~ [ ?* [VMIP | VMII] ?* XXX {P1} ?* "/" AdTrinkoa "<"{PER}">" ?* {AspP} ?* "/"{AdL} ?* ] ]
!] ;
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Aditz perifrastikoetan (P1) aspektuaren (AspP) itzulpena;
!define TransAspPA [
regex [
!## [
[ {AspP} -> "ADPGER" || ?* [ VMIF|VMIC|VAIC ] ?* XXX {P1} ?* {_izan} "<PER>" _ ?* ]
.o.
[ {AspP} -> "ADOIN" || ?* XXX {P1} ?* {ari} {_izan} "<PER>" _ ?* ]
.o.
[ {AspP} -> "IZE" || ?* XXX {P1} ?* [{ahal}|{behar}|{nahi}]
{_izan} "<PER>" _ ?* ]
.o.
[ {AspP} -> "GERO" || ?* [ VMIF|VMIC|VAIC ] ?* XXX {P1} ?* _ ?* ]
.o.
[ {AspP} -> "EZBU" || ?* [ VMIP|VMII ] ?* XXX {P1} ?* [{hasi}|{amaitu}|{utzi}|{jarraitu}
|{joan}|{eraman}|{etorri} ] _ ?* ]
.o.
[ {AspP} -> "BURU" || ?* XXX {P1} ?* _ ?* ]
!## ]
!## |
!## [ [ ?* [VMIP | VMII] ?* XXX {P1} ?* "/" AdTrinkoa "<"{PER}">" ?* {[ADT]} ?* ] ]
!## |
!## [ ~ [ ?* XXX {P1} ?* ] ]
];
!define TransAspPB [
regex [
!## [
[ {ari} {_izan} -> {aritu} || ?* XXX {P1} ?* _ "<PER>" "ADOIN" ?* ] #!!#
.o.
[ {ahal} {_izan} -> {ahal} || ?* XXX {P1} ?* _ "<PER>" "IZE" ?* ] #!!#
.o.
[ {behar} {_izan} -> {behar} || ?* XXX {P1} ?* _ "<PER>" "IZE" ?* ] #!!#
.o.
[ {nahi} {_izan} -> {nahi} || ?* XXX {P1} ?* _ "<PER>" "IZE" ?* ] #!!#
!## ]
!## |
!## [ ~ [ ?* XXX {P1} ?* [{ahal}|{behar}|{nahi}|{ari}] {_izan} "<"{PER}">" ?* ] ]
] ;
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Aditz perifrastikoetan (P2) partikularen itzulpena;
!define TransPrt [
regex [
[ {Prt} -> "ohi<PRT>[BST]" || ?* [ {.acostumbrar.} ?* {.a.} | {.soler.} ] ?* "/" _ ?* ]
.o.
[ {Prt} -> "omen<PRT>[PRT][ZIU]" || ?* {.deber.} ?* {.de.} ?* "/" _ ?* ]
.o.
[ {Prt} -> "berri<PRT>[ADJ][IZO]" || ?* {.acabar.} ?* {.de.} ?* "/" _ ?* ]
!## |
!## [ ~ [ ?* XXX {P2} ?* ] ]
];
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Aditz perifrastikoetan (P3) adberbioaren itzulpena;
!define TransAdb [
regex [
[ {Adb} -> "berriz<ADB>[ADB][ADOARR]" || ?* {.volver.} ?* {.a.} ?* "/" _ ?* ]
!## |
!## [ ~ [ ?* XXX {P3} ?* ] ]
];
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Aditz modala eta bere aspektua (AdMod /AspM)
!! AINGERU: Adi: {aritu} gehitu dut
!define TransAdMAspMKendu1 [
regex [ "/" {AdM} {AspM} -> "" || [ "#" [ AdKArrSin | AdKPer4Sin | AdKArrSinPas | AdKPer4SinPas ] #...
| ?* [ VAIP |VAII |VAIC |VMSP |VMSI |VASP |VASI |VMM ] ] ?* XXX {AR} ?* _ ?* ] ;
regex [ "/" {AdM} {AspM} -> "" || ?* [ [ VMIP | VMII | VMIF | VMIC | VAIC ] ?* XXX {P1} #...
| [ VMIS | VAIP | VAII ] ?* XXX {P1} ?* #...
[ {aritu}|{hasi}|{amaitu}|{utzi}|{jarraitu}|{joan}|{eraman}|{etorri} ] #...
| VAIS ?* IMInf ?* XXX {P1} ?* {hasi} ] ?* _ ?* ];
!define TransAdMAspMKendu2 [
regex [
[ "/" {AdM} {AspM} -> "" || ?* [ [ VMIP |VMII |VMIS |VMIF #...
|VMIC |VAIS |VAIF |VAIC ] ?* XXX {P2} #...
|[ VAIP | VAII ] ?* XXX {P2} ?* [{behar}|{amaitu}] ] ?* _ ?* ]
.o.
[ "/" {AdM} {AspM} -> "" || ?* [ [ AdKPer3Sin | AdKPer3SinPas ] #...
| ?* [ VAIP | VAII | VAIC ] ?*] XXX {P3} ?* _ ?* ]
];
!define TransAdM [
regex [
[ {AdM} -> "izan<ADM>" ]
];
!define TransAspM [
regex [
[ {AspM} -> "BURU" || ?* [ VAIS ?* XXX [{AR}|{P3}] #...
| [ VMIS | VAIP | VAII | VAIS ] ?* XXX {P1} #...
| [ VAIP | VAII ] ?* XXX {P2} ] ?* _ ?* ]
.o.
[ {AspM} -> "GERO" || ?* VAIF ?* XXX [{AR}|{P1}|{P3}] ?* _ ?* ]
] ;
!##define TransAdMAspM [
!## TransAdMAspMKendu1
!## | TransAdMAspMKendu2
!## | [ TransAdM .o. TransAspM ]
!## | ~ [ "#" ?* {AdM}{AspM} ?* "$" ]
!##];
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Aditzaren laguntzailea (Lag)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Aditz laguntzailea (perifrastikoak ezartzen duenean laguntzaile mota);
!define TransAdLPer [
! [ {AdL} -> "edun<ADL>""[ADL]" || ?* XXX {P} ?* PerifEdun ?* "/" _ ?* ]
! .o.
! [ {AdL} -> "izan<ADL>""[ADL]" || ?* XXX {P} ?* PerifIzan ?* "/" _ ?* ]
!## |
!## [ ~ [ ?* XXX {P1} ?* [PerifIzan|PerifEdun] ?* ] ]
!];
!define TransAdLPer [
regex [
[ {DA} -> {DU} || ?* _ ?* XXX {P} ?* PerifEdun ?* ]
.o.
[ {ZAIO} -> {DIO} || ?* _ ?* XXX {P} ?* PerifEdun ?* ]
.o.
[ {DU} -> {DA} || ?* _ ?* XXX {P} ?* PerifIzan ?* ]
.o.
[ {DIO} -> {ZAIO} || ?* _ ?* XXX {P} ?* PerifIzan ?* ]
.o.
[ {DU} -> {DA} || ?* {.haber.} IM %+ {.que.} ?* _ ?* ]
.o.
[ {DIO} -> {ZAIO} || ?* {.haber.} IM %+ {.que.} ?* _ ?* ]
];
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Aditz laguntzailea (Bestelako kasuetan) ;
!define TransAdL [
regex [
[ {AdL} -> "edin<ADL>""[ADL]" || ?* [VMSP | VMSI | VMM] ?* [{DA} | {ZAIO}] ?* XXX ?* _ ?* ]
.o.
[ {AdL} -> "izan<ADL>""[ADL]" || ?* [{DA} | {ZAIO}] ?* XXX ?* _ ?* ]
.o.
[ {AdL} -> "ezan<ADL>""[ADL]" || ?* [VMSP | VMSI | VMM] ?* [{DU} | {DIO}] ?* XXX ?* _ ?* ]
.o.
[ {AdL} -> "edun<ADL>""[ADL]" || ?* [{DU} | {DIO}] ?* XXX ?* _ ?* ]
!## |
!## [ ~ [ ?* {AdL} ?* ] ]
] ;
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Denbora Modua (DenMod) ;
!define TransDenMod [
regex [
[ {DenMod} -> "[A1]" || ?* [ VMIP | VMIF | VAIP | VAIF | VASP] ?* XXX ?* _ ?* ]
.o.
[ {DenMod} -> "[A3]" || ?* VMSP ?* XXX ?* _ ?* ]
.o.
[ {DenMod} -> "[B1]" || ?* [ VMII | VMIS | VAII | VAIS ] ?* XXX ?* _ ?* ]
.o.
[ {DenMod} -> "[B2]" || ?* [ VMIC | VASI ] ?* XXX ?* _ ?* ]
.o.
[ {DenMod} -> "[B3]" || ?* VAIC ?* XXX ?* _ ?* ]
.o.
[ {DenMod} -> "[B5B]"|| ?* VMSI ?* XXX ?* _ ?* ]
.o.
[ {DenMod} -> "[A3]"|| ?* VMM {01} ?* XXX ?* _ ?* ]
.o.
[ {DenMod} -> "[MDNC]" || ?* VMM ?* XXX ?* _ ?* ]
!## |
!## [ ~ [ ?* {DenMod} ?* ] ]
] ;
!define TransErlMorf [
regex [
[ {Erl} -> "+n[ERL][MEN][HELB]" || ?* ["edin<ADL>" | "ezan<ADL>" ] ?* [ "[A1]" | "[A3]" | "[B2]" | "[B5B]"] ?* _ ?* ]
.o.
[ {Erl} -> "" || ?* _ ?* ]
] ;
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Nor(Nr) Sub;
!define TransNrSub [
regex [
[ {Nr} -> "[NR_NI]" || ?* {1S} Karak ?* [ "izan<ADL>" | AdTrIntr ?* "[ADT]" | "edin<ADL>" ] ?* _ ?* ]
.o.
[ {Nr} -> "[NR_ZU]" || ?* {2S} Karak ?* [ "izan<ADL>" | AdTrIntr ?* "[ADT]" | "edin<ADL>" ] ?* _ ?* ]
.o.
[ {Nr} -> "[NR_HU]" || ?* {3S} Karak ?* [ "izan<ADL>" | AdTrIntr ?* "[ADT]" | "edin<ADL>" ] ?* _ ?* ]
.o.
[ {Nr} -> "[NR_GU]" || ?* {1P} Karak ?* [ "izan<ADL>" | AdTrIntr ?* "[ADT]" | "edin<ADL>" ] ?* _ ?* ]
.o.
[ {Nr} -> "[NR_ZK]" || ?* {2P} Karak ?* [ "izan<ADL>" | AdTrIntr ?* "[ADT]" | "edin<ADL>" ] ?* _ ?* ]
.o.
[ {Nr} -> "[NR_HK]" || ?* {3P} Karak ?* [ "izan<ADL>" | AdTrIntr ?* "[ADT]" | "edin<ADL>" ] ?* _ ?* ]
] ;
echo >> Nor(Nr) Obj;
!define TransNrObj [
regex [
[ {Nr} -> "[NR_NI]" || ?* {obj1s} ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ]
.o.
[ {Nr} -> "[NR_ZU]" || ?* {obj2s} ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ]
.o.
[ {Nr} -> "[NR_HU]" || ?* [{obj}[{3s}|{00}]
|{utzi}"<PER>" ] ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ]
.o.
[ {Nr} -> "[NR_GU]" || ?* {obj1p} ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ]
.o.
[ {Nr} -> "[NR_ZK]" || ?* {obj2p} ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ]
.o.
[ {Nr} -> "[NR_HK]" || ?* {obj3p} ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ]
] ;
!##define TransNr [ TransNrSub | TransNrObj | ~ [ "#" ?* {Nr} ?* "$" ] ];
echo >> Nori(Ni);
!define TransNi [
regex [
[ {Ni} -> "[NI_NI]" || ?* {dat1s} ?* _ ?* ]
.o.
[ {Ni} -> "[NI_ZU]" || ?* {dat2s} ?* _ ?* ]
.o.
[ {Ni} -> "[NI_HU]" || ?* [ {dat3s} | {utzi}"<PER>" ] ?* _ ?* ]
.o.
[ {Ni} -> "[NI_GU]" || ?* {dat1p} ?* _ ?* ]
.o.
[ {Ni} -> "[NI_ZK]" || ?* {dat2p} ?* _ ?* ]
.o.
[ {Ni} -> "[NI_HK]" || ?* {dat3p} ?* _ ?* ]
.o.
[ {Ni} -> "" || ?* {dat00} ?* _ ?* ]
!## |
!## [ ~ [ ?* {Ni} ?* ] ]
] ;
echo >> Nork(Nk) Subj Pas;
!define TransNkPas [
regex [
[ {Nk} -> "[NK_NI]" || ?* {sub1s} ?* "PAS" ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ]
.o.
[ {Nk} -> "[NK_ZU]" || ?* {sub2s} ?* "PAS" ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ]
.o.
[ {Nk} -> "[NK_HU]" || ?* {sub3s} ?* "PAS" ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ]
.o.
[ {Nk} -> "[NK_GU]" || ?* {sub1p} ?* "PAS" ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ]
.o.
[ {Nk} -> "[NK_ZK]" || ?* {sub2p} ?* "PAS" ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ]
.o.
[ {Nk} -> "[NK_HK]" || ?* {sub}[{3p}|{00}] ?* "PAS" ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ]
] ;
echo >> Nork(Nk);
!define TransNk [
regex [ {Nk} -> "[NK_NI]" || ?* {1S} Karak ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ] ;
regex [ {Nk} -> "[NK_ZU]" || ?* {2S} Karak ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ] ;
regex [ {Nk} -> "[NK_HU]" || ?* {3S} Karak ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ] ;
regex [ {Nk} -> "[NK_GU]" || ?* {1P} Karak ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ] ;
regex [ {Nk} -> "[NK_ZK]" || ?* {2P} Karak ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ] ;
regex [ {Nk} -> "[NK_HK]" || ?* {3P} Karak ?* [ "edun<ADL>" | AdTrTran ?* "[ADT]" | "ezan<ADL>" ] ?* _ ?* ] ;
regex [ {Nk} -> "" || ?* [ "izan<ADL>" | AdTrIntr | "edin<ADL>" ] ?* _ ?* ] ;
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!echo >> Erlazio morfema (ErlMor) ;
!define TransErlMor [
! [ {ErlMor} -> "lako[ERL][MEN][KAUS]" || ?* "[" {KAUS} "]" ?* XXX ?* "+" _ ?* ]
! .o.
! [ {ErlMor} -> "la[ERL][MEN][KONP]" || ?* "[" {KONP} "]" ?* XXX ?* "+" _ ?* ]
! .o.
! [ {ErlMor} -> "n[ERL][MEN][ZHG]" || ?* "[" {ZHG} "]" ?* XXX ?* "+" _ ?* ]
! .o.
! [ {ErlMor} -> "n[ERL][MEN][ERLT]" || ?* "[" {ERLT} "]" ?* XXX ?* "+" _ ?* ]
! .o.
! [ {ErlMor} -> "n[ERL][MEN][MOS]" || ?* "[" {MOS} "]" ?* XXX ?* "+" _ ?* ]
! .o.
! [ "+" {ErlMor} -> "" || ?* XXX ?* _ ?* ]
!## |
!## [ ~ [ ?* {ErlMor} ?* ] ]
!];
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Aspektuak osatu ;
!define TransAspOsatu [
regex [
[ "PART" -> "[ADI][SIN]+[AMM][PART]" ] #!!#
.o.
[ "ADOIN" -> "[ADI][SIN]+[AMM][ADOIN]" ] #!!#
.o.
[ "EZBU" -> "[ADI][SIN]+[AMM][ADOIN]+[ASP][EZBU]" ] #!!#
.o.
[ "BURU" -> "[ADI][SIN]+[AMM][PART]+[ASP][BURU]" ] #!!#
.o.
[ "GERO" -> "[ADI][SIN]+[AMM][PART]+[ASP][GERO]" ] #!!#
.o.
[ "ADPGER" -> "[ADI][SIN]+[AMM][PART]+[ASP][GERO]" ] #!!#
.o.
[ "MOD" -> "[ADI][SIN]+[AMM][PART]+[ERL][MEN][MOD]" ] #!!#
.o.
[ "ADIZE" -> "[ADI][SIN]+[AMM][ADIZE]" ] #!!#
.o.
[ "HUR" -> "[ADI][SIN]+[AMM][ADOIN]+[ASP][EZBU][HUR]" ] #!!#
.o.
[ "ALA" -> "[ADI][SIN]+[AMM][ADIZE]+[DEK][ALA]" ] #!!#
.o.
[ "DAT" -> "[ADI][SIN]+[AMM][ADIZE]+[DEK][DAT][NUMS]" ] #!!#
.o.
[ "INE" -> "[ADI][SIN]+[AMM][ADIZE]+[DEK][INE]" ] #!!#
.o.
[ "ABS" -> "[ADI][SIN]+[AMM][PART]+[DEK][ABS][NUMS]" ] #!!#
.o.
[ "IZE" -> "[IZE][ARR]" || "<PER>" _ ?* ] #!!#
];
!Gorkak aldatua ([ADIZE] -> [AD[IZE][ARR]]) bihurketa egiten zuen
! [ "IZE" -> "[IZE][ARR]" ] #!!#
!Gorkak aldatua (sorkuntzan ez da ahal_izan[ADI][ADP] erabili behar baizik eta izan[ADI][ZIN]
! [ "ADPGER" -> "[ADI][SIN]+[AMM][PART]+[ASP][GERO]" ] #!!#
!define TransUkanIzan [
regex [
[ {ukan} -> {izan} || ?* _ XXX ?* "<""NAG"">""[""ADI""]""[""SIN""]" ?* ]
.o.
[ {ukan} -> {izan} || ?* _ XXX ?* "<""NAG"">""[""ADI""]""[""SIN""]" ?* ]
];
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo >> Irteera garbitzeko;
!define TransIrteera1 [
regex [
[ "#" ?* "&" ?* "&" -> "" || _ ?* "&"] !!! [ "#" ?* "&" ?* "&" ?* "&"-> "" ]
.o.
[ XXX ?* ")" -> "" ]
];
!define TransIrteera2 [
regex [
[ "$" -> "" ]
.o.
[ "#" -> "" ]
];
!##define TransIrteera [TransIrteera1 .o. TransIrteera2 ];
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo
echo >> + Automata guztiak .fst bakar bateank gorde
echo >> + Save all transucer of the stack in one .fst fils
echo >> ======================================== ;
save stack ./spa-eus.verb_transfer.fst
echo >> Bukatu du
echo >> Finish
echo >> ======================================== ;