This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMorphoLat.gf
731 lines (676 loc) · 24.4 KB
/
MorphoLat.gf
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
--# -path=.:../prelude
--1 A Simple Latin Resource Morphology.
-- Herbert Lange 2013
-- This resource morphology contains definitions needed in the resource
-- syntax. To build a lexicon, it is better to use $ParadigmsLat$, which
-- gives a higher-level access to this module.
resource MorphoLat = ParamX, ResLat ** open Prelude, Predef in {
--
-- flags optimize=all ;
--
----2 Phonology
oper
-- sounds and sound changes
vowel : pattern Str = #( "a" | "e" | "o" | "u" | "y" );
semivowel : pattern Str = #( "j" | "w" );
consonant : pattern Str = #( "p" | "b" | "f" | "v" | "m" | "t" | "d" | "s" | "z" | "n" | "r" | "c" | "g" | "l" | "q" | "qu" | "h" );
stop : pattern Str = #( "p" | "b" | "t" | "d" | "c" | "q" | "q" );
fricative : pattern Str = #( "f" | "v" | "s" | "z" | "h" );
nasal : pattern Str = #( "m" | "n" );
liquid : pattern Str = #( "r" | "l" );
-- consonant : pattern Str = #(#stop | #fricative | #nasal | #liquid ); -- not working
----2 Nouns
-- declensions
oper
-- a-Declension
noun1 : Str -> Noun = \mensa ->
let
mensae = mensa + "e" ;
mensis = init mensa + "is" ;
in
mkNoun
mensa (mensa +"m") mensae mensae mensa mensa
mensae (mensa + "s") (mensa + "rum") mensis
Fem ;
-- o-Declension
noun2us : Str -> Noun = \servus ->
let
serv = Predef.tk 2 servus ;
servum = serv + "um" ;
servi = serv + "i" ;
servo = serv + "o" ;
in
mkNoun
servus servum servi servo servo (serv + "e")
servi (serv + "os") (serv + "orum") (serv + "is")
Masc ;
noun2er : Str -> Str -> Noun = \liber,libri ->
let
libr : Str = Predef.tk 1 libri;
librum = libr + "um" ;
libri = libr + "i" ;
libro = libr + "o" ;
in
mkNoun
liber librum libri libro libro liber
libri ( libr + "os" ) ( libr + "orum" ) ( libr + "is" )
Masc ;
noun2um : Str -> Noun = \bellum ->
let
bell = Predef.tk 2 bellum ;
belli = bell + "i" ;
bello = bell + "o" ;
bella = bell + "a" ;
in
mkNoun
bellum bellum belli bello bello (bell + "um")
bella bella (bell + "orum") (bell + "is")
Neutr ;
-- Consonant declension
noun3c : Str -> Str -> Gender -> Noun = \rex,regis,g ->
let
reg : Str = Predef.tk 2 regis ;
regemes : Str * Str = case g of {
Masc | Fem => < reg + "em" , reg + "es" > ;
Neutr => < rex , reg + "a" >
} ;
in
mkNoun
rex regemes.p1 ( reg + "is" ) ( reg + "i" ) ( reg + "e" ) rex
regemes.p2 regemes.p2 ( reg + "um" ) ( reg + "ibus" )
g ;
-- i-declension
noun3i : Str -> Str -> Gender -> Noun = \ars,artis,g ->
let
art : Str = Predef.tk 2 artis ;
artemes : Str * Str = case g of {
Masc | Fem => < art + "em" , art + "es" > ;
Neutr => case art of {
_ + #consonant + #consonant => < ars , art + "a" > ; -- maybe complete fiction but may be working
_ => < ars , art + "ia" > -- Bayer-Lindauer 32 4
}
} ;
arte : Str = case ars of {
_ + ( "e" | "al" | "ar" ) => art + "i" ;
_ => art + "e"
};
in
mkNoun
ars artemes.p1 ( art + "is" ) ( art + "i" ) arte ars
artemes.p2 artemes.p2 ( art + "ium" ) ( art + "ibus" )
g ;
-- u-Declension
noun4us : Str -> Noun = \fructus ->
let
fructu = init fructus ;
fruct = init fructu
in
mkNoun
fructus (fructu + "m") fructus (fructu + "i") fructu fructus
fructus fructus (fructu + "um") (fruct + "ibus")
Masc ;
noun4u : Str -> Noun = \cornu ->
let
corn = init cornu ;
cornua = cornu + "a"
in
mkNoun
cornu cornu (cornu + "s") cornu cornu cornu
cornua cornua (cornu + "um") (corn + "ibus")
Neutr ;
-- e-Declension
noun5 : Str -> Noun = \res ->
let
re = init res ;
rei = re + "i"
in
mkNoun
res (re+ "m") rei rei re res
res res (re + "rum") (re + "bus")
Fem ;
-- smart paradigms
noun_ngg : Str -> Str -> Gender -> Noun = \verbum,verbi,g ->
let s : Noun = case <verbum,verbi> of {
<_ + "a" , _ + "ae"> => noun1 verbum ;
<_ + "us" , _ + "i" > => noun2us verbum ;
<_ + "um" , _ + "i" > => noun2um verbum ;
<_ + ( "er" | "ir" ) , _ + "i" > => noun2er verbum verbi ;
<_ + "us" , _ + "us"> => noun4us verbum ;
<_ + "u" , _ + "us"> => noun4u verbum ;
<_ + "es" , _ + "ei"> => noun5 verbum ;
<semi + "bos" , _ > => prefixNoun semi (noun3 "bos" "bovis" Masc) ;
_ => noun3 verbum verbi g
}
in
nounWithGender g s ;
noun : Str -> Noun = \verbum ->
case verbum of {
_ + "a" => noun1 verbum ;
_ + "us" => noun2us verbum ;
_ + "um" => noun2um verbum ;
_ + ( "er" | "ir" ) => noun2er verbum ( (Predef.tk 2 verbum) + "ri" ) ;
_ + "u" => noun4u verbum ;
_ + "es" => noun5 verbum ;
semi + "bos" => prefixNoun semi (noun_ngg "bos" "bovis" Masc) ;
_ => Predef.error ("3rd declinsion cannot be applied to just one noun form " ++ verbum)
} ;
noun12 : Str -> Noun = \verbum ->
case verbum of {
_ + "a" => noun1 verbum ;
_ + "us" => noun2us verbum ;
_ + "um" => noun2um verbum ;
_ + ( "er" | "ir" | "ur" | "tr") =>
let
puer = verbum ;
pue = Predef.tk 1 puer ;
e = case puer of {
-- Exception of nouns where e is part of the word stem Bayer-Lindauer 27 4.2
"puer" | "socer" | "gener" | "vesper" => "e" ;
-- Exception of adjectives where e is part of the word stem 31 3.2
("asper" | "miser" | "tener" | "frugifer") + _ => "e";
-- "liber" => ( "e" | "" ) ; conflicting with noun liber
_ + "tr" => "t";
_ => ""
} ;
pu = Predef.tk 1 pue ;
in noun2er verbum ( pu + e + "ri" );
_ => Predef.error ("noun12 does not apply to" ++ verbum)
} ;
noun3 : Str -> Str -> Gender -> Noun = \rex,regis,g ->
let
reg : Str = Predef.tk 2 regis ;
in
case <rex,reg> of {
-- Bos has to many exceptions to be handled correctly
< "bos" , "bov" > => mkNoun "bos" "bovem" "bovis" "bovi" "bove" "bos" "boves" "boves" "boum" "bobus" g;
-- Some exceptions with no fitting rules
< "nix" , _ > => noun3i rex regis g; -- L...
< ( "sedes" | "canis" | "iuvenis" | "mensis" | "sal" ) , _ > => noun3c rex regis g ; -- Bayer-Lindauer 31 3 and Exercitia Latina 32 b), sal must be handled here because it will be handled wrongly by the next rule
< _ + ( "e" | "al" | "ar" ) , _ > => noun3i rex regis g ; -- Bayer-Lindauer 32 2.3
< _ + "ter", _ + "tr" > => noun3c rex regis g ; -- might not be right but seems fitting for Bayer-Lindauer 31 2.2
< _ , _ + #consonant + #consonant > => noun3i rex regis g ; -- Bayer-Lindauer 32 2.2
< _ + ( "is" | "es" ) , _ > =>
if_then_else
Noun
-- assumption based on Bayer-Lindauer 32 2.1
( pbool2bool ( Predef.eqInt ( Predef.length rex ) ( Predef.length regis ) ) )
( noun3i rex regis g )
( noun3c rex regis g ) ;
_ => noun3c rex regis g
} ;
----3 Proper names
----2 Determiners
----2 Pronouns
----2 Adjectives
oper
comp_super : Noun -> ( Agr => Str ) * ( Agr => Str ) =
\bonus ->
case bonus.s!Sg!Gen of {
-- Exception Bayer-Lindauer 50 1
"boni" => < comp "meli" , table { Ag g n c => table Gender [ (noun2us "optimus").s ! n ! c ; (noun1 "optima").s ! n ! c ; (noun2um "optimum").s ! n ! c ] ! g } > ;
"mali" => < comp "pei" , super "pessus" > ;
"magni" => < comp "mai" , table { Ag g n c => table Gender [ (noun2us "maximus").s ! n ! c ; (noun1 "maxima").s ! n ! c ; (noun2um "maximum").s ! n ! c ] ! g } > ;
"parvi" => < comp "mini" , table { Ag g n c => table Gender [ (noun2us "minimus").s ! n ! c ; (noun1 "minima").s ! n ! c ; (noun2um "minimum").s ! n ! c ] ! g } >;
--Exception Bayer-Lindauer 50.3
"novi" => < comp "recenti" , super "recens" > ;
"feri" => < comp "feroci" , super "ferox" > ;
"sacris" => < comp "sancti" , super "sanctus" >;
"frugiferi" => < comp "fertilis" , super "fertilis" > ;
"veti" => < comp "vetusti" , super "vetustus" >;
"inopis" => < comp "egentis" , super "egens" >;
-- Default Case use Singular Genetive to determine comparative
sggen => < comp sggen , super (bonus.s!Sg!Nom) >
} ;
comp : Str -> ( Agr => Str ) = \boni -> -- Bayer-Lindauer 46 2
case boni of {
bon + ( "i" | "is" ) =>
table
{
Ag ( Fem | Masc ) Sg c => table Case [ bon + "ior" ;
bon + "iorem" ;
bon + "ioris" ;
bon + "iori" ;
bon + "iore";
bon + "ior" ] ! c ;
Ag ( Fem | Masc ) Pl c => table Case [ bon + "iores" ;
bon + "iores" ;
bon + "iorum" ;
bon + "ioribus" ;
bon + "ioribus" ;
bon + "iores" ] ! c ;
Ag Neutr Sg c => table Case [ bon + "ius" ;
bon + "ius" ;
bon + "ioris" ;
bon + "iori" ;
bon + "iore" ;
bon + "ius" ] ! c ;
Ag Neutr Pl c => table Case [ bon + "iora" ;
bon + "iora" ;
bon + "iorum" ;
bon + "ioribus" ;
bon + "ioribus" ;
bon + "iora" ] ! c
} ;
_ => \\_ => nonExist -- Default case
} ;
super : Str -> ( Agr => Str ) = \bonus ->
let
prefix : Str = case bonus of {
ac + "er" => bonus ; -- Bayer-Lindauer 48 2
faci + "lis" => faci + "l" ; -- Bayer-Lindauer 48 3
feli + "x" => feli + "c" ; -- Bayer-Lindauer 48 1
ege + "ns" => ege + "nt" ; -- Bayer-Lindauer 48 1
bon + ( "us" | "is") => bon ; -- Bayer-Lindauer 48 1
_ => nonExist -- default case
};
suffix : Str = case bonus of {
ac + "er" => "rim" ; -- Bayer-Lindauer 48 2
faci + "lis" => "lim" ; -- Bayer-Lindauer 48 3
_ => "issim" -- Bayer-Lindauer 48 1
};
in
table {
Ag Fem n c => (noun1 ( prefix + suffix + "a" )).s ! n ! c ;
Ag Masc n c => (noun2us ( prefix + suffix + "us" )).s ! n ! c;
Ag Neutr n c => (noun2um ( prefix + suffix + "um" )).s ! n ! c
} ;
adj12 : Str -> Adjective = \bonus ->
let
bon : Str = case bonus of {
-- Exceptions Bayer-Lindauer 41 3.2
("asper" | "liber" | "miser" | "tener" | "frugifer") => bonus ;
-- Usual cases
pulch + "er" => pulch + "r" ;
bon + "us" => bon ;
cam + "ur" => cam ;
dime + "tr" => bonus ;
_ => Predef.error ("adj12 does not apply to" ++ bonus)
} ;
nbonus = (noun12 bonus) ;
compsup : ( Agr => Str ) * ( Agr => Str ) =
-- Bayer-Lindauer 50 4
case bonus of {
(_ + #vowel + "us" ) |
(_ + "r" + "us" ) =>
< table { Ag g n c => table Gender [ ( noun12 bonus ).s ! n ! c ; ( noun12 ( bon + "a" ) ).s ! n ! c ; ( noun12 ( bon + "um" ) ).s ! n ! c ] ! g } ,
table { Ag g n c => table Gender [ ( noun12 bonus ).s ! n ! c ; ( noun12 ( bon + "a" ) ).s ! n ! c ; ( noun12 ( bon + "um" ) ).s ! n ! c ] ! g } > ;
_ => comp_super nbonus
};
advs : Str * Str =
case bonus of {
-- Bayer-Lindauer 50 4
idon + #vowel + "us" => < "magis" , "maxime" > ;
_ => < "" , "" >
}
in
mkAdjective
nbonus
(noun1 (bon + "a"))
(noun2um (bon + "um"))
< compsup.p1 , advs.p1 >
< compsup.p2 , advs.p2 >
(bon + "o") (bon + "ius") (bon + "issimo") ;
adj3x : (_,_ : Str) -> Adjective = \acer,acris -> -- FISHY??
let
ac = Predef.tk 2 acer ;
acrise : Str * Str = case acer of {
_ + "er" => <ac + "ris", ac + "re"> ;
_ + "is" => <acer , ac + "e"> ;
_ => <acer , acer>
} ;
nacer = (noun3adj acer acris Masc) ;
compsuper = comp_super nacer;
in
mkAdjective
nacer
(noun3adj acrise.p1 acris Fem)
(noun3adj acrise.p2 acris Neutr)
< compsuper.p1 , "" >
< compsuper.p2 , "" >
(ac + "riter") (ac + "rius") (ac + "rissimo") ;
adjgre : Str -> Str -> Str -> Adjective = \bonus,bona,bonum ->
let
first : Str -> Agr => Str =
\stem ->
table { Ag Masc Sg Nom => stem + "os" ;
Ag (Masc | Neutr) Sg Gen => stem + "ou" ;
Ag (Masc | Neutr) Sg Dat => stem + "oi" ;
Ag (Masc | Neutr) Sg Acc => stem + "on" ;
Ag Masc Sg Voc => stem + "e" ;
Ag Fem Sg (Nom | Voc) => stem + "a" ;
Ag Fem Sg Gen => stem + "as" ;
Ag Fem Sg Dat => stem + "ai" ;
Ag Fem Sg Acc => stem + "an" ;
Ag Neutr Sg (Nom | Voc) => stem + "on" ;
Ag Masc Pl (Nom | Voc) => stem + "oi" ;
Ag (Masc | Fem | Neutr) Pl Gen => stem + "on" ;
Ag (Masc | Neutr) Pl Dat => stem + "ois" ;
Ag Masc Pl Acc => stem + "ous" ;
Ag Fem Pl (Nom | Voc) => stem + "ai" ;
Ag Fem Pl Dat => stem + "ais" ;
Ag Fem Pl Acc => stem + "as" ;
Ag Neutr Pl (Nom | Acc | Voc) => stem + "a" ;
Ag _ _ Abl => nonExist
} ;
second : Str -> Agr => Str =
\stem ->
table { Ag (Masc | Fem) Sg Nom => stem + "os" ;
Ag (Masc | Fem | Neutr) Sg Gen => stem + "ou" ;
Ag (Masc | Fem | Neutr) Sg Dat => stem + "oi" ;
Ag (Masc | Fem | Neutr) Sg Acc => stem + "on" ;
Ag (Masc | Fem) Sg Voc => stem + "e" ;
Ag Neutr Sg (Nom | Voc) => stem + "on" ;
Ag (Masc | Fem) Pl (Nom | Voc) => stem + "oi";
Ag (Masc | Fem | Neutr) Pl Gen => stem + "on" ;
Ag (Masc | Fem | Neutr) Pl Dat => stem + "ois" ;
Ag (Masc | Fem) Pl Acc => stem + "ous" ;
Ag Neutr Pl (Nom | Acc | Voc) => stem + "a" ;
Ag _ _ Abl => nonExist
} ;
third : Str -> Agr => Str =
\stem ->
table { Ag (Masc | Fem | Neutr) Sg (Nom | Voc) => stem + "es" ;
Ag (Masc | Fem | Neutr) Sg Gen => stem + "ous" ;
Ag (Masc | Fem | Neutr) Sg Dat => stem + "ei" ;
Ag (Masc | Fem) Sg Acc => stem + "e" ;
Ag Neutr Sg Acc => stem + "es" ;
Ag (Masc | Fem) Pl (Nom | Acc | Voc) => "eis" ;
Ag (Masc | Fem | Neutr) Pl Gen => "on" ;
Ag (Masc | Fem | Neutr) Pl Dat => "esi" ;
Ag Neutr Pl (Nom | Acc | Voc ) => "e" ;
Ag _ _ Abl => nonExist
} ;
in
{ s = case <bonus,bona,bonum> of {
<agi + "os" , _ + "a" , _ + "on"> =>
table { Posit => first agi ;
Compar => first (agi + "oter") ;
Super => first (agi + "otat")
} ;
<arctic + "os" , _ + "e" , _ + "on"> =>
table { Posit => second arctic ;
Compar => second (arctic + "oter") ;
Super => second (arctic + "otat")
} ;
<akapn + "os" , _ + "os", _ + "on"> =>
table { Posit => second akapn ;
Compar => second (akapn + "oter") ;
Super => second (akapn + "otat")
} ;
<isoscel + "es", _ + "es", _ + "es"> =>
table { Posit => third isoscel ;
Compar => first (isoscel + "oter") ;
Super => first (isoscel + "otat")
} ;
<amethystiz + "on", _ + "ousa", _ + "on"> =>
table { Posit => table { Ag g Sg c => first amethystiz ! Ag g Sg c ;
Ag g Pl c => third amethystiz ! Ag g Sg c
} ;
Compar => \\_ => nonExist ;
Super => \\_ => nonExist
};
_ => error ("Greek adjective " ++ bonus ++ bona ++ bonum ) -- { s = \\_,_ => "" ; adv = \\_ => ""} ;
} ;
adv = mkAdverb bonus
} ;
-- smart paradigms
adj123 : Str -> Str -> Adjective = \bonus,boni ->
case <bonus,boni> of {
<_ + ("us" | "er"), _ + "i" > => adj12 bonus ;
<_ + ("us" | "er"), _ + "is"> => adj3x bonus boni ;
<_ , _ + "is"> => adj3x bonus boni ;
<_ + "is" , _ + "e" > => adj3x bonus boni ;
<_ + "is" , _ + "os"> => adj3x bonus boni ;
-- <_ + "os" , _ + "on"> => adjgre bonus boni boni ;
<bon + "on" , _ + "os"> => adjgre bonus (bon + "ousa") bonus ;
_ => Predef.error ("adj123: not applicable to" ++ bonus ++ boni)
} ;
adj : Str -> Adjective = \bonus ->
case bonus of {
_ + ("us" | "er") => adj12 bonus ;
facil + "is" => adj3x bonus bonus ;
feli + "x" => adj3x bonus (feli + "cis") ;
_ => adj3x bonus (bonus + "is") ---- any example?
} ;
adjfull : (bonus,bona,bonum : Str) -> Adjective = \bonus,bona,bonum ->
case <bonus,bona,bonum> of {
<_ + ("er"|"us"|"ur"|"tr"), _ + "a" , _ + "um"> => adj12 bonus ;
<_ + ("er"|"is"), _ + "is" , _ + "e" > => adj3x bonus bonum ; -- FISHY?
<_ + "ior" , _ + "ior", _ + "ius"> => adj3x bonus bonum ; -- FISHY?
<_ + "os" , _ + "os" , _ + "on"> => adjgre bonus bona bonum ;
<_ + "es" , _ + "es" , _ + "es"> => adjgre bonus bona bonum ;
<_ + "os" , _ + ("e"|"a") , _ + "on"> => adjgre bonus bona bonum ;
_ => Predef.error ("Not supported" ++ bonus ++ bona ++ bonum)
} ;
----3 Verbs
-- 1./a-conjugation
verb1 : Str -> Verb = \laudare ->
let
lauda = Predef.tk 2 laudare ;
laud = init lauda ;
laudav = lauda + "v" ;
pres_stem = lauda ;
pres_ind_base = lauda ;
pres_conj_base = laud + "e" ;
impf_ind_base = lauda + "ba" ;
impf_conj_base = lauda + "re" ;
fut_I_base = lauda + "bi" ;
imp_base = lauda ;
perf_stem = laudav ;
perf_ind_base = laudav ;
perf_conj_base = laudav + "eri" ;
pqperf_ind_base = laudav + "era" ;
pqperf_conj_base = laudav + "isse" ;
fut_II_base = laudav + "eri" ;
part_stem = lauda + "t" ;
in
mkVerb laudare pres_stem pres_ind_base pres_conj_base impf_ind_base impf_conj_base fut_I_base imp_base
perf_stem perf_ind_base perf_conj_base pqperf_ind_base pqperf_conj_base fut_II_base part_stem ;
-- 2./e-conjugation
verb2 : Str -> Verb = \monere ->
let
mone = Predef.tk 2 monere ;
mon = init mone ;
monu = mon + "u" ;
pres_stem = mone ;
pres_ind_base = mone ;
pres_conj_base = mone + "a" ;
impf_ind_base = mone + "ba" ;
impf_conj_base = mone + "re" ;
fut_I_base = mone + "bi" ;
imp_base = mone ;
perf_stem = monu ;
perf_ind_base = monu ;
perf_conj_base = monu + "eri" ;
pqperf_ind_base = monu + "era" ;
pqperf_conj_base = monu + "isse" ;
fut_II_base = monu + "eri" ;
part_stem = mon + "it" ;
in
mkVerb monere pres_stem pres_ind_base pres_conj_base impf_ind_base impf_conj_base fut_I_base imp_base
perf_stem perf_ind_base perf_conj_base pqperf_ind_base pqperf_conj_base fut_II_base part_stem ;
-- 3./Consonant conjugation
verb3c : ( regere,rexi,rectus : Str ) -> Verb = \regere,rexi,rectus ->
let
rege = Predef.tk 2 regere ;
reg = init rege ;
rex = init rexi ;
rect = Predef.tk 2 rectus ;
pres_stem = reg ;
pres_ind_base = reg ;
pres_conj_base = reg + "a" ;
impf_ind_base = reg + "eba" ;
impf_conj_base = reg + "ere" ;
fut_I_base = rege ;
imp_base = reg ;
perf_stem = rex ;
perf_ind_base = rex ;
perf_conj_base = rex + "eri" ;
pqperf_ind_base = rex + "era" ;
pqperf_conj_base = rex + "isse" ;
fut_II_base = rex + "eri" ;
part_stem = rect ;
in
mkVerb regere pres_stem pres_ind_base pres_conj_base impf_ind_base impf_conj_base fut_I_base imp_base
perf_stem perf_ind_base perf_conj_base pqperf_ind_base pqperf_conj_base fut_II_base part_stem ;
-- 3./i-conjugation
verb3i : ( capere,cepi,captus : Str ) -> Verb = \capere,cepi,captus ->
let
cape = Predef.tk 2 capere ;
cap = init cape ;
capi = cap + "i" ;
cep = init cepi ;
capt = Predef.tk 2 captus ;
pres_stem = capi ;
pres_ind_base = capi ;
pres_conj_base = capi + "a" ;
impf_ind_base = capi + "eba" ;
impf_conj_base = cape + "re" ;
fut_I_base = capi + "e" ;
imp_base = cap ;
perf_stem = cep ;
perf_ind_base = cep ;
perf_conj_base = cep + "eri" ;
pqperf_ind_base = cep + "era" ;
pqperf_conj_base = cep + "isse" ;
fut_II_base = cep + "eri" ;
part_stem = capt ;
in
mkVerb capere pres_stem pres_ind_base pres_conj_base impf_ind_base impf_conj_base fut_I_base imp_base
perf_stem perf_ind_base perf_conj_base pqperf_ind_base pqperf_conj_base fut_II_base part_stem ;
-- 4./i-conjugation
verb4 : Str -> Verb = \audire ->
let
audi = Predef.tk 2 audire ;
audiv = audi + "v" ;
pres_stem = audi ;
pres_ind_base = audi ;
pres_conj_base = audi + "a" ;
impf_ind_base = audi + "eba" ;
impf_conj_base = audi + "re" ;
fut_I_base = audi +"e" ;
imp_base = audi ;
perf_stem = audiv ;
perf_ind_base = audiv ;
perf_conj_base = audiv + "eri" ;
pqperf_ind_base = audiv + "era" ;
pqperf_conj_base = audiv + "isse" ;
fut_II_base = audiv + "eri" ;
part_stem = audi + "t" ;
in
mkVerb audire pres_stem pres_ind_base pres_conj_base impf_ind_base impf_conj_base fut_I_base imp_base
perf_stem perf_ind_base perf_conj_base pqperf_ind_base pqperf_conj_base fut_II_base part_stem ;
-- deponent verb
-- 1./a-conjugation
deponent1 : Str -> Verb = \hortari ->
let
horta = Predef.tk 2 hortari ;
hort = init horta ;
pres_stem = horta ;
pres_ind_base = horta ;
pres_conj_base = hort + "e" ;
impf_ind_base = horta + "ba" ;
impf_conj_base = horta + "re" ;
fut_I_base = horta + "bi" ;
imp_base = horta ;
part_stem = horta + "t" ;
in
mkDeponent hortari pres_stem pres_ind_base pres_conj_base impf_ind_base impf_conj_base fut_I_base imp_base part_stem ;
-- 2./e-conjugation
deponent2 : Str -> Verb = \vereri ->
let
vere = Predef.tk 2 vereri ;
ver = init vere ;
pres_stem = vere ;
pres_ind_base = vere ;
pres_conj_base = vere + "a" ;
impf_ind_base = vere + "ba" ;
impf_conj_base = vere + "re" ;
fut_I_base = vere + "bi" ;
imp_base = vere ;
part_stem = ver + "it" ;
in
mkDeponent vereri pres_stem pres_ind_base pres_conj_base impf_ind_base impf_conj_base fut_I_base imp_base part_stem ;
-- 3./Consonant conjugation
deponent3c : ( sequi,sequor,secutus : Str ) -> Verb = \sequi,sequor,secutus ->
let
sequ = Predef.tk 2 sequor ;
secu = Predef.tk 3 secutus ;
pres_stem = sequ ;
pres_ind_base = sequ ;
pres_conj_base = sequ + "a" ;
impf_ind_base = sequ + "eba" ;
impf_conj_base = sequ + "ere" ;
fut_I_base = sequ + "e" ;
imp_base = sequi ;
part_stem = secu + "t" ;
in
mkDeponent sequi pres_stem pres_ind_base pres_conj_base impf_ind_base impf_conj_base fut_I_base imp_base part_stem ;
-- 3./i-conjugation
deponent3i : ( pati,patior,passus : Str ) -> Verb = \pati,patior,passus ->
let
pat = init pati ;
pass = Predef.tk 2 passus ;
pres_stem = pati ;
pres_ind_base = pati ;
pres_conj_base = pati + "a" ;
impf_ind_base = pati + "eba" ;
impf_conj_base = pat + "ere" ;
fut_I_base = pati + "e" ;
imp_base = pati ;
part_stem = pass ;
in
mkDeponent pati pres_stem pres_ind_base pres_conj_base impf_ind_base impf_conj_base fut_I_base imp_base part_stem ;
-- 4./i-conjugation
deponent4 : Str -> Verb = \largiri ->
let
largi = Predef.tk 2 largiri ;
pres_stem = largi ;
pres_ind_base = largi ;
pres_conj_base = largi + "a" ;
impf_ind_base = largi + "eba" ;
impf_conj_base = largi + "re" ;
fut_I_base = largi + "e" ;
imp_base = largi ;
part_stem = largi + "t" ;
in
mkDeponent largiri pres_stem pres_ind_base pres_conj_base impf_ind_base impf_conj_base fut_I_base imp_base part_stem ;
-- smart paradigms
verb_ippp : (iacere,iacio,ieci,iactus : Str) -> Verb =
\iacere,iacio,ieci,iactus ->
case iacere of {
_ + "ari" => deponent1 iacere ;
_ + "eri" => deponent2 iacere ;
_ + "iri" => deponent4 iacere ;
_ + "i" => case iacio of {
_ + "ior" => deponent3i iacere iacio iactus ;
_ => deponent3c iacere iacio iactus
} ;
_ + "are" => verb1 iacere ;
_ + "ire" => verb4 iacere ; -- ieci iactus ;
_ + "ere" => case iacio of {
_ + #consonant + "o" => verb3c iacere ieci iactus ; -- Bayer-Lindauer 74 1
_ + "eo" => verb2 iacere ;
_ + ( "i" | "u" ) + "o" => verb3i iacere ieci iactus ; -- Bayer-Linduaer 74 1
_ => verb3c iacere ieci iactus
} ;
ab + "esse" => prefixVerb ab esseAux ;
circum + "ferre" => prefixVerb circum ferreAux ;
_ => Predef.error ("verb_ippp: illegal infinitive form" ++ iacere)
} ;
verb : (iacere : Str) -> Verb =
\iacere ->
case iacere of {
_ + "ari" => deponent1 iacere ;
_ + "eri" => deponent2 iacere ;
_ + "iri" => deponent4 iacere ;
_ + "are" => verb1 iacere ;
_ + "ire" => let iaci = Predef.tk 2 iacere
in verb4 iacere ; -- (iaci + "vi") (iaci + "tus") ;
_ + "ere" => verb2 iacere ;
circum + "ferre" => prefixVerb circum ferreAux ;
ab + "esse" => prefixVerb ab esseAux ;
prae + "posse" => prefixVerb prae posseAux ;
_ => Predef.error ("verb: illegal infinitive form" ++ iacere)
} ;
}