-
Notifications
You must be signed in to change notification settings - Fork 1
/
verbs.py
1156 lines (731 loc) · 27.3 KB
/
verbs.py
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
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
from accentuation import recessive, make_oxytone, make_paroxytone, make_proparoxytone, make_perispomenon, make_properispomenon
from syllabify import is_vowel
from characters import strip_length
def phon(w):
w = w.replace("ἕ", "hέ")
w = w.replace("ἑ", "hε")
w = w.replace("εἷ", "hεῖ")
w = w.replace("α#σο", "ω")
w = w.replace("έ#σο", "οῦ")
w = w.replace("ε#σο", "ου")
w = w.replace("ό#σο", "οῦ")
w = w.replace("ο#σο", "ου")
w = w.replace("ά+ι#σο", "ά+ιο")
w = w.replace("αι#σο", "αιο")
w = w.replace("έ+ι#σο", "έ+ιο")
w = w.replace("εῖ#σο", "εῖο")
w = w.replace("ό+ι#σο", "ό+ιο")
w = w.replace("οι#σο", "οιο")
w = w.replace("ά+ε#σαι", "ᾷ") # @@@
w = w.replace("ό+ε#σαι", "οῖ") # @@@
w = w.replace("ᾶ#σαι", "ᾷ")
w = w.replace("α#σαι", "ᾳ")
w = w.replace("η#σαι", "ῃ")
w = w.replace("ά+ω", "ῶ")
w = w.replace("α+ώ", "ώ")
w = w.replace("α+ω", "ω")
w = w.replace("ά+ῃ", "ᾷ")
w = w.replace("ά+η", "ᾶ")
w = w.replace("ά+ε+ι", "ᾷ")
w = w.replace("ά+ει", "ᾶ")
w = w.replace("ά+ε", "ᾶ")
w = w.replace("α+έ", "ά")
w = w.replace("α+ε", "α")
w = w.replace("ά+οι", "ῷ")
w = w.replace("α+οί", "ῴ")
w = w.replace("α+οι", "ῳ")
w = w.replace("ά+ου", "ῶ")
w = w.replace("α+ό+ε", "ῶ")
w = w.replace("α+ο+ε", "ω")
w = w.replace("ᾶ+ο", "ῶ")
w = w.replace("ά+ο", "ῶ")
w = w.replace("α+ό", "ώ")
w = w.replace("α+ο", "ω")
w = w.replace("ά+ι", "αῖ")
w = w.replace("α+ί", "αί")
w = w.replace("ᾶ+ι", "ᾷ")
w = w.replace("έ+ω", "ῶ")
w = w.replace("ε+ώ", "ώ")
w = w.replace("ε+ω", "ω")
w = w.replace("έ+ῃ", "ῇ")
w = w.replace("έ+η", "ῆ")
w = w.replace("έ+ε+ι", "εῖ")
w = w.replace("έ+ει", "εῖ")
w = w.replace("έ+ε", "εῖ")
w = w.replace("ε+έ", "εί")
w = w.replace("ε+ε", "ει")
w = w.replace("έ+οι", "οῖ")
w = w.replace("ε+οί", "οί")
w = w.replace("ε+ο+ε", "ου")
w = w.replace("έ+ου", "οῦ")
w = w.replace("έ+ο", "οῦ")
w = w.replace("ε+ό", "ού")
w = w.replace("ε+ο", "ου")
w = w.replace("έ+α", "ᾶ")
w = w.replace("ό+ω", "ῶ")
w = w.replace("ο+ώ", "ώ")
w = w.replace("ο+ω", "ω")
w = w.replace("ό+η+ι", "οῖ")
w = w.replace("ό+ῃ", "οῖ")
w = w.replace("ό+η", "ῶ")
w = w.replace("ό+ε+ι", "οῖ")
w = w.replace("ό+ει", "οῦ")
w = w.replace("ο+ό+ε", "οῦ")
w = w.replace("ο+ο+ε", "ου")
w = w.replace("ό+ε", "οῦ")
w = w.replace("ο+έ", "ού")
w = w.replace("ο+ε", "ου")
w = w.replace("ό+ου", "οῦ")
w = w.replace("ό+οι", "οῖ")
w = w.replace("ο+οί", "οί")
w = w.replace("ό+ο", "οῦ")
w = w.replace("ο+ό", "ού")
w = w.replace("ο+ο", "ου")
w = w.replace("ό+ι", "οῖ")
w = w.replace("ο+ί", "οί")
w = w.replace("ώ+η", "ῶ")
w = w.replace("ώ+ῃ", "ῷ") # @@@
w = w.replace("ή+η", "ῆ")
w = w.replace("ή+ῃ", "ῇ")
w = w.replace("ῆ+ι", "ῇ")
w = w.replace("η+ῖ", "ῇ")
w = w.replace("η+ι", "ῃ")
w = w.replace("η+ε", "η") # @@@
w = w.replace("ῡ+ε", "ῡ") # @@@
w = w.replace("ύ+ε", "ῦ")
w = w.replace("υ+έ", "ύ")
w = w.replace("υ+ε", "υ")
w = w.replace("ῶ+ι", "ῷ")
w = w.replace("ω+ι", "ῳ")
w = w.replace("έ+ι", "εῖ")
w = w.replace("ε+ί", "εί")
w = w.replace("ε+ι", "ει")
w = w.replace("ά~α", "ᾶ")
w = w.replace("έ~α", "έα")
w = w.replace("ό~α", "όα")
w = w.replace("ύ~α", "ύα")
w = w.replace("hεί", "εἵ")
w = w.replace("hεῖ", "εἷ")
w = w.replace("hει", "εἱ")
w = w.replace("hέ", "ἕ")
w = w.replace("hε", "ἑ")
w = w.replace("hῆ", "ἧ")
w = w.replace("hῇ", "ᾗ")
w = w.replace("hῶ", "ὧ")
w = w.replace("hώ", "ὥ")
w = w.replace("hοῦ", "οὗ")
return w
def replace_final(w, a, b):
if w[-len(a):] == a:
return w[:-len(a)] + b
else:
return w
def phon2(w):
w = replace_final(w, "α", "η")
w = replace_final(w, "ε", "η")
w = replace_final(w, "εἱ", "ἡ")
w = replace_final(w, "ο", "ω")
w = replace_final(w, "υ", "ῡ")
return w
def nothing(self, stem):
return stem
def lengthen(self, stem):
return phon2(stem)
def alt(self, endings1, endings2, attr):
return "{}/{}".format(
getattr(endings1(self.stem, self.extra), attr)(),
getattr(endings2(self.stem, self.extra), attr)(),
)
def oxytone(self, stem):
return make_oxytone(stem)
def paroxytone(self, stem):
return make_paroxytone(stem)
def proparoxytone(self, stem):
return make_proparoxytone(stem)
def perispomenon(self, stem):
return make_perispomenon(stem)
def properispomenon(self, stem):
return make_properispomenon(stem)
def Connective(connective):
class _:
conn_1S = connective
conn_2S = connective
conn_3S = connective
conn_1P = connective
conn_2P = connective
conn_3P = connective
conn_NSM = connective
conn_GSM = connective
conn_NSF = connective
conn_GSF = connective
conn_NSN = connective
conn_GSN = connective
return _
class ConnectiveOEEOEO:
conn_1S = "+ο"
conn_2S = "+ε"
conn_3S = "+ε"
conn_1P = "+ο"
conn_2P = "+ε"
conn_3P = "+ο"
class Endings(Connective("")):
prep_stem_1S = nothing
prep_stem_2S = nothing
prep_stem_3S = nothing
prep_stem_1P = nothing
prep_stem_2P = nothing
prep_stem_3P = nothing
accentuation_1S = lambda self, stem: recessive(stem)
accentuation_2S = lambda self, stem: recessive(stem)
accentuation_3S = lambda self, stem: recessive(stem)
accentuation_1P = lambda self, stem: recessive(stem)
accentuation_2P = lambda self, stem: recessive(stem)
accentuation_3P = lambda self, stem: recessive(stem)
def __init__(self, stem, extra=""):
self.stem = stem
self.extra = extra
def _1S(self): return phon(self.accentuation_1S(self.prep_stem_1S(self.stem) + self.extra + self.conn_1S + self.ending_1S))
def _2S(self): return phon(self.accentuation_2S(self.prep_stem_2S(self.stem) + self.extra + self.conn_2S + self.ending_2S))
def _3S(self): return phon(self.accentuation_3S(self.prep_stem_3S(self.stem) + self.extra + self.conn_3S + self.ending_3S))
def _1P(self): return phon(self.accentuation_1P(self.prep_stem_1P(self.stem) + self.extra + self.conn_1P + self.ending_1P))
def _2P(self): return phon(self.accentuation_2P(self.prep_stem_2P(self.stem) + self.extra + self.conn_2P + self.ending_2P))
def _3P(self): return phon(self.accentuation_3P(self.prep_stem_3P(self.stem) + self.extra + self.conn_3P + self.ending_3P))
class PrimaryActive(Endings):
ending_1S = "+ω"
ending_2S = "+ις"
ending_3S = "+ι"
ending_1P = "μεν"
ending_2P = "τε"
ending_3P = "σι(ν)"
class PrimaryActiveMI(PrimaryActive):
ending_1S = "μι"
ending_2S = "ς"
ending_3S = "σι(ν)"
class SecondaryActive(Endings):
ending_1S = "ν"
ending_2S = "ς"
ending_3S = ""
ending_1P = "μεν"
ending_2P = "τε"
ending_3P = "ν"
class SecondaryActive2(SecondaryActive):
ending_3P = "σαν"
class ImperativeActive(Endings):
ending_2S = ""
ending_3S = "τω"
ending_2P = "τε"
ending_3P = "ντων"
class PrimaryMiddle(Endings):
ending_1S = "μαι"
ending_2S = "#σαι"
ending_3S = "ται"
ending_1P = "μεθα"
ending_2P = "σθε"
ending_3P = "νται"
class PrimaryMiddle2(PrimaryMiddle):
ending_2S = "σαι"
class SecondaryMiddle(Endings):
ending_1S = "μην"
ending_2S = "#σο"
ending_3S = "το"
ending_1P = "μεθα"
ending_2P = "σθε"
ending_3P = "ντο"
class SecondaryMiddle2(SecondaryMiddle):
ending_2S = "σο"
class ImperativeMiddle(Endings):
ending_2S = "#σο"
ending_3S = "σθω"
ending_2P = "σθε"
ending_3P = "σθων"
class ImperativeMiddle2(ImperativeMiddle):
ending_2S = "σο"
class Endings1(ConnectiveOEEOEO, PrimaryActive):
conn_1S = ""
conn_3P = "+ου"
class Endings1B(ConnectiveOEEOEO, PrimaryActive):
prep_stem_1S = lengthen
prep_stem_2S = lengthen
prep_stem_3S = lengthen
prep_stem_1P = lengthen
prep_stem_2P = lengthen
prep_stem_3P = lengthen
conn_1S = ""
conn_3P = "+ου"
class Endings1mi(PrimaryActiveMI):
prep_stem_1S = lengthen
prep_stem_2S = lengthen
prep_stem_3S = lengthen
conn_3P = "~α"
class Endings1miB(Endings1mi):
conn_3P = "+α"
class Endings3(ConnectiveOEEOEO, SecondaryActive):
pass
class Endings7(SecondaryActive2):
pass
class Endings7B(SecondaryActive2):
prep_stem_1S = lengthen
prep_stem_2S = lengthen
prep_stem_3S = lengthen
prep_stem_1P = lengthen
prep_stem_2P = lengthen
prep_stem_3P = lengthen
class Endings3mi(SecondaryActive2):
conn_1S = "+ο"
conn_2S = "+ε"
conn_3S = "+ε"
class Endings3miB(Endings3mi):
prep_stem_1S = lengthen
conn_1S = ""
class Endings3miB2(Endings3mi):
conn_1S = "+ε"
class Endings3miC(Endings3mi):
def _1S(self): return alt(self, Endings3miB2, Endings3miB, "_1S")
class Endings3miD(SecondaryActive2):
prep_stem_1S = lengthen
prep_stem_2S = lengthen
prep_stem_3S = lengthen
class Endings5(Connective("+α"), SecondaryActive):
conn_3S = ""
ending_1S = ""
ending_3S = "ε"
class Endings5C(Endings5):
prep_stem_1S = lengthen
prep_stem_2S = lengthen
prep_stem_3S = lengthen
prep_stem_1P = lengthen
prep_stem_2P = lengthen
prep_stem_3P = lengthen
class Endings5B(SecondaryActive2):
prep_stem_1S = lengthen
prep_stem_2S = lengthen
prep_stem_3S = lengthen
conn_1S = "κ"
conn_2S = "κ"
conn_3S = "κ"
ending_1S = "α"
ending_2S = "ας"
ending_3S = "ε"
class Endings8(Endings5):
ending_3P = "σι(ν)"
class Endings12(PrimaryActive):
conn_2S = "+η"
conn_3S = "+η"
conn_1P = "+ω"
conn_2P = "+η"
conn_3P = "+ω"
class Endings12mi(Endings12):
prep_stem_2S = lengthen
prep_stem_3S = lengthen
prep_stem_2P = lengthen
class Endings14(Endings12):
# @@@ why is this necessary?
accentuation_1S = perispomenon
accentuation_2S = perispomenon
accentuation_3S = perispomenon
accentuation_1P = properispomenon
accentuation_2P = properispomenon
accentuation_3P = properispomenon
class Endings10(SecondaryActive2):
conn_1P = "+ε"
conn_2P = "+ε"
conn_3P = "+ε"
ending_1S = "η"
ending_2S = "ης"
ending_3S = "ει"
class Endings9(PrimaryMiddle2):
pass
class Endings2B(ConnectiveOEEOEO, PrimaryMiddle):
ending_2S = "#σαι"
class Endings2(Endings2B):
def _2S(self): return "{}/{}".format(
phon(recessive(self.stem + self.extra + "+ε+ι")), # ε + σαι
phon(recessive(self.stem + self.extra + "+ῃ")) # ε + σαι
)
class Endings2C(ConnectiveOEEOEO, PrimaryMiddle):
prep_stem_1S = lengthen
prep_stem_2S = lengthen
prep_stem_3S = lengthen
prep_stem_1P = lengthen
prep_stem_2P = lengthen
prep_stem_3P = lengthen
def _2S(self): return "{}/{}".format(
phon(recessive(self.prep_stem_2S(self.stem) + self.extra + "+ε+ι")), # ε + σαι
phon(recessive(self.prep_stem_2S(self.stem) + self.extra + "+ῃ")) # ε + σαι
)
class Endings13(PrimaryMiddle):
conn_1S = "+ω"
conn_2S = "+η"
conn_3S = "+η"
conn_1P = "+ω"
conn_2P = "+η"
conn_3P = "+ω"
ending_2S = "#σαι"
class Endings13mi(Endings13):
prep_stem_2S = lengthen
prep_stem_3S = lengthen
prep_stem_2P = lengthen
class Endings11(SecondaryMiddle2):
pass
class Endings4(ConnectiveOEEOEO, SecondaryMiddle):
pass
class Endings6(Connective("+α"), SecondaryMiddle):
pass
class Endings6B(SecondaryMiddle):
pass
class Endings6C(Connective("+α"), SecondaryMiddle):
prep_stem_1S = lengthen
prep_stem_2S = lengthen
prep_stem_3S = lengthen
prep_stem_1P = lengthen
prep_stem_2P = lengthen
prep_stem_3P = lengthen
class Endings15(Connective("+οι"), Endings):
ending_1S = "μι"
ending_2S = "ς"
ending_3S = ""
ending_1P = "μεν"
ending_2P = "τε"
ending_3P = "εν"
# necessary because accentuation doesn't yet handle optatitve οι
accentuation_3S = paroxytone
class Endings15C(Connective("+οιη"), Endings15):
ending_1S = "ν"
ending_3P = "σαν"
class Endings15B(Endings15):
def _1S(self): return alt(self, Endings15C, Endings15, "_1S")
def _2S(self): return alt(self, Endings15C, Endings15, "_2S")
def _3S(self): return alt(self, Endings15C, Endings15, "_3S")
def _1P(self): return alt(self, Endings15, Endings15C, "_1P")
def _2P(self): return alt(self, Endings15, Endings15C, "_2P")
def _3P(self): return alt(self, Endings15, Endings15C, "_3P")
class Endings15D(Endings15):
prep_stem_1S = lengthen
prep_stem_2S = lengthen
prep_stem_3S = lengthen
prep_stem_1P = lengthen
prep_stem_2P = lengthen
prep_stem_3P = lengthen
class Endings15miA(Connective("+ι"), SecondaryActive):
ending_3P = "εν"
class Endings15miB(Connective("+ιη"), SecondaryActive2):
pass
class Endings15mi(Connective("+ιη"), SecondaryActive):
def _1P(self): return alt(self, Endings15miA, Endings15miB, "_1P")
def _2P(self): return alt(self, Endings15miA, Endings15miB, "_2P")
def _3P(self): return alt(self, Endings15miA, Endings15miB, "_3P")
class Endings17A(Connective("+αι"), Endings):
ending_2S = "ς"
ending_3S = ""
ending_3P = "εν"
# necessary because accentuation doesn't yet handle optatitve αι
accentuation_3S = paroxytone
class Endings17B(Connective("+ει"), Endings):
ending_2S = "ας"
ending_3S = "ε"
ending_3P = "αν"
class Endings17(Connective("+αι"), Endings):
ending_1S = "μι"
def _2S(self): return alt(self, Endings17A, Endings17B, "_2S")
def _3S(self): return alt(self, Endings17A, Endings17B, "_3S")
ending_1P = "μεν"
ending_2P = "τε"
def _3P(self): return alt(self, Endings17A, Endings17B, "_3P")
class Endings16(Connective("+οι"), SecondaryMiddle):
pass
class Endings16B(Connective("+οι"), SecondaryMiddle):
prep_stem_1S = lengthen
prep_stem_2S = lengthen
prep_stem_3S = lengthen
prep_stem_1P = lengthen
prep_stem_2P = lengthen
prep_stem_3P = lengthen
class Endings16mi(Connective("+ι"), SecondaryMiddle):
pass
class Endings18(Connective("+αι"), SecondaryMiddle):
pass
class Endings19A(Connective("ει"), SecondaryActive):
ending_3P = "εν"
accentuation_1P = properispomenon
accentuation_2P = properispomenon
accentuation_3P = properispomenon
class Endings19B(Connective("ειη"), SecondaryActive2):
pass
class Endings19(Connective("ειη"), SecondaryActive):
def _1P(self): return alt(self, Endings19A, Endings19B, "_1P")
def _2P(self): return alt(self, Endings19A, Endings19B, "_2P")
def _3P(self): return alt(self, Endings19A, Endings19B, "_3P")
class Endings20mi(ImperativeActive):
ending_2S = "+ε"
class Endings20miB(Endings20mi):
prep_stem_2S = lengthen
class Endings20miC(ImperativeActive):
ending_2S = "ς"
class Endings20miD(ImperativeActive):
prep_stem_2S = lengthen
prep_stem_3S = lengthen
prep_stem_2P = lengthen
ending_2S = "+θι"
class Endings20(ConnectiveOEEOEO, ImperativeActive):
pass
class Endings22(Connective("+α"), ImperativeActive):
conn_2S = "" # exception to alpha
ending_2S = "ον"
class Endings24(ImperativeActive):
conn_2S = "+η"
conn_3S = "+η"
conn_2P = "+η"
conn_3P = "+ε"
ending_2S = "τι"
class Endings21(Connective("+ε"), ImperativeMiddle):
pass
class Endings23(Connective("+α"), ImperativeMiddle):
ending_2S = "ι"
class Endings25(ImperativeMiddle2):
pass
class Endings25B(ImperativeMiddle):
pass
class ParticipleEndings(Connective("")):
prep_stem_NSM = nothing
prep_stem_GSM = nothing
prep_stem_NSF = nothing
prep_stem_GSF = nothing
prep_stem_NSN = nothing
prep_stem_GSN = nothing
accentuation_NSM = nothing
accentuation_GSM = nothing
accentuation_NSF = nothing
accentuation_GSF = nothing
accentuation_NSN = nothing
accentuation_GSN = nothing
def __init__(self, stem, extra=""):
self.stem = stem
self.extra = extra
def NSM(self): return self.accentuation_NSM(phon(self.prep_stem_NSM(self.stem) + self.extra + self.conn_NSM + self.ending_NSM))
def GSM(self): return self.accentuation_GSM(phon(self.prep_stem_GSM(self.stem) + self.extra + self.conn_GSM + self.ending_GSM))
def NSF(self): return self.accentuation_NSF(phon(self.prep_stem_NSF(self.stem) + self.extra + self.conn_NSF + self.ending_NSF))
def GSF(self): return self.accentuation_GSF(phon(self.prep_stem_GSF(self.stem) + self.extra + self.conn_GSF + self.ending_GSF))
def NSN(self): return self.accentuation_NSN(phon(self.prep_stem_NSN(self.stem) + self.extra + self.conn_NSN + self.ending_NSN))
def GSN(self): return self.accentuation_GSN(phon(self.prep_stem_GSN(self.stem) + self.extra + self.conn_GSN + self.ending_GSN))
class ActiveParticiple(ParticipleEndings):
ending_NSM = "+ων"
ending_GSM = "ντος"
ending_NSF = "+εσα"
ending_GSF = "+εσης"
ending_NSN = "ν"
ending_GSN = "ντος"
class ActiveParticiple2(ActiveParticiple):
ending_NSM = "+ες"
class PerfectActiveParticiple(ParticipleEndings):
ending_NSM = "+ως"
ending_GSM = "+οτος"
ending_NSF = "+υια"
ending_GSF = "+υιας"
ending_NSN = "+ος"
ending_GSN = "+οτος"
accentuation_NSM = oxytone
accentuation_GSM = paroxytone
accentuation_NSF = properispomenon
accentuation_GSF = properispomenon
accentuation_NSN = oxytone
accentuation_GSN = paroxytone
class MiddleParticiple(ParticipleEndings):
ending_NSM = "μενος"
ending_NSF = "μενη"
ending_NSN = "μενον"
class Endings26(Connective("+ο"), ActiveParticiple):
conn_NSM = "" # exception to omicron
accentuation_NSM = paroxytone
accentuation_GSM = proparoxytone
accentuation_NSF = proparoxytone
accentuation_GSF = proparoxytone
accentuation_NSN = properispomenon
accentuation_GSN = proparoxytone
class Endings26Contract(Endings26):
accentuation_NSM = perispomenon
accentuation_GSM = properispomenon
accentuation_NSF = properispomenon
accentuation_GSF = properispomenon
accentuation_NSN = perispomenon
accentuation_GSN = properispomenon
class Endings26mi(ActiveParticiple2):
accentuation_NSM = oxytone
accentuation_GSM = paroxytone
accentuation_NSF = properispomenon
accentuation_GSF = paroxytone
accentuation_NSN = oxytone
accentuation_GSN = paroxytone
class Endings28(Connective("+α"), ActiveParticiple2):
accentuation_NSM = paroxytone
accentuation_GSM = proparoxytone
accentuation_NSF = proparoxytone
accentuation_GSF = proparoxytone
accentuation_NSN = properispomenon
accentuation_GSN = proparoxytone
class Endings30(Connective("+ε"), ActiveParticiple2):
accentuation_NSM = oxytone
accentuation_NSF = properispomenon
accentuation_NSN = oxytone
class Endings32(MiddleParticiple):
accentuation_NSM = paroxytone
accentuation_NSF = paroxytone
accentuation_NSN = paroxytone
class Endings27mi(MiddleParticiple):
accentuation_NSM = proparoxytone
accentuation_NSF = paroxytone
accentuation_NSN = proparoxytone
class Endings27(Connective("+ο"), MiddleParticiple):
accentuation_NSM = proparoxytone
accentuation_NSF = paroxytone
accentuation_NSN = proparoxytone
class Endings29(Connective("+α"), MiddleParticiple):
accentuation_NSM = proparoxytone
accentuation_NSF = paroxytone
accentuation_NSN = proparoxytone
class Endings31(PerfectActiveParticiple):
pass
class Verb1:
def PAI(self): return Endings1(self.stem1)
def PMI(self): return Endings2(self.stem1)
def IAI(self): return Endings3(aug(self.stem1))
def IMI(self): return Endings4(aug(self.stem1))
def FAI(self): return Endings1(self.stem1, "σ")
def FMI(self): return Endings2(self.stem1, "σ")
def FPI(self): return Endings2(self.stem1, "θη" + "σ")
def AAI(self): return Endings5(aug(self.stem1), "σ")
def AMI(self): return Endings6(aug(self.stem1), "σ")
def API(self): return Endings7(aug(self.stem1), "θη")
def XAI(self): return Endings8(redup(self.stem1), "κ")
def XMI(self): return Endings9(redup(self.stem1))
def YAI(self): return Endings10(aug(redup(self.stem1)), "κ")
def YMI(self): return Endings11(aug(redup(self.stem1)))
def PAS(self): return Endings12(self.stem1)
def PMS(self): return Endings13(self.stem1)
def AAS(self): return Endings12(self.stem1, "σ")
def AMS(self): return Endings13(self.stem1, "σ")
def APS(self): return Endings14(self.stem1, "θ")
def XAS(self): return Endings12(redup(self.stem1), "κ")
def PAO(self): return Endings15(self.stem1)
def PMO(self): return Endings16(self.stem1)
def FAO(self): return Endings15(self.stem1, "σ")
def FMO(self): return Endings16(self.stem1, "σ")
def FPO(self): return Endings16(self.stem1, "θη" + "σ")
def AAO(self): return Endings17(self.stem1, "σ")
def AMO(self): return Endings18(self.stem1, "σ")
def APO(self): return Endings19(self.stem1, "θ")
def XAO(self): return Endings15(redup(self.stem1), "κ")
def PAD(self): return Endings20(self.stem1)
def PMD(self): return Endings21(self.stem1)
def AAD(self): return Endings22(self.stem1, "σ")
def AMD(self): return Endings23(self.stem1, "σ")
def APD(self): return Endings24(self.stem1, "θ")
def XMD(self): return Endings25(redup(self.stem1))