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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
|
--# -path=.:../Romance:../common:../../prelude
resource MorphoRon = ResRon **
open Prelude, Predef in {
flags
optimize=noexpand; coding=cp1250;
---------------------------------------------------------------------------------
------------------------------ARTICLES-------------------------------------------
---------------------------------------------------------------------------------
--defined article (enclitic)
-- we need two forms, as the Singular AGenDat form for Feminine is obtained from the
-- Plural form, except for irregular nouns that need an additional form
oper artDf : Str -> Str -> Gender -> Number -> ACase -> Str =
\bun, buni, g, n, a ->
case <g,n,a> of
{ <Masc,Sg,ANomAcc> => case last bun of
{ "u" => bun + "l";
"e" => bun + "le";
"ã" => bun + "a";
_ => bun + "ul"
};
<Masc,Sg,AGenDat> => case last bun of
{("u"|"e" ) => bun + "lui" ;
_ => bun + "ului"
};
<Masc,Sg,AVoc> => case bun of
{ x+"u" => bun + "le";
x + "itor" => bun + "ule" ;
x + ("en"|"or") => bun + "e" ;
x+("e"|"ã") => bun;
_ => bun + "ule"
};
<Masc,Pl,ANomAcc> => buni + "i";
<Masc,Pl, _> => buni + "lor";
<Fem,Sg,ANomAcc> => case bun of
{ x + ("a"|"i") => bun + "ua";
x + "ie" => x + "ia";
x + "ã" => x + "a";
_ => bun + "a"
};
<Fem,Sg,AGenDat> => case bun of
{ x + ("a"|"e")+"ie" => buni+"i";
x + "ie" => bun + "i";
_ => buni + "i"
};
<Fem,Sg,AVoc> => case bun of
{ x + "ã" => x + "o";
x + "ie" => x + "io";
_ => bun + "o"
};
<Fem,Pl,ANomAcc> => buni + "le";
<Fem,Pl,_> => buni + "lor"
};
--Undefined article (proclitical) --
--we keep the non-articled form of the noun and glue it with the article on syntactical level
oper artUndef : Gender -> Number -> NCase -> Str = \g,n,a ->
case <g,n,a> of
{<Masc,Sg,No> => "un"; <Masc,Sg,Ac> => "un" ; <Masc,Sg,Ge> => "unui"; <Masc,Sg,Da> => "unui" ;<_,_,Vo> => "" ;
<_,Pl,No> => "niºte"; <_,Pl,Ac> => "niºte"; <_,Pl,Da> => "unor"; <_,Pl,Ge> => "unor" ;
<Fem,Sg,No> => "o"; <Fem,Sg,Ac> => "o"; <Fem,Sg,Da> => "unei"; <Fem,Sg,Ge> => "unei"
};
--possesive article
-- used for Cardinals and for Genitive case
oper artPos : Gender -> Number -> Str = \g,n ->
case <g,n> of
{ <Masc,Sg> => "al";
<Masc,Pl> => "ai";
<Fem,Sg> => "a";
<Fem,Pl> => "ale"
};
--demonstrative article
-- used as Determined article in order to emphasise on the noun/adjective, and for Dative/Genitive for of ordinals
oper artDem : Gender -> Number -> ACase -> Str = \g,n,c ->
case <g,n,c> of
{<Masc,Sg,ANomAcc> => "cel"; <Masc,Pl,ANomAcc> => "cei"; <Masc,Sg,AGenDat> => "celui";
<Fem,Sg,ANomAcc> => "cea"; <Fem,Pl,ANomAcc> => "cele"; <Fem,Sg,AGenDat> => "celei";
<_,Pl,AGenDat> => "celor";
<Masc,Sg,AVoc> => "cel";
<Masc,Pl,AVoc> => "cei"; <Fem,Sg,AVoc> => "cea"; <Fem,Pl,AVoc> => "cele"
};
--flexion forms of a noun without article
oper artUnf : Str -> Str -> Gender -> Number -> ACase -> Str = \buna,bune,g,n,a ->
case <g,n,a> of
{<Masc,Sg,_> => buna ; <Masc,Pl,_> => bune ;
<Fem,Sg,ANomAcc> => buna ; <Fem,Sg,AGenDat> => bune ; <Fem,Sg,AVoc> => buna;
<Fem,Pl,_> => bune
} ;
--undefined article form
oper artUndefMasc : Str -> Number -> ACase -> Str = \s,n,a -> s;
oper artUndefFem : Str -> Str -> Number -> ACase -> Str = \buna, bune, n, a ->
case <n,a> of
{
<Sg,ANomAcc> => buna;
<Sg,AGenDat> => bune;
<Sg,AVoc> => buna;
<Pl,_> => bune
};
---------------------------------------------------------------------------------
------------------------------- NOUNS--------------------------------------------
---------------------------------------------------------------------------------
-- the irregular nouns (of feminine gender) need 3 forms in order to build the
-- morfological table : (Singular ANomAcc Indef, Plural ANomAcc Indef and
-- Singular AGenDat Indef)
oper mkNomVIrreg : Str -> Str -> Str -> Noun = \iarba, ierburi, ierbi ->
let noun = mkNomIrreg iarba ierburi NFem
in
{s = \\n,a,c => case n of
{Sg => case c of
{AGenDat => case a of {Indef => ierbi;
Def => artDf iarba ierbi Fem Sg AGenDat
};
_ => noun.s ! Sg ! a ! c
};
Pl => noun.s ! Pl ! a ! c
};
g = NFem ;
a = Animate
};
-- usual nouns need two forms (Singular + Plural ANomAcc Indef)
-- because the Neuter behaves like Masculine for Singular and Feminine for Plural,
-- we pass 2 parameters - gender for Singular and for Plural, so that we can define
-- the forms for Neuter as a combination of Feminine and Masculine
oper mkNomIrreg : Str -> Str -> NGender -> Noun = \obiect, obiecte , gen ->
case gen of
{ NMasc => {s = mkNom obiect obiecte Masc Masc ; g = gen ; a = Animate };
NFem => {s = mkNom obiect obiecte Fem Fem ; g = gen ; a = Animate };
NNeut => {s = mkNom obiect obiecte Masc Fem ; g = gen ; a = Animate }
};
--creates the table for a noun :
oper mkNom : Str -> Str -> Gender -> Gender -> Number => Species => ACase => Str = \obiect, obiecte, gs, gp ->
table { Sg => table {Def => \\p => artDf obiect obiecte gs Sg p;
Indef => \\p => artUnf obiect obiecte gs Sg p
};
Pl => table { Def => \\p => artDf obiect obiecte gp Pl p ;
Indef => \\p => artUnf obiect obiecte gp Pl p
}
} ;
-- for regular nouns, we need just the Singular ANomAcc Indef form :
-- for obtaining the plural form, we apply almost the same rules as for adjectives
-- for Neuter we treat the Singular ANomAcc Indef for as the Masculine Singular form of an Adjective
-- and we obtains it's plural form as the Feminine Plural form of the adjective
-- (with potential o -> oa mutations, that occur in most of the cases)
mkNomReg : Str -> NGender -> Noun = \obiect, g ->
case g of
{NMasc => mkNomIrreg obiect ((mkAdjReg obiect).s ! (AF Masc Pl Indef ANomAcc)) NMasc ;
NFem => case (Predef.dp 4 obiect) of
{ "ai"+x+"ã" => mkNomIrreg obiect (init obiect + "e") NFem ; --always
_ => case (Predef.dp 3 obiect) of
{"i"+("c"|"n"|"m"|"p")+"ã" => mkNomIrreg obiect (init obiect + "i") NFem ; -- 60% cases frequently used words, not frequent for neological words
_ => mkNomIrreg obiect (mkFemPl obiect) NFem
}
};
NNeut => if_then_else Noun (pbool2bool (Predef.occur "o" (Predef.dp 3 obiect) ))
(mkNomIrreg obiect ((mkAdjRegO obiect).s ! (AF Fem Pl Indef ANomAcc)) NNeut)
(mkNomIrreg obiect ((mkAdjReg obiect).s ! (AF Fem Pl Indef ANomAcc)) NNeut)
};
--for nouns that have a different vocative form than the one inferred
mkVocc : Noun -> Str -> Noun = \n -> \vo ->
{s = table{ Sg => \\p, c => case c of
{ AVoc => vo ;
_ => n.s ! Sg ! p ! c
};
Pl => \\p,c => n.s ! Pl ! p ! c
};
g = n.g ;
a = n.a
};
-- composes a noun with an invariable string ( Ex camera foto)
-- with/without dash
ccompose : Noun -> Str -> Noun = \noun, y ->
{ s = \\n,p,c => noun.s ! n ! p ! c +"-"+ y ;
g = noun.g ;
a = noun.a
};
composeN : Noun -> Str -> Noun = \noun, y ->
{ s = \\n,p,c => noun.s ! n ! p ! c ++ y ;
g = noun.g ;
a = noun.a
};
-- changes the Animacy attribute
mkInanimate : Noun -> Noun = \n ->
{s = table { Sg => \\p,c => case c of
{AVoc => n.s ! Sg ! Indef ! ANomAcc ;
_ => n.s ! Sg ! p ! c
};
Pl => \\p, c => n.s ! Pl ! p ! c
};
g = n.g ;
a = Inanimate
};
mkAnimate : Noun -> Noun = \n ->
let ob = n.s ! Sg ! Indef ! ANomAcc ;
obs = n.s ! Pl ! Indef ! ANomAcc
in
{s = table { Sg => \\p,c => case <p,c> of
{<Indef,AVoc> => n.s ! Sg ! Indef ! ANomAcc ;
<Def,AVoc> => case (n.g) of
{NFem => artDf ob obs Fem Sg AVoc ;
_ => artDf ob obs Masc Sg AVoc
} ;
_ => n.s ! Sg ! p ! c
};
Pl => \\p, c => n.s ! Pl ! p ! c
};
g = n.g ;
a = Animate
};
--a special case of neuter nouns -- the ones that just add -ri/-uri to the Singular Form
mkNomNeut : Str -> Noun = \obiect ->
case last obiect of
{"u" => mkNomIrreg obiect (obiect + "ri") NNeut;
_ => mkNomIrreg obiect (obiect + "uri") NNeut
};
---------------------------------------------------------------------------------
-----------------------------ADJECTIVES------------------------------------------
---------------------------------------------------------------------------------
-- in the worst case, the adjective needs 5 forms for Singular/Plural - Masculine/Feminine + Adverb
oper mkAdjSSpec : Str -> Str -> Str -> Str -> Str -> Adj
= \bun -> \buna -> \buni -> \bune -> \bine ->
{ s = table {AF Masc Sg Def c => artDf bun buni Masc Sg c ;
AF Fem Sg Def c => artDf buna bune Fem Sg c ;
AF Masc Pl Def c => artDf bun buni Masc Pl c;
AF Fem Pl Def c => artDf buna bune Fem Pl c ;
AF Masc Pl Indef c => artUndefMasc buni Pl c;
AF Fem Pl Indef c => artUndefFem buna bune Pl c;
AF Masc Sg Indef c => artUndefMasc bun Sg c;
AF Fem Sg Indef c => artUndefFem buna bune Sg c;
AA => bine
}
};
-- usually the determined adverb is identical to the Singular Masculine form of the adjective
oper mkAdjSpec : Str -> Str -> Str -> Str -> Adj
= \bun -> \buna -> \buni -> \bune ->
mkAdjSSpec bun buna buni bune bun ;
-- special classes of adjectives :
oper adjAuriu : Str -> Adj = \s ->
let f = init s + "e";
pl = init s + "i"
in
mkAdjSpec s f pl pl ;
oper adjMuncitor : Str -> Adj = \s ->
let f = Predef.tk 2 s + "oare";
pl = s + "i";
adv = s + "eºte"
in
mkAdjSSpec s f pl f adv ;
oper adjRomanesc : Str -> Adj = \s ->
let f = Predef.tk 2 s + "ascã";
pl = Predef.tk 2 s + "ºti";
adv = Predef.tk 2 s + "ºte"
in
mkAdjSSpec s f pl pl adv ;
oper adjMare : Str -> Adj = \s ->
let pl = mkStemPlReg s
in
mkAdjSpec s s pl pl;
oper adjDimin : Str -> Adj = \s ->
let f = Predef.tk 2 s + "icã";
pl = init s + "i";
plf = s + "e"
in
mkAdjSpec s f pl plf;
-- the phonetical mutations that occur in Romanian (Singular Masculine -> Singular Feminine) are
-- o -> oa (Ex : frumos -> frumoasã)
-- e -> ea / ie -> ia (Ex : des -> deasã)
-- on the last occurence of o/e in the word (usually 2rd or 3rd last letter)
mkStemMutE : Str -> Str = \s ->
let s1 = if_then_Str (pbool2bool (Predef.occur "ie" (Predef.dp 4 s))) ((Predef.tk 3 s) +"a"+(Predef.dp 2 s)) ((Predef.tk 3 s) +"ea" + (Predef.dp 2 s));
s2 = if_then_Str (pbool2bool (Predef.occur "ie" (Predef.dp 3 s))) ((Predef.tk 2 s) +"a" + (last s)) ((Predef.tk 2 s) +"ea" + (last s))
in
case Predef.dp 3 s of
{"e"+x => s1;
_ => s2
};
mkStemMutO : Str -> Str = \s ->
case Predef.dp 3 s of
{"o"+x => (Predef.tk 3 s) +"oa" + x;
_ => (Predef.tk 2 s) + "oa" + (last s)
};
-- another phonetical mutation is ã -> e (Ex : proaspãtã -> proaspete)
-- Singular Feminine -> Plural Feminine
-- on the last occurence of ã -- 2nd last letter of the root
mkStemMutA : Str -> Str = \s ->
case (Predef.dp 2 s) of
{ "ã" + x => (Predef.tk 2 s) + "e" + (last s);
_ => s
};
-- obtaining the Masculine Plural form from the Masculine Singular
-- contains most usual mutations
oper mkStemPlReg : Str -> Str = \s ->
case s of
{x + ("st"|"sc"|"ºc")=> x + "ºti"; -- always -- usually the nouns/adj can end in an "u", but we eliminate that first
x + "str" => x + "ºtri";
x + "s" => x + "ºi";
x + "x" => x + "cºi";
x + "xt" => x + "cºti";
x + "ian" => x + "ieni";
x + "ean" => x + "eni";
x + "ead" => x + "ezi";
x + ("de"|"d") => x + "zi";
x + ("te"|"tã"|"t") => x + "þi";
x + ("e"|"i"|"a"|"ã")=> x + "i";
_ => s + "i"
}; --all the mutations occur always for adjectives, appart from the exception that mutate other syllables from the word
-- special cases that imply other mutations that don't occur for all words
-- because these rules don't apply for neological words, which are more frequent, they are treated
-- separately
oper mkStemPlSpec : Str -> Str = \s ->
case s of
{x + "l" => x + "i";
x + "z" => x + "j";
_ => s
};
--obtaining the Feminine Singular form from the Masculine Singular one for Adjectives :
mkFemSg : Str -> Str = \s ->
case s of
{x + "i" => s + "e";
x + "iu" => x + "ie";
x + "u" => x + "ã";
_ => s + "ã"
};
-- obtaining the Feminine Plural from Feminine Singular for Nouns :
mkFemPl : Str -> Str = \s ->
case s of
{ x + "are" => x + "ãri"; --always
x + ("ui"|"ai") => s + "e"; -- from Masc (adjectives)
x + "urã" => x + "uri"; -- always
x + "oaie" => x + "oi"; -- almost always
x + "aie" => x + "ãi"; --always
x + "eie" => x + "ei"; --always
x + "i" => s + "le" ; --always - special cases of Feminines ending in "i" like zi = day
x + "a" => x + "le"; --always - special cases of Feminines ending in "a" -- most of Turkish origine like cafea = coffee
x + "une" => x + "uni"; --always - abstract collective nouns like "naþiune" = nation, French origine
x + "ate" => x + "ãþi"; --always same as above like "libertate" = freedom-- x + "ºã" => x + "ºi"; -- 70% of cases
x + "re" => x + "ri"; -- almost always, exception nouns ending in "oare" which are treated as special case in adjReg
x + "e" => x + "i"; -- almost always for Nouns, always for Adjectives
_ => case init s of
{
x + ("g"|"h"|"nc") => (init s) + "i"; -- always for Adjectives, almost always for Nouns (g - ending has exceptions)
x + "ãt" => x + "ete"; --always
x + "ânt" => x + "inte"; --always
_ => case s of
{ x + "ã" => x + "e" ; -- default -- exception occur
_ => s + "e" -- worst case
}
}
};
--obtainint Feminine Plural from Masculine Singular for Adjectives :
mkFemAdj : Str -> Str = \s ->
case s of
{ x + ("g"|"h"|"nc") => s + "i";
x + "ânt" => x + "inte";
x + "ãt" => x + "ete";
_ => s + "e"
};
---------------------------------------------------------------
-- invariable adjective - where all the forms are identical
mkAdjInvar : Str -> Adj = \s ->
{s = table {AF g n a c => s ;
AA => s
}
};
-- regular adjective - just the Masculine Singular Form is needed
mkAdjReg : Str -> Adj = \s ->
let r = mkStemMutA s ;
rad = if_then_Str (pbool2bool (Predef.occur "u" (last r))) (init r) r;
radF = if_then_Str (pbool2bool (Predef.occur "u" (last s))) (init s) s
in
case s of
{x + "tor" => adjMuncitor s;
x + "esc" => adjRomanesc s;
x + "e" => adjMare s;
x + "iu" => adjAuriu s;
x + "el" => adjDimin s;
_ => mkAdjSpec s (mkFemSg radF) (mkStemPlReg rad) (mkFemAdj rad)
};
-- regular adjective that has the e -> ea mutation from Masculine Singular to Feminine Singular
mkAdjRegE : Str -> Adj = \s ->
let rad = if_then_Str (pbool2bool (Predef.occur "u" (last s))) (init s) s
in
mkAdjSpec s (mkFemSg (mkStemMutE rad)) (mkStemPlReg rad) (mkFemAdj rad);
-- regular adjective that has the e -> ea mutation as above, and also the l -> _ / z -> j
-- mutations from Masculine Singular -> Masculine Plural
mkAdjSpecE : Str -> Adj = \s ->
let rad = if_then_Str (pbool2bool (Predef.occur "u" (last s))) (init s) s
in
mkAdjSpec s (mkFemSg (mkStemMutE rad)) (mkStemPlSpec rad) (mkFemAdj rad);
-- regular adjective that has the o -> oa mutation from Masculine Singular to Feminine Singular
mkAdjRegO : Str -> Adj = \s ->
let rad = if_then_Str (pbool2bool (Predef.occur "u" (last s))) (init s) s
in
mkAdjSpec s (mkFemSg (mkStemMutO rad)) (mkStemPlReg rad) (mkFemPl (mkStemMutO rad));
-- regular adjective that has the o -> oa mutation as above and also the l -> _ / z -> j
-- mutations from Masculine Singular -> Masculine Plural
mkAdjSpecO : Str -> Adj = \s ->
let rad = if_then_Str (pbool2bool (Predef.occur "u" (last s))) (init s) s
in
mkAdjSpec s (mkFemSg (mkStemMutO rad)) (mkStemPlSpec rad) (mkFemPl (mkStemMutO rad));
-- the two categories mkAdjRegE and mkAdjRegO have been merge into one category of adjectives
-- that have mutations from Masculine Singular to Feminine Singular
mkRegMut : Str -> Adj = \s ->
let rad = if_then_Str (pbool2bool (Predef.occur "u" (last s))) (init s) s
in
if_then_else Adj (pbool2bool (Predef.occur "o" (Predef.dp 3 rad)))
(mkAdjSpec s (mkFemSg (mkStemMutO rad)) (mkStemPlReg rad) (mkFemPl (mkStemMutO rad)))
(mkAdjSpec s (mkFemSg (mkStemMutE rad)) (mkStemPlReg rad) (mkFemAdj rad));
-- the two categories mkAdjSpecE and mkAdjSpecO have been merge into one category of adjectives
-- that have mutations from Masculine Singular to Feminine Singular
-- and also from Masculine Singular to Masculine Plural
mkSpecMut : Str -> Adj = \s ->
let rad = if_then_Str (pbool2bool (Predef.occur "u" (last s))) (init s) s
in
if_then_else Adj (pbool2bool (Predef.occur "o" (Predef.dp 3 rad)))
(mkAdjSpec s (mkFemSg (mkStemMutO rad)) (mkStemPlSpec rad) (mkFemPl (mkStemMutO rad)))
(mkAdjSpec s (mkFemSg (mkStemMutE rad)) (mkStemPlSpec rad) (mkFemAdj rad));
-----------------------------------------------------------------------------------
------------------------------VERBS------------------------------------------------
-----------------------------------------------------------------------------------
--with rules based on the book "Conjugarea verbelor romanesti" by Ana-Maria Barbu--
-- for building the table for a verb, there are needed 29 forms
-- infinitive - 1 form
-- tables for Present, Imperfect, Past Simple, Past Perfect - 24 forms
-- 3rd person Singular form for Conjunctive Present (= 3rd person Plural) - 1 form
-- Adjective that describes the Past Participe Form (regular adjective)- 1 form
-- Gerund - 1 form
-- 2nd person Singular form for Imperative - 1 form
Verbe : Type = VForm => Str ;
verbAffixes :
Str-> (a,b,c,d: Number => Person => Str) -> Str -> Adj -> Str -> Str -> Verbe =
\fi,pres, imperf, pSimple, pPerf, subj, adj, ger, imp ->
table {
Inf => fi ;
Indi Presn n p => pres ! n ! p ;
Indi Imparf n p => imperf ! n ! p;
Indi PSimple n p => pSimple ! n ! p ;
Indi PPerfect n p => pPerf ! n ! p ;
Subjo SPres n P3 => subj ;
Subjo SPres n p => pres ! n ! p;
Imper SgP2 => imp ;
Imper PlP2 => pres ! Pl ! P2 ;
Imper PlP1 => pres ! Pl ! P1 ;
Ger => ger ;
PPasse g n a d => adj. s ! (AF g n a d)
} ;
-- syntactical verb :
-- obtains all the verb forms present in Romanian, based on the primitive forms found in Verbe
SVerbe : Type = VerbForm => Str ;
mkVerb : Verbe -> SVerbe = \vb ->
table {
TInf => "a" ++ vb ! Inf ;
TIndi TPresn n p => vb ! (Indi Presn n p) ;
TIndi TImparf n p => vb ! (Indi Imparf n p);
TIndi TPComp n p => pComp ! n ! p ++ vb ! (PPasse Masc Sg Indef ANomAcc) ;
TIndi TPSimple n p => vb ! (Indi PSimple n p) ;
TIndi TPPerfect n p => vb ! (Indi PPerfect n p) ;
TIndi TFutur n p => pFut ! n ! p ++ vb ! Inf ;
TSubjo TSPres n p => "sã" ++ vb ! (Subjo SPres n p) ;
TSubjo TSPast n p => "sã" ++ "fi" ++ vb ! (PPasse Masc Sg Indef ANomAcc) ;
TCondi n p => pCond ! n ! p ++ vb ! Inf ;
TImper PlP1 => "sã" ++ vb ! (Imper PlP1) ;
TImper p => vb ! (Imper p) ;
TGer => vb ! Ger ;
TPPasse g n a d => vb ! (PPasse g n a d)
};
-- auxiliary for Past Composite (to have - as auxiliary) :
pComp : Number => Person => Str = table {Sg => table {P1 => "am" ; P2 => "ai" ; P3 => "a"} ;
Pl => table {P1 => "am" ; P2 => "aþi"; P3 => "au"}
};
-- auxiliary for Future Simple :
pFut : Number => Person => Str = table {Sg => table {P1 => "voi" ; P2 => "vei" ; P3 => "va"} ;
Pl => table {P1 => "vom" ; P2 => "veþi"; P3 => "vor"}
};
--auxiliary for Condional Present :
pCond : Number => Person => Str = table {Sg => table {P1 => "aº" ; P2 => "ai" ; P3 => "ar"} ;
Pl => table {P1 => "am" ; P2 => "aþi"; P3 => "ar"}
};
-- make Reflexive verbe : ? with variants ?
-- syntactical category of reflexive verbs based on the primitive forms in Verbe
mkVerbRefl : Verbe -> SVerbe = \vb ->
table {
TInf => "a" ++ "se" ++ vb ! Inf ;
TIndi TPresn n p => pronRefl ! n ! p ++ vb ! (Indi Presn n p) ;
TIndi TImparf n p => pronRefl !n ! p ++ vb ! (Indi Imparf n p);
TIndi TPComp n p => pronReflClit ! n ! p + "-" + pComp ! n ! p ++ vb ! (PPasse Masc Sg Indef ANomAcc) ;
TIndi TPSimple n p => pronRefl ! n ! p ++ vb ! (Indi PSimple n p) ;
TIndi TPPerfect n p => pronRefl ! n ! p ++ vb ! (Indi PPerfect n p) ;
TIndi TFutur n p => pronRefl ! n ! p ++ pFut ! n ! p ++ vb ! Inf ;
TSubjo TSPres n p => "sã" ++ pronRefl ! n ! p ++ vb ! (Subjo SPres n p) ;
TSubjo TSPast n p => "sã" ++ pronRefl ! n ! p ++ "fi" ++ vb ! (PPasse Masc Sg Indef ANomAcc) ;
TCondi n p => pronReflClit ! n ! p + "-" + pCond ! n ! p ++ vb ! Inf ;
TImper PlP1 => "sã" ++ pronRefl ! Pl ! P1 ++ vb ! (Imper PlP1) ;
TImper PlP2 => vb ! (Imper PlP2) + "-"+ pronRefl ! Pl ! P2 ;
TImper SgP2 => vb ! (Imper SgP2) + "-"+ pronRefl ! Sg ! P2 ;
TGer => vb ! Ger + "u" + "-" + pronRefl ! Sg ! P3 ;
TPPasse g n a d => vb ! (PPasse g n a d)
};
-- reflexive pronouns - full form
pronRefl : Number => Person => Str =
table {Sg => table {P1 => "mã" ; P2 => "te" ; P3 => "se"};
Pl => table {P1 => "ne" ; P2 => "vã" ; P3 => "se" }
};
-- reflexive pronouns - short form (clitics)
pronReflClit : Number => Person => Str =
table {Sg => table {P1 => "m" ; P2 => "te" ; P3 => "s"};
Pl => table {P1 => "ne" ; P2 => "v" ; P3 => "s" }
};
{-
verbAffixes1 :
Str-> (a,b,c,d: Number => Person => Str) -> (e,f,g,h : Str) -> Verbe =
\fi,pres, imperf, pSimple, pPerf, subj, part, ger, imp ->
table {
Inf => fi ;
Indi Presn n p => pres ! n ! p ;
Indi Imparf n p => imperf ! n ! p;
Indi PComp n p => "aa" ++ part ;
Indi PSimple n p => pSimple ! n ! p ;
Indi PPerf n p => pPerf ! n ! p ;
Indi Futur n p => "va" ++ fi ;
Condi n p => "as" ++ fi ;
Subjo SPres n P3 => subj ;
Subjo SPres n p => pres ! n ! p;
Subjo SPast n p => "sa" ++ "fi" ++ part ;
Imper SgP2 => imp ;
Imper PlP2 => pres ! Pl ! P2 ;
Imper PlP1 => "sa" ++ pres ! Pl ! P1 ;
Part PPres => ger ;
Part (PPasse g n a d) => (mkAdjReg part). s ! (AF g n a d)
} ;
-}
-- This is a conversion to the type in $CommonRomance$.
oper
vvf : (VerbForm => Str) -> (VF => Str) = \aller -> table {
VInfin _ => aller ! TInf ;
VFin (VPres Indic) n p => aller ! TIndi TPresn n p ;
VFin (VPres Subjunct) n p => aller ! TSubjo TSPres n p ;
VFin (VImperf Indic) n p => aller ! TIndi TImparf n p ; --# notpresent
VFin (VImperf Subjunct) n p => aller ! TSubjo TSPast n p ; --# notpresent
VFin VPasse n p => aller ! TIndi TPComp n p ; --# notpresent
VFin VFut n p => aller ! TIndi TFutur n p ; --# notpresent
VFin VCondit n p => aller ! TCondi n p ; --# notpresent
VImper np => aller ! TImper np ;
VPart g n a d => aller ! TPPasse g n a d ;
VGer => aller ! TGer
} ;
-- vowells in Romanian - used for clitics
vocale : Str = ("a"|"e"|"i"|"u"|"ã"|"î"|"â");
-- phonetical mutations that occur when declining verbs :
-- last ã in the word -> a
modALast : Str -> Str = \root ->
if_then_Str (pbool2bool (Predef.occur "ã" (Predef.dp 2 root)))
((Predef.tk 2 root) + "a" + (last root)) ((Predef.tk 3 root) + "a" + (Predef.dp 2 root));
-- last u in the word -> o
modU : Str -> Str = \root ->
if_then_Str (pbool2bool (Predef.occur "u" (Predef.dp 2 root)))
((Predef.tk 2 root) + "o" + (last root)) ((Predef.tk 3 root) + "o" + (Predef.dp 2 root));
-- first ã in the word -> a
modAFirst : Str -> Str = \root ->
if_then_Str (pbool2bool (Predef.occur "ã" (Predef.take 2 root)))
((Predef.take 1 root) + "a" + (Predef.drop 2 root)) ((Predef.take 2 root) + "a" + (Predef.drop 3 root));
-- ã -> a (general)
modA : Str -> Str = \root ->
if_then_Str (pbool2bool (Predef.occur "ã" (Predef.dp 3 root))) (modALast root) (modAFirst root) ;
-- e -> ea mutation (general)
mkMutE : Str -> Str = \root ->
if_then_Str (pbool2bool (Predef.occur "e" (Predef.dp 3 root))) (mkStemMutE root)
(mkStemMutE (Predef.take 4 root) + (Predef.drop 4 root)) ;
-- o -> oa mutation (general)
mkMutO : Str -> Str = \root ->
if_then_Str (pbool2bool (Predef.occur "o" (Predef.dp 3 root))) (mkStemMutO root)
(mkStemMutO (Predef.take 4 root) + (Predef.drop 4 root)) ;
-- general mutation - last occurence of a letter in the word is replaced by other string
-- the letter should occurd 2nd or 3rd last in the word
--for replacing 1 character with a string
genMut : Str -> Str -> Str -> Str = \root, e, a ->
if_then_Str (pbool2bool (Predef.occur e (Predef.dp 2 root)))
((Predef.tk 2 root) + a + (last root)) ((Predef.tk 3 root) + a + (Predef.dp 2 root));
-- for replacing 2 characters with a string
genMut2 : Str -> Str -> Str -> Str = \root,e , a ->
if_then_Str (pbool2bool (Predef.occur e (Predef.dp 3 root)))
((Predef.tk 3 root) + a + (last root)) ((Predef.tk 4 root) + a + (Predef.dp 2 root));
-- oa -> o mutation (last occurence in the word)
mkStemMutOa : Str -> Str = \s ->
case Predef.dp 4 s of
{"oa" + x => (Predef.tk 4 s) + "o" + x;
_ => (Predef.tk 3 s) + "o" + (last s)
};
-- Affixes :
-- It is convenient to have sets of affixes as data objects.
Affixe : Type = Person => Str ;
afixe : (_,_,_ : Str) -> Affixe = \x,y,z -> table {
P1 => x ;
P2 => y ;
P3 => z
} ;
-- Empty table (for verbs that lack certain tenses and moods )
empty : Number => Person => Str = \\n,p => nonExist ;
specTab : Str -> Str -> Number => Person => Str = \ploua, plouau ->
\\n,p => case <n,p> of
{<Sg,P3> => ploua ;
<Pl,P3> => plouau ;
_ => nonExist
};
-- VERB GROUPS :
---------------------------------------------------
-----------Group 1 - ending in -a, with exceptions
---------------------------------------------------
-- Much of variation can be described in terms of affix sets:
---------------------------------
--for Present :
---------------------------------
--for subGroups 1,13
affixSgGr1Ez : Affixe = afixe "ez" "ezi" "eazã" ;
affixPlGr1Ez : Affixe = afixe "ãm" "aþi" "eazã" ;
------
--for subGroups 2-3
affixSgGr1EzI : Affixe = afixe "ez" "ezi" "azã" ;
affixPlGr1EzI : Affixe = afixe "em" "aþi" "azã" ;
------
--for subGroup 4
affixSgGr1I : Affixe = afixe "i" "i" "e" ;
affixPlGr1I : Affixe = afixe "em" "aþi" "e";
------
--for subGroup 5
affixSgGr1VI : Affixe = afixe "" "" "e" ;
affixPlGr1VI : Affixe = affixPlGr1I ;
------
--for subGroups 6-7
affixSgGr1 : Affixe = afixe "" "i" "ã" ;
affixPlGr1 : Affixe = afixe "ãm" "aþi" "ã" ;
------
--for subGroup 8
affixSgGr1U : Affixe = afixe "u" "i" "ã" ;
affixPlGr1U : Affixe = affixPlGr1 ;
------
--for subGroup 9,11,12
affixSgGr1AU : Affixe = afixe "au" "ai" "ã" ;
affixPlGr1AU : Affixe = afixe "ãm" "aþi" "au" ;
-------
--for subGroup 10
affixSgGr1EU : Affixe = afixe "au" "ei" "a" ;
affixPlGr1EU : Affixe = afixe "ãm" "aþi" "au" ;
-------
--for subGroup 14
affixSgGr1CI : Affixe = afixe "i" "i" "e" ;
affixPlGr1CI : Affixe = afixe "em" "eaþi" "e";
-----
-------------------------
--for Imperfect :
-------------------------
--for subGroups 1-10
affixSgI : Affixe = afixe "am" "ai" "a" ;
affixPlI : Affixe = afixe "am" "aþi" "au" ;
--for subGroups 11-14
affixSgII : Affixe = afixe "eam" "eai" "ea" ;
affixPlII : Affixe = afixe "eam" "eaþi" "eau" ;
---------------------------
--for Perfect Simple :
---------------------------
--for subGroups 1, 6-10
affixSgPS1 : Affixe = afixe "ai" "aºi" "ã" ;
affixPlPS1 : Affixe = afixe "arãm" "arãþi" "arã" ;
--for subGroups 2-5
affixSgPS2 : Affixe = afixe "ai" "aºi" "e" ;
affixPlPS2 : Affixe = afixe "arãm" "arãþi" "arã" ;
--for subGroups 11-12
affixSgPS3 : Affixe = afixe "ui" "uºi" "u" ;
affixPlPS3 : Affixe = afixe "urãm" "urãþi" "urã" ;
--for subGroups 13-14
affixSgPS4 : Affixe = afixe "eai" "eaºi" "e" ;
affixPlPS4 : Affixe = afixe "earãm" "earãþi" "earã" ;
--------------------------
-- for Past Perfect :
---------------------------
--for subGroups 1-10
affixSgPP : Affixe = afixe "asem" "aseºi" "ase" ;
affixPlPP : Affixe = afixe "aserãm" "aserãþi" "aserã" ;
--for subGroups 11-12
affixSgPP2 : Affixe = afixe "usem" "useºi" "use" ;
affixPlPP2 : Affixe = afixe "userãm" "userãþi" "userã" ;
--for subGroups 13-14
affixSgPP3 : Affixe = afixe "easem" "easeºi" "ease" ;
affixPlPP3 : Affixe = afixe "easerãm" "easerãþi" "easerã" ;
-- functions that build a tense table for a verb :
-- worst case : we need 5 forms and an affixe -
-- root, 1st Sg, 2nd Sg, 3rd Sg, 3rd Pl and affixe
mkTab : (a,b,c,d,e : Str) -> Affixe -> Number => Person => Str =
\lua -> \iau -> \iei -> \ia -> \iaP -> \aff ->
table {Sg => table {P1 => iau; P2 => iei; P3 => ia};
Pl => table {P3 => iaP; p => lua + aff ! p}
};
-- regular case : we need just the root and affixes for Singular and Plural
mkFromAffix : Str -> Affixe -> Affixe -> Number => Person => Str = \ar,affSg,affPl ->
table {Sg => table {p => ar + affSg ! p};
Pl => table {p => ar + affPl ! p}
};
-- case where we need 2 roots and two affixes
mkFromAffixes1 : Str -> Str -> Affixe -> Affixe -> Number => Person => Str =
\ar,arr,affSg, affPl ->
table {Sg => table {p => ar + affSg ! p };
Pl => table {P3 => ar + affSg ! P3 ;
p => arr + affPl ! p
}
};
mkFromAffixes2 : Str -> Str -> Affixe -> Affixe -> Number => Person => Str =
\ar,arr,affSg, affPl ->
table {Sg => table {p => ar + affSg ! p};
Pl => table {P3 => ar + affPl ! P3;
p => arr + affPl ! p
}
};
-- cases where the 3rd Person Singular is formed with a different root :
mkAffixSpec1 : Str -> Str -> Affixe -> Affixe -> Number => Person => Str =
\ar, arr, affSg, affPl ->
table {Sg => table {P3 => arr + affSg ! P3 ;
p => ar + affSg ! p
};
Pl => table {P3 => arr + affSg ! P3 ;
p => ar + affPl ! p
}
};
mkAffixSpec2 : Str -> Str -> Affixe -> Affixe -> Number => Person => Str =
\ar, arr, affSg, affPl ->
table {Sg => table {P3 => arr + affSg ! P3 ;
p => ar + affSg ! p
};
Pl => table {P3 => ar + affSg ! P1 ;
p => ar + affPl ! p
}
};
-- case where the 2nd person Singular has a different form, than the usual one :
changeP2 : Str -> (Number => Person => Str) -> Number => Person => Str =
\ari -> \pres ->
table {Sg => table {P2 => ari;
p => pres ! Sg ! p};
Pl => \\p => pres ! Pl ! p
};
-- case where the 1st person Singular has a different form than the usual one :
changeP1 : Str -> (Number => Person => Str) -> Number => Person => Str =
\ari -> \pres ->
table {Sg => table {P1 => ari;
p => pres ! Sg ! p};
Pl => \\p => pres ! Pl ! p
};
--subGroup 1
mkV6: Str -> Verbe = \lucra ->
let root = init lucra in
verbAffixes lucra (mkFromAffix root affixSgGr1Ez affixPlGr1Ez)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (root + "eze") (mkAdjReg(root + "at"))
(root + "ând") (root + "eazã") ;
mkV7 : Str -> Verbe = \crea ->
mkV6 crea ;
mkV8 : Str -> Verbe = \parca ->
let r = init parca ;
root = r + "h"
in
verbAffixes parca (mkFromAffixes1 r root affixSgGr1Ez affixPlGr1Ez)
(mkFromAffix r affixSgI affixPlI) (mkFromAffix r affixSgPS1 affixPlPS1)
(mkFromAffix r affixSgPP affixPlPP) (root + "eze") (mkAdjReg (r + "at"))
(r + "ând") (root + "eazã") ;
mkV9 : Str -> Verbe = \divaga ->
mkV8 divaga ;
--subGroup 2
mkV10 : Str -> Verbe = \studia ->
let root = init studia in
verbAffixes studia (mkFromAffix root affixSgGr1EzI affixPlGr1EzI)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS2 affixPlPS2)
(mkFromAffix root affixSgPP affixPlPP) (root + "eze") (mkAdjReg (root + "at"))
(root + "ind") (root + "azã") ;
--subGroup 3
mkV11 : Str -> Verbe = \ardeia ->
let root = init ardeia in
verbAffixes ardeia (mkFromAffix root affixSgGr1EzI affixPlGr1EzI)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS2 affixPlPS2)
(mkFromAffix root affixSgPP affixPlPP) (root + "eze") (mkAdjReg (root + "at"))
(root + "nd") (root + "azã") ;
--subGroup 4
mkV12 : Str -> Verbe = \speria ->
let root = init speria in
verbAffixes speria (mkFromAffix root affixSgGr1I affixPlGr1I)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS2 affixPlPS2)
(mkFromAffix root affixSgPP affixPlPP) (root + "e") (mkAdjReg (root + "at"))
(root + "ind") (root + "e") ;
--subGroup 5
mkV13 : Str -> Verbe = \incuia ->
let root = init incuia in
verbAffixes incuia (mkFromAffix root affixSgGr1VI affixPlGr1VI)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS2 affixPlPS2)
(mkFromAffix root affixSgPP affixPlPP) (root + "e") (mkAdjReg (root + "at"))
(root + "nd") (root + "e") ;
mkV14 : Str -> Verbe = \taia ->
let root = init taia ;
r = modA root
in
verbAffixes taia (mkFromAffixes1 r root affixSgGr1VI affixPlGr1VI)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS2 affixPlPS2)
(mkFromAffix root affixSgPP affixPlPP) (r + "e") (mkAdjReg (root + "at"))
(root + "nd") (r + "e") ;
mkV15 : Str -> Verbe = \infoia ->
let root = init infoia ;
r = mkStemMutO root
in
verbAffixes infoia (mkAffixSpec1 root r affixSgGr1VI affixPlGr1VI)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS2 affixPlPS2)
(mkFromAffix root affixSgPP affixPlPP) (r + "e") (mkAdjReg (root + "at"))
(root + "nd") (r + "e") ;
mkV16 : Str -> Verbe = \muia ->
let root = init muia ;
r1 = modU root ;
r2 = mkStemMutO r1
in
verbAffixes muia (mkTab root r1 r1 (r2 + "e") (r2+"e") affixPlGr1VI)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS2 affixPlPS2)
(mkFromAffix root affixSgPP affixPlPP) (r2 + "e") (mkAdjReg (root + "at"))
(root + "nd") (r2 + "e") ;
--subGroup 6
mkV17 : Str -> Verbe = \acuza ->
let root = init acuza
in
verbAffixes acuza (mkFromAffix root affixSgGr1 affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (root + "e") (mkAdjReg (root + "at"))
(root + "ând") (root + "ã") ;
mkV18 : Str -> Verbe = \ajuta ->
let root = init ajuta ;
newF = mkStemPlReg root;
pres = changeP2 newF (mkFromAffix root affixSgGr1 affixPlGr1)
in
verbAffixes ajuta pres
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (root + "e") (mkAdjReg (root + "at"))
(root + "ând") (root + "ã") ;
mkV19 : Str -> Verbe = \acorda ->
mkV18 acorda ;
mkV20 : Str -> Verbe = \asista ->
mkV18 asista ;
mkV21 : Str -> Verbe = \risca ->
let root = init risca ;
newF = mkStemPlReg root ;
newP = init newF + "e" ;
pres = changeP2 newF (mkFromAffix root affixSgGr1 affixPlGr1)
in
verbAffixes risca pres
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) newP (mkAdjReg (root + "at"))
(root + "ând") (root + "ã") ;
mkV22 : Str -> Verbe = \misca ->
mkV21 misca ;
mkV23 : Str -> Verbe = \calca ->
let root = init calca ;
r = modA root
in
verbAffixes calca (mkFromAffixes1 r root affixSgGr1 affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (r + "e") (mkAdjReg (root + "at"))
(root + "ând") (r + "ã") ;
mkV24 : Str -> Verbe = \cauta ->
let root = init cauta ;
r = modA root ;
newF = mkStemPlReg r ;
pres = changeP2 newF (mkFromAffixes1 r root affixSgGr1 affixPlGr1)
in
verbAffixes cauta pres
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (r + "e") (mkAdjReg (root + "at"))
(root + "ând") (r + "ã") ;
mkV25 : Str -> Verbe = \lauda ->
mkV24 lauda ;
mkV26 : Str -> Verbe = \lasa ->
mkV24 lasa ;
mkV27 : Str -> Verbe = \adasta ->
mkV24 adasta ;
mkV28 : Str -> Verbe = \casca ->
let root = init casca ;
r = modA root ;
newF = mkStemPlReg r ;
newP = init newF + "e"
in
verbAffixes casca (changeP2 newF (mkFromAffixes1 r root affixSgGr1 affixPlGr1))
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) newP (mkAdjReg (root + "at"))
(root + "ând") (r + "ã") ;
mkV29 : Str -> Verbe = \chema ->
let root = init chema ;
r = mkMutE root
in
verbAffixes chema (mkAffixSpec1 root r affixSgGr1 affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (root+"e") (mkAdjReg (root + "at"))
(root + "ând") (r + "ã") ;
mkV30 : Str -> Verbe = \certa ->
let root = init certa ;
newF = mkStemPlReg root ;
newP = mkMutE root + "ã"
in
verbAffixes certa (mkTab root root newF newP newP affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (root+"e") (mkAdjReg (root + "at"))
(root + "ând") newP ;
mkV31 : Str -> Verbe = \toca ->
let root = init toca ;
r = mkStemMutO root
in
verbAffixes toca (mkAffixSpec1 root r affixSgGr1 affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (root+"e") (mkAdjReg (root + "at"))
(root + "ând") (r + "ã") ;
mkV32 : Str -> Verbe = \inota ->
let root = init inota ;
newF = mkStemPlReg root ;
newP = mkStemMutO root + "ã"
in
verbAffixes inota (mkTab root root newF newP newP affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (root+"e") (mkAdjReg (root + "at"))
(root + "ând") newP ;
mkV33 : Str -> Verbe = \innoda ->
mkV32 innoda ;
mkV34 : Str -> Verbe = \improsca ->
let root = init improsca ;
newF = mkStemPlReg root ;
newS = mkStemMutO (init newF) + "e" ;
newP = mkStemMutO root + "ã"
in
verbAffixes improsca (mkTab root root newF newP newP affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) newS (mkAdjReg (root + "at"))
(root + "ând") newP ;
mkV35 : Str -> Verbe = \apara ->
let root = init apara ;
newP = mkStemMutA root ;
pres = changeP2 (newP + "i") (mkFromAffix root affixSgGr1 affixPlGr1)
in
verbAffixes apara pres
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (newP + "e") (mkAdjReg (root + "at"))
(root + "ând") (root + "ã") ;
mkV36 : Str -> Verbe = \semana ->
let root = init semana ;
newP = mkStemMutA root ;
newF = mkMutE root + "ã"
in
verbAffixes semana (mkTab root root (newP+"i") newF newF affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (newP + "e") (mkAdjReg (root + "at"))
(root + "ând") newF ;
mkV37 : Str -> Verbe = \fremata ->
let root = init fremata ;
r = mkMutE root ;
newC = (mkStemMutA root) + "e" ;
newP = mkStemPlReg r ;
newF = r + "ã"
in
verbAffixes fremata (mkTab root r newP newF newF affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) newC (mkAdjReg (root + "at"))
(root + "ând") newF ;
mkV38 : Str -> Verbe = \lepada ->
mkV37 lepada ;
mkV39 : Str -> Verbe = \scapara ->
let root = init scapara ;
r = modAFirst root ;
newP = mkStemMutA r ;
newF = r + "ã"
in
verbAffixes scapara (mkTab root r (newP + "i") newF newF affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (newP + "e") (mkAdjReg (root + "at"))
(root + "ând") newF ;
mkV40 : Str -> Verbe = \capata ->
let root = init capata ;
r = modAFirst root ;
newC = mkStemMutA r + "e" ;
newP = mkStemPlReg(mkStemMutA r) ;
newF = r + "ã"
in
verbAffixes capata (mkTab root r newP newF newF affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) newC (mkAdjReg (root + "at"))
(root + "ând") newF ;
mkV41 : Str -> Verbe = \aseza ->
let root = init aseza ;
r = genMut root "e" "a"
in
verbAffixes aseza (mkAffixSpec1 root r affixSgGr1 affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (root+"e") (mkAdjReg (root + "at"))
(root + "ând") (r +"ã") ;
mkV42 : Str -> Verbe = \ierta ->
mkV30 ierta ;
mkV43 : Str -> Verbe = \dezmierda ->
mkV30 dezmierda ;
mkV44 : Str -> Verbe = \pieptana ->
mkV36 pieptana ;
mkV45 : Str -> Verbe = \invata ->
let root = init invata ;
newP = mkStemMutA root ;
r = genMut root "ã" "a"
in
verbAffixes invata (mkTab root root (newP + "i") (r+"ã") (r+"ã") affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (newP +"e") (mkAdjReg (root + "at"))
(root + "ând") (r +"ã") ;
mkV46 : Str -> Verbe = \imbata ->
let root = init imbata ;
newP = mkStemMutA root ;
r = genMut root "ã" "a"
in
verbAffixes imbata (mkTab root root (mkStemPlReg newP) (r+"ã") (r+"ã") affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (newP +"e") (mkAdjReg (root + "at"))
(root + "ând") (r +"ã") ;
mkV47 : Str -> Verbe = \varsa ->
mkV46 varsa ;
mkV48 : Str -> Verbe = \juca ->
let root = init juca ;
r1 = modU root ;
r2 = mkStemMutO r1
in
verbAffixes juca (mkTab root r1 (mkStemPlReg r1) (r2+"ã") (r2+"ã") affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (r2 +"e") (mkAdjReg (root + "at"))
(root + "ând") (r2 +"ã") ;
mkV49 : Str -> Verbe = \purta ->
mkV48 purta ;
mkV50 : Str -> Verbe = \prezenta ->
let root = init prezenta ;
r1 = genMut root "e" "i"
in
verbAffixes prezenta (mkTab root r1 (mkStemPlReg r1) (r1+"ã") (r1+"ã") affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (r1 +"e") (mkAdjReg (root + "at"))
(root + "ând") (r1 +"ã") ;
mkV51 : Str -> Verbe = \usca ->
let root = init usca ;
r = "usuc"
in
verbAffixes usca (mkTab root r (r + "i") (r+"ã") (r+"ã") affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (r +"e") (mkAdjReg (root + "at"))
(root + "ând") (r +"ã") ;
mkV52 : Str -> Verbe = \manca ->
let root = init manca ;
r = "mãnânc"
in
verbAffixes manca (mkTab root r (r + "i") (r+"ã") (r+"ã") affixPlGr1)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (r +"e") (mkAdjReg (root + "at"))
(root + "ând") (r +"ã") ;
--subGroup 7
mkV53 : Str -> Verbe = \preceda ->
let root = init preceda ;
newP = mkStemPlReg root ;
newC = mkMutE root
in
verbAffixes preceda (changeP2 newP (mkFromAffix root affixSgGr1 affixPlGr1))
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (newC +"ã") (mkAdjReg (root + "at"))
(root + "ând") (root +"ã") ;
mkV54 : Str -> Verbe = \ploua ->
let root = init ploua
in
verbAffixes ploua (specTab (root + "ã") (root + "ã")) (specTab ploua (ploua+ "u"))
(specTab (root + "ã") (root + "arã")) (specTab (root + "ase") (root + "aserã"))
(root + "ã") (mkAdjReg (root + "at")) (root + "ând") (root + "ã") ;
--subGroup8
mkV55 : Str -> Verbe = \umbla ->
let root = init umbla
in
verbAffixes umbla (mkFromAffix root affixSgGr1U affixPlGr1U)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (root +"e") (mkAdjReg (root + "at"))
(root + "ând") (root +"ã") ;
mkV56 : Str -> Verbe = \latra ->
let root = init latra ;
r = genMut root "ã" "a"
in
verbAffixes latra (mkFromAffixes1 r root affixSgGr1U affixPlGr1U)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (r +"e") (mkAdjReg (root + "at"))
(root + "ând") (r +"ã") ;
--subGroup 9
mkV57 : Str -> Verbe = \reda ->
let root = init reda
in
verbAffixes reda (mkFromAffix root affixSgGr1AU affixPlGr1AU)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (root +"ea") (mkAdjReg (root + "at"))
(root + "ând") (root +"ã") ;
--subGroup 10
mkV58 : Str -> Verbe = \lua ->
let root = init lua ;
r = Predef.tk 2 root + "i"
in
verbAffixes lua (mkFromAffixes1 r root affixSgGr1EU affixPlGr1EU)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS1 affixPlPS1)
(mkFromAffix root affixSgPP affixPlPP) (r +"a") (mkAdjReg (root + "at"))
(root + "ând") (r +"a") ;
--subGroup 11
mkV59 : Str -> Verbe = \sta ->
let root = init sta ;
r = Predef.tk 2 root + "stãt"
in
verbAffixes sta (mkFromAffix root affixSgGr1AU affixPlGr1AU)
(mkFromAffix r affixSgII affixPlII) (mkFromAffix r affixSgPS3 affixPlPS3)
(mkFromAffix r affixSgPP2 affixPlPP2) (root +"ea") (mkAdjReg (root + "at"))
(root + "ând") (root +"ai") ;
--subGroups 12
mkV60 : Str -> Verbe = \da ->
let root = init da ;
r = init root + "dãd"
in
verbAffixes da (mkFromAffix root affixSgGr1AU affixPlGr1AU)
(mkFromAffix r affixSgII affixPlII) (mkFromAffix r affixSgPS3 affixPlPS3)
(mkFromAffix r affixSgPP2 affixPlPP2) (root +"ea") (mkAdjReg (root + "at"))
(root + "ând") (root +"ai") ;
--subGroups 13
mkV61 : Str -> Verbe = \veghea ->
let root = Predef.tk 2 veghea
in
verbAffixes veghea (mkFromAffix root affixSgGr1Ez affixPlGr1Ez)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS4 affixPlPS4)
(mkFromAffix root affixSgPP3 affixPlPP3) (root +"eze") (mkAdjReg (root + "eat"))
(root + "ind") (root +"eazã") ;
--subGroups 14
mkV62 : Str -> Verbe = \deochea ->
let root = Predef.tk 2 deochea ;
newP = mkMutO root
in
verbAffixes deochea (mkAffixSpec1 root newP affixSgGr1CI affixPlGr1CI)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS4 affixPlPS4)
(mkFromAffix root affixSgPP3 affixPlPP3) (newP +"e") (mkAdjReg (root + "eat"))
(root + "ind") (newP + "e") ;
-----------------------------------
---------GROUP 2 -- verbs ending in -ea (same syllable)
-----------------------------------
----------
--Present
----------
--subGroup 1-2
affixSgGr21 : Affixe = afixe "" "i" "e" ;
affixPlGr21 : Affixe = afixe "em" "eþi" "" ;
--subGroup 3
affixSgGr23 : Affixe = afixe "eau" "ei" "ea" ;
affixPlGr23 : Affixe = afixe "em" "eþi" "eau" ;
--subGroup 4
affixSgGr24 : Affixe = afixe "eau" "ei" "ea" ;
affixPlGr24 : Affixe = afixe "em" "eþi" "" ;
----------
--Imperf
----------
--subGroups 1-3
--affixSgII and affixPlII
--subGroup 4
affixSgI2 : Affixe = afixe "iam" "iai" "ia" ;
affixPlI2 : Affixe = afixe "iam" "iaþi" "iau" ;
---------------
--Past Simple
--------------
--affixSgPS3 and affixPlPS3
--------------
--Past Perfect
--------------
-- for subGroups 1-3
-- affixSgPP2 and affixPlPP2
--for subGroup 4
affixSgPP4 : Affixe = afixe "usem" "useºi" "use" ;
affixPlPP4 : Affixe = afixe "useserãm" "useserãþi" "useserã" ;
-----------------
-- subGroup 1
mkV64 : Str -> Verbe = \aparea ->
let root = Predef.tk 2 aparea ;
r = genMut root "ã" "a"
in
verbAffixes aparea (mkFromAffixes2 r root affixSgGr21 affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS3 affixPlPS3)
(mkFromAffix r affixSgPP2 affixPlPP2) (r +"ã") (mkAdjReg (root + "ut"))
(root + "ând") (r + "i") ;
mkV65 : Str -> Verbe = \cadea ->
let root = Predef.tk 2 cadea ;
r = genMut root "ã" "a";
rad = init (mkStemPlReg root)
in
verbAffixes cadea (changeP2 (mkStemPlReg r) (mkFromAffixes2 r root affixSgGr21 affixPlGr21) )
(mkFromAffix root affixSgII affixPlII) (mkFromAffix rad affixSgPS3 affixPlPS3)
(mkFromAffix rad affixSgPP2 affixPlPP2) (r +"ã") (mkAdjReg (rad + "ut"))
(rad + "ând") (mkStemPlReg r) ;
mkV66 : Str -> Verbe = \sedea ->
let root = Predef.tk 2 sedea ;
r = genMut root "e" "a";
rad = init (mkStemPlReg root)
in
verbAffixes sedea (mkTab root root (mkStemPlReg root) (r + "e") root affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix rad affixSgPS3 affixPlPS3)
(mkFromAffix rad affixSgPP2 affixPlPP2) (r +"ã") (mkAdjReg (rad + "ut"))
(rad + "ând") (rad + "i") ;
mkV67 : Str -> Verbe = \vedea ->
let root = Predef.tk 2 vedea ;
r = genMut root "e" "ã" ;
newC = genMut root "e" "a" ;
rad = init (mkStemPlReg r)
in
verbAffixes vedea (mkTab root r (mkStemPlReg root) (root + "e") r affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix rad affixSgPS3 affixPlPS3)
(mkFromAffix rad affixSgPP2 affixPlPP2) (newC +"ã") (mkAdjReg (rad + "ut"))
(rad + "ând") (mkStemPlReg root) ;
mkV68 : Str -> Verbe = \putea ->
let root = Predef.tk 2 putea ;
r = modU root ;
newP = mkMutO r
in
verbAffixes putea (mkTab root r (mkStemPlReg r) (newP + "e") r affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS3 affixPlPS3)
(mkFromAffix root affixSgPP2 affixPlPP2) (newP +"ã") (mkAdjReg (root + "ut"))
(root + "ând") (mkStemPlReg r) ;
--subGroup 2
mkV69 : Str -> Verbe = \scadea ->
let root = Predef.tk 2 scadea ;
r = genMut root "ã" "a";
rad = init (mkStemPlReg root)
in
verbAffixes scadea (changeP2 (mkStemPlReg r) (mkFromAffixes2 r root affixSgGr21 affixPlGr21) )
(mkFromAffix root affixSgII affixPlII) (mkFromAffix rad affixSgPS3 affixPlPS3)
(mkFromAffix rad affixSgPP2 affixPlPP2) (r +"ã") (mkAdjReg (rad + "ut"))
(rad + "ând") (r + "e") ;
mkV70 : Str -> Verbe = \prevedea ->
let root = Predef.tk 2 prevedea ;
r = genMut root "e" "ã" ;
newC = genMut root "e" "a" ;
rad = init (mkStemPlReg r)
in
verbAffixes prevedea (mkTab root r (mkStemPlReg root) (root + "e") r affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix rad affixSgPS3 affixPlPS3)
(mkFromAffix rad affixSgPP2 affixPlPP2) (newC +"ã") (mkAdjReg (rad + "ut"))
(rad + "ând") (root + "e") ;
mkV71 : Str -> Verbe = \placea ->
let root = Predef.tk 2 placea ;
r = genMut root "ã" "a"
in
verbAffixes placea (mkFromAffixes2 r root affixSgGr21 affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS3 affixPlPS3)
(mkFromAffix r affixSgPP2 affixPlPP2) (r +"ã") (mkAdjReg (root + "ut"))
(root + "ând") (r + "e") ;
mkV72 : Str -> Verbe = \durea ->
mkV68 durea ;
--subGroup 3
mkV73 : Str -> Verbe = \bea ->
let root = Predef.tk 2 bea ;
r = root + "ã"
in
verbAffixes bea (mkFromAffix root affixSgGr23 affixPlGr23)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS3 affixPlPS3)
(mkFromAffix r affixSgPP2 affixPlPP2) (root +"ea") (mkAdjReg (r + "ut"))
(root + "ând") (root + "ea") ;
--subGroup 4
mkV74 : Str -> Verbe = \vrea ->
let root = Predef.tk 2 vrea ;
r = root + "o"
in
verbAffixes vrea (mkTab root (root+"eau") (root+"ei")(root +"ea") (init root + "or") affixPlGr24)
(mkFromAffix r affixSgII affixPlII) (mkFromAffix root affixSgPS3 affixPlPS3)
(mkFromAffix root affixSgPP4 affixPlPP4) (root +"ea") (mkAdjReg (r + "ut"))
(root + "ând") (root + "ei") ;
----------------------------------------------------------------------
-------Group 3 -- verbs ending in -e
-------------------------------------------------------------------------
-----------------------
--Present
-----------------------
--subGroups 1-6
--affixSgGr21 + affixPlGr21
--subGroup 7-8
affixSgGr31 : Affixe = afixe "u" "i" "e" ;
affixPlGr31 : Affixe = afixe "em" "eþi" "u" ;
----------------
--Imperfect
----------------
--subGroups 1-6 affixSgII affixPlII
--subGroups 7-8 affixSgI affixPlI
----------------
--Past Simple
----------------
--subGroups 1-4,8
affixSgPS5 : Affixe = afixe "sei" "seºi" "se" ;
affixPlPS5 : Affixe = afixe "serãm" "serãþi" "serã" ;
--subGroups 5-7 affixSgPS3 + affixPlPS3
---------------
--P Perfect
---------------
--subGroups 1-4,8
affixSgPP5 : Affixe = afixe "sesem" "seseºi" "sese" ;
affixPlPP5 : Affixe = afixe "seserãm" "seserãþi" "seserã" ;
--subGroups 5-7
--affixSgPP2 and affixPlPP2
--subGroup 1
mkV76 : Str -> Verbe = \pune ->
let root = init pune ;
r = init root
in
verbAffixes pune (changeP2 (r+"i") (mkFromAffix root affixSgGr21 affixPlGr21) )
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (r + "s"))
(root + "ând") (root + "e") ;
mkV77 : Str -> Verbe = \atinge ->
let root = init atinge ;
r = init root
in
verbAffixes atinge (mkFromAffix root affixSgGr21 affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (r + "s"))
(root + "ând") (root + "e") ;
mkV78 : Str -> Verbe = \trage ->
let root = init trage ;
rad1 = genMut root "a" "ã" ;
r = init root ;
rad2 = genMut r "a" "ã"
in
verbAffixes trage (mkFromAffix root affixSgGr21 affixPlGr21)
(mkFromAffix rad1 affixSgII affixPlII)
(mkTab rad2 (r + "ei") (r + "seºi") (rad2 + "e") (rad2 + "erã") affixPlPS5)
(mkFromAffix rad2 affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (r + "s"))
(rad1 + "ând") (root + "e") ;
mkV79 : Str -> Verbe = \decide ->
let root = init decide ;
r = init root
in
verbAffixes decide (changeP2 (mkStemPlReg root) (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (r + "s"))
(r + "zând") (root + "e") ;
mkV80 : Str -> Verbe = \rade ->
let root = init rade ;
rad1 = genMut root "a" "ã" ;
r = init root ;
rad2 = genMut r "a" "ã"
in
verbAffixes rade (changeP2 (mkStemPlReg root) (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix rad1 affixSgII affixPlII)
(mkTab rad2 (r + "ei") (r + "seºi") (rad2 + "e") (rad2 + "erã") affixPlPS5)
(mkFromAffix rad2 affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (r + "s"))
(rad2 + "zând") (root + "e") ;
mkV81 : Str -> Verbe = \ucide ->
let root = init ucide ;
r = init root
in
verbAffixes ucide (changeP2 (mkStemPlReg root) (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (r + "s"))
(r + "gând") (root + "e") ;
mkV82 : Str -> Verbe = \admite ->
let root = init admite ;
r = init root
in
verbAffixes admite (changeP2 (mkStemPlReg root) (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (r + "s"))
(r + "þând") (root + "e") ;
mkV83 : Str -> Verbe = \alege ->
let root = init alege ;
r = init root ;
newP = mkMutE root
in
verbAffixes alege (mkFromAffix root affixSgGr21 affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (newP +"ã") (mkAdjRegE (r + "s"))
(root + "ând") (root + "e") ;
mkV84 : Str -> Verbe = \sumete ->
let root = init sumete ;
r = init root ;
newP = mkMutE root
in
verbAffixes sumete (changeP2 (mkStemPlReg root) (mkAffixSpec2 root newP affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (newP +"ã") (mkAdjRegE (r + "s"))
(r + "þând") (root + "e") ;
mkV85 : Str -> Verbe = \scoate ->
let root = init scoate ;
r = mkStemMutOa root ;
rad = init r ;
rad1 = init root
in
verbAffixes scoate (mkTab root r (mkStemPlReg r) scoate r affixPlGr21)
(mkFromAffix r affixSgII affixPlII)
(mkTab rad1 (rad + "sei") (rad + "seºi") (rad1 + "se") (rad1 + "erã") affixPlPS5)
(mkFromAffix rad affixSgPP5 affixPlPP5) (root +"ã") (mkAdjRegO (rad + "s"))
(rad + "þând") (root + "e") ;
mkV86 : Str -> Verbe = \roade ->
let root = init roade ;
r = mkStemMutOa root ;
rad = init r ;
rad1 = init root
in
verbAffixes roade (mkTab root r (mkStemPlReg r) roade r affixPlGr21)
(mkFromAffix r affixSgII affixPlII)
(mkTab rad1 (rad + "sei") (rad + "seºi") (rad1 + "se") (rad1 + "erã") affixPlPS5)
(mkFromAffix rad affixSgPP5 affixPlPP5) (root +"ã") (mkAdjRegO (rad + "s"))
(rad + "zând") (root + "e") ;
mkV87 : Str -> Verbe = \purcede ->
let root = init purcede ;
r = init root ;
newP = mkMutE root
in
verbAffixes purcede (changeP2 (mkStemPlReg root) (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (newP +"ã") (mkAdjRegE (r + "s"))
(r + "zând") (root + "e") ;
mkV88 : Str -> Verbe = \toarce ->
let root = init toarce ;
r = mkStemMutOa root ;
rad = init r ;
rad1 = init root
in
verbAffixes toarce (mkTab root r (mkStemPlReg r) toarce r affixPlGr21)
(mkFromAffix r affixSgII affixPlII)
(mkTab rad1 (rad + "sei") (rad + "seºi") (rad1 + "se") (rad1 + "erã") affixPlPS5)
(mkFromAffix rad affixSgPP5 affixPlPP5) (root +"ã") (mkAdjRegO (rad + "s"))
(rad + "când") (root + "e") ;
--subGroup 2
mkV89 : Str -> Verbe = \curge ->
let root = init curge ;
r = init root
in
verbAffixes curge (mkFromAffix root affixSgGr21 affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (r + "s"))
(root + "ând") (root + "i") ;
mkV90 : Str -> Verbe = \merge ->
let root = init merge ;
r = init root ;
newP = mkMutE root
in
verbAffixes merge (mkFromAffix root affixSgGr21 affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (newP +"ã") (mkAdjRegE (r + "s"))
(root + "ând") (root + "i") ;
mkV91 : Str -> Verbe = \ride ->
let root = init ride ;
r = init root
in
verbAffixes ride (changeP2 (mkStemPlReg root) (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (r + "s"))
(r + "zând") (mkStemPlReg root) ;
mkV92 : Str -> Verbe = \ramane ->
let root = init ramane ;
r = init root ;
r1 = genMut root "â" "ã" ;
r2 = genMut root "â" "a"
in
verbAffixes ramane (changeP2 (r + "i") (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII)
(mkTab (init r2) (init r1 + "sei") (init r1 + "seºi") (init r2 + "se") (init r2 + "serã") affixPlPS5)
(mkFromAffix (init r1) affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (init r2 + "s"))
(root + "ând") (r + "i") ;
--subGroup 3 :
mkV93 : Str -> Verbe = \zice ->
let root = init zice ;
r = init root
in
verbAffixes zice (mkFromAffix root affixSgGr21 affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (r + "s"))
(root + "ând") r ;
--subGroup 4 :
mkV94 : Str -> Verbe = \rupe ->
let root = init rupe
in
verbAffixes rupe (mkFromAffix root affixSgGr21 affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS5 affixPlPS5)
(mkFromAffix root affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (root + "t"))
(root + "ând") rupe ;
mkV95 : Str -> Verbe = \frige ->
let root = init frige ;
r = init root + "p"
in
verbAffixes frige (mkFromAffix root affixSgGr21 affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (r + "t"))
(root + "ând") frige ;
mkV96 : Str -> Verbe = \frange ->
let root = init frange ;
r = init root
in
verbAffixes frange (mkFromAffix root affixSgGr21 affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (r + "t"))
(root + "ând") frange ;
mkV97 : Str -> Verbe = \sparge ->
let root = init sparge ;
r = init root ;
r1 = genMut root "a" "ã";
r2 = genMut r "a" "ã"
in
verbAffixes sparge (mkFromAffix root affixSgGr21 affixPlGr21)
(mkFromAffix r1 affixSgII affixPlII)
(mkTab r2 (init r1 + "sei") (init r1 + "seºi") (r2 + "se") (r2 + "serã") affixPlPS5)
(mkFromAffix r2 affixSgPP5 affixPlPP5) (root +"ã") (mkAdjReg (r + "t"))
(r1 + "ând") sparge ;
mkV98 : Str -> Verbe = \fierbe ->
let root = init fierbe ;
r = init root ;
r1 = genMut root "e" "a"
in
verbAffixes fierbe (mkFromAffix root affixSgGr21 affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS5 affixPlPS5)
(mkFromAffix r affixSgPP5 affixPlPP5) (r1 +"ã") (mkAdjRegE (r + "t"))
(root + "ând") fierbe ;
mkV99 : Str -> Verbe = \coace ->
let root = init coace ;
r = genMut2 root "oa" "o" ;
r1 = init r + "p"
in
verbAffixes coace (mkTab root r1 (r1+"i") (root+"e") r1 affixPlGr21)
(mkFromAffix r affixSgII affixPlII) (mkFromAffix r1 affixSgPS5 affixPlPS5)
(mkFromAffix r1 affixSgPP5 affixPlPP5) (root +"ã") (mkAdjRegO (r1 + "t"))
(r + "ând") coace ;
--subGroup 5 :
mkV100 : Str -> Verbe = \cere ->
let root = init cere ;
r = mkMutE root
in
verbAffixes cere (mkFromAffix root affixSgGr21 affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS3 affixPlPS3)
(mkFromAffix r affixSgPP2 affixPlPP2) (r +"ã") (mkAdjReg (root + "ut"))
(root + "ând") cere ;
mkV101 : Str -> Verbe = \crede ->
let root = init crede ;
newP = init (mkStemPlReg root) ;
r = mkMutE root
in
verbAffixes crede (changeP2 (newP + "i") (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII) (mkFromAffix newP affixSgPS3 affixPlPS3)
(mkFromAffix newP affixSgPP2 affixPlPP2) (r +"ã") (mkAdjReg (newP + "ut"))
(newP + "ând") crede ;
mkV102 : Str -> Verbe = \tese ->
let root = init tese ;
newP = init (mkStemPlReg root) ;
r = mkMutE root
in
verbAffixes tese (changeP2 (newP + "i") (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS3 affixPlPS3)
(mkFromAffix root affixSgPP2 affixPlPP2) (r +"ã") (mkAdjReg (root + "ut"))
(root + "ând") tese ;
mkV103 : Str -> Verbe = \creste ->
let root = init creste ;
r = Predef.tk 2 root + "sc" ;
newC = mkMutE r
in
verbAffixes creste (changeP1 r (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS3 affixPlPS3)
(mkFromAffix r affixSgPP2 affixPlPP2) (newC +"ã") (mkAdjReg (r + "ut"))
(r + "ând") creste ;
mkV104 : Str -> Verbe = \investe ->
let root = init investe ;
r = Predef.tk 2 root + "sc" ;
newC = mkMutE r ;
rad = genMut r "e" "ã"
in
verbAffixes investe (changeP1 r (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII) (mkFromAffix rad affixSgPS3 affixPlPS3)
(mkFromAffix rad affixSgPP2 affixPlPP2) (newC +"ã") (mkAdjReg (rad + "ut"))
(rad + "ând") investe ;
mkV105 : Str -> Verbe = \bate ->
let root = init bate ;
r = genMut root "a" "ã"
in
verbAffixes bate (changeP2 (mkStemPlReg root) (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix r affixSgII affixPlII) (mkFromAffix r affixSgPS3 affixPlPS3)
(mkFromAffix r affixSgPP2 affixPlPP2) (root +"ã") (mkAdjReg (r + "ut"))
(r + "ând") bate ;
mkV106 : Str -> Verbe = \naste ->
let root = init naste ;
r = Predef.tk 2 root + "sc" ;
rad = genMut r "a" "ã"
in
verbAffixes naste (changeP1 r (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII) (mkFromAffix rad affixSgPS3 affixPlPS3)
(mkFromAffix rad affixSgPP2 affixPlPP2) (r +"ã") (mkAdjReg (rad + "ut"))
(rad + "ând") naste ;
--mkV107 : Str -> Verbe = \rage ->
mkV108 : Str -> Verbe = \tine ->
let root = init tine ;
r = init root + "i"
in
verbAffixes tine (changeP2 r (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS3 affixPlPS3)
(mkFromAffix root affixSgPP2 affixPlPP2) (root +"ã") (mkAdjReg (root + "ut"))
(root + "ând") tine ;
mkV109 : Str -> Verbe = \cunoaste ->
let root = init cunoaste ;
newC = Predef.tk 2 root + "sc" ;
r = mkStemMutOa newC ;
rad = mkStemMutOa root
in
verbAffixes cunoaste (mkTab root r (mkStemPlReg r) cunoaste r affixPlGr21)
(mkFromAffix rad affixSgII affixPlII) (mkFromAffix r affixSgPS3 affixPlPS3)
(mkFromAffix r affixSgPP2 affixPlPP2) (newC +"ã") (mkAdjReg (r + "ut"))
(r + "ând") cunoaste ;
mkV110 : Str -> Verbe = \coase ->
let root = init coase ;
r = mkStemMutOa root ;
rad = genMut2 root "oa" "u"
in
verbAffixes coase (mkTab root r (mkStemPlReg r) coase r affixPlGr21)
(mkFromAffix r affixSgII affixPlII) (mkFromAffix rad affixSgPS3 affixPlPS3)
(mkFromAffix rad affixSgPP2 affixPlPP2) (root +"ã") (mkAdjReg (rad + "ut"))
(r + "ând") coase ;
mkV111 : Str -> Verbe = \divide ->
let root = init divide ;
newP = mkStemPlReg root
in
verbAffixes divide (changeP2 newP (mkFromAffix root affixSgGr21 affixPlGr21))
empty empty empty (root +"ã") (variants{})
(root + "ând") divide ;
mkV112 : Str -> Verbe = \vinde ->
let root = init vinde ;
r = genMut root "i" "â" ;
in
verbAffixes vinde (mkTab root r (mkStemPlReg root) vinde r affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix r affixSgPS3 affixPlPS3)
(mkFromAffix r affixSgPP2 affixPlPP2) (root +"ã") (mkAdjReg (r + "ut"))
(init r + "zând") vinde ;
mkV113 : Str -> Verbe = \pierde ->
let root = init pierde ;
r = mkMutE root ;
rad = init (mkStemPlReg root)
in
verbAffixes pierde (changeP2 (rad + "i") (mkFromAffix root affixSgGr21 affixPlGr21))
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS3 affixPlPS3)
(mkFromAffix root affixSgPP2 affixPlPP2) (r +"ã") (mkAdjReg (root + "ut"))
(rad + "ând") pierde ;
--mkV114 : Str -> Verbe = \exige ->
--subGroup 6
mkV115 : Str -> Verbe = \face ->
let root = init face ;
r = genMut root "a" "ã"
in
verbAffixes face (mkFromAffix root affixSgGr21 affixPlGr21)
(mkFromAffix r affixSgII affixPlII) (mkFromAffix r affixSgPS3 affixPlPS3)
(mkFromAffix r affixSgPP2 affixPlPP2) (root +"ã") (mkAdjReg (r + "ut"))
(r + "ând") (init r) ;
--subGroup 7
mkV116 : Str -> Verbe = \umple ->
let root = init umple
in
verbAffixes umple (mkFromAffix root affixSgGr31 affixPlGr31)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS3 affixPlPS3)
(mkFromAffix root affixSgPP2 affixPlPP2) (root +"e") (mkAdjReg (root + "ut"))
(root + "ând") umple ;
--subGroup 8
mkV117 : Str -> Verbe = \scrie ->
let root = init scrie
in
verbAffixes scrie (mkFromAffix root affixSgGr31 affixPlGr31)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS5 affixPlPS5)
(mkFromAffix root affixSgPP5 affixPlPP5) (root +"e") (mkAdjReg (root + "s"))
(root + "ind") scrie ;
------------------------------------
---GROUP 4 -- verbs ending in -i/-î
------------------------------------
--------------
--Present
--------------
--subGroups 1-2
affixSgGr41 : Affixe = afixe "esc" "eºti" "eºte" ;
affixPlGr41 : Affixe = afixe "im" "iþi" "esc" ;
--subGroup 3
affixSgGr43 : Affixe = afixe "iesc" "ieºti" "ieºte" ;
affixPlGr43 : Affixe = afixe "im" "iþi" "iesc" ;
--subGroup 4
affixSgGr44 : Affixe = afixe "iu" "ii" "ie" ;
affixPlGr44 : Affixe = afixe "im" "iþi" "iu" ;
--subGroup 5
affixSgGr45 : Affixe = afixe "i" "i" "ie" ;
affixPlGr45 : Affixe = afixe "im" "iþi" "ie" ;
--subGroups 6 -8
affixSgGr468 : Affixe = afixe "" "i" "e" ;
affixPlGr468 : Affixe = afixe "im" "iþi" "" ;
--subGroup 9
affixSgGr49 : Affixe = afixe "" "i" "ã" ;
affixPlGr49 : Affixe = afixe "im" "iþi" "ã" ;
--subGroup 10
affixSgGr410 : Affixe = afixe "" "i" "e" ;
affixPlGr410 : Affixe = afixe "im" "iþi" "e" ;
--subGroup 11
affixSgGr411 : Affixe = afixe "" "" "ie" ;
affixPlGr411 : Affixe = afixe "" "" "ie" ;
--subGroup 12
affixSgGr412 : Affixe = afixe "ãsc" "ãºti" "ãºte" ;
affixPlGr412 : Affixe = afixe "âm" "âþi" "ãsc" ;
--subGroup 13
affixSgGr413 : Affixe = afixe "" "i" "ã" ;
affixPlGr413 : Affixe = afixe "âm" "âþi" "ã" ;
-------------------------
--Imperfect
-------------------------
--subGroup 1,6-10
--affixSgII + affixPlII
--subGroup 2, 12-13
--affixSgI + affixPlI
--subGroups 3-5
--affixSgI2 + affixPlI2
--subGroup 11
affixSgI4 : Affixe = afixe "" "" "ia" ;
affixPlI4 : Affixe = afixe "" "" "iau" ;
------------------------
--Past Simple
------------------------
--subGroups 1-3,5-10
affixSgPS6 : Affixe = afixe "ii" "iºi" "i" ;
affixPlPS6 : Affixe = afixe "irãm" "irãþi" "irã" ;
--subGroup 4
affixSgPS7 : Affixe = afixe "iui" "iuºi" "iu" ;
affixPlPS7 : Affixe = afixe "iurãm" "iurãþi" "iurã" ;
--subGroup 11
affixSgPS8 : Affixe = afixe "" "" "i" ;
affixPlPS8 : Affixe = afixe "" "" "irã" ;
--subGroup 12-13
affixSgPS9 : Affixe = afixe "âi" "âºi" "î" ;
affixPlPS9 : Affixe = afixe "ârãm" "ârãþi" "ârã" ;
-----------------------
--Past Perfect
-----------------------
--subGroups 1-3,5 + 10
affixSgPP6 : Affixe = afixe "isem" "iseºi" "ise" ;
affixPlPP6 : Affixe = afixe "iserãm" "iserãþi" "iserã" ;
--subGroup 4
affixSgPP7 : Affixe = afixe "iusem" "iuseºi" "iuse" ;
affixPlPP7 : Affixe = afixe "iuserãm" "iuserãþi" "iuserã" ;
--subGroup 11
affixSgPP8 : Affixe = afixe "" "" "ise" ;
affixPlPP8 : Affixe = afixe "" "" "iserã" ;
--subGroup 12-13
affixSgPP9 : Affixe = afixe "âsem" "âseºi" "âse" ;
affixPlPP9 : Affixe = afixe "âserãm" "âserãþi" "âserã" ;
--subGroup 1
mkV119 : Str -> Verbe = \povesti ->
let root = init povesti
in
verbAffixes povesti (mkFromAffix root affixSgGr41 affixPlGr41)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (root +"eascã") (mkAdjReg (root + "it"))
(root + "ind") (root + "eºte") ;
--subGroup 2
mkV120 : Str -> Verbe = \pustii ->
let root = init pustii
in
verbAffixes pustii (mkFromAffix root affixSgGr41 affixPlGr41)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (root +"ascã") (mkAdjReg (root + "it"))
(root + "ind") (root + "eºte") ;
--subGroup 3
mkV121 : Str -> Verbe = \locui ->
let root = init locui
in
verbAffixes locui (mkFromAffix root affixSgGr43 affixPlGr44)
(mkFromAffix root affixSgI2 affixPlI2) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (root +"iascã") (mkAdjReg (root + "it"))
(root + "ind") (root + "eºte") ;
--subGroup 4
mkV122 : Str -> Verbe = \sti ->
let root = init sti
in
verbAffixes sti (mkFromAffix root affixSgGr44 affixPlGr44)
(mkFromAffix root affixSgI2 affixPlI2) (mkFromAffix root affixSgPS7 affixPlPS7)
(mkFromAffix root affixSgPP7 affixPlPP7) (root +"ie") (mkAdjReg (root + "iut"))
(root + "iind") (variants{}) ;
--subGroup 5
mkV123 : Str -> Verbe = \sui ->
let root = init sui
in
verbAffixes sui (mkFromAffix root affixSgGr45 affixPlGr45)
(mkFromAffix root affixSgI2 affixPlI2) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (root +"ie") (mkAdjReg (root + "it"))
(root + "ind") (sui+"e") ;
mkV124 : Str -> Verbe = \indoi ->
let root = init indoi ;
r = init (mkMutO indoi)
in
verbAffixes indoi (mkAffixSpec1 root r affixSgGr45 affixPlGr45)
(mkFromAffix root affixSgI2 affixPlI2) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (r +"ie") (mkAdjReg (root + "it"))
(root + "ind") (r+"ie") ;
mkV125 : Str -> Verbe = \jupui ->
let root = init jupui ;
r1 = genMut jupui "u" "o" ;
r2 = genMut jupui "u" "oa"
in
verbAffixes jupui (mkTab root r1 r1 (r2+"e") (r2+"e") affixPlGr45)
(mkFromAffix root affixSgI2 affixPlI2) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (r2 +"e") (mkAdjReg (root + "it"))
(root + "ind") (r2+"e") ;
--subGroup 6
mkV126 : Str -> Verbe = \fugi ->
let root = init fugi
in
verbAffixes fugi (mkFromAffix root affixSgGr468 affixPlGr468)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (root +"ã") (mkAdjReg (root + "it"))
(root + "ind") fugi ;
mkV127 : Str -> Verbe = \auzi ->
let root = init auzi ;
r = init root + "d"
in
verbAffixes auzi (mkTab root r auzi (r+"e") r affixPlGr468)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (r +"ã") (mkAdjReg (root + "it"))
(root + "ind") auzi ;
mkV128 : Str -> Verbe = \dormi ->
let root = init dormi ;
r = mkMutO root
in
verbAffixes dormi (mkAffixSpec2 root r affixSgGr468 affixPlGr468)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (r +"ã") (mkAdjReg (root + "it"))
(root + "ind") dormi ;
mkV129 : Str -> Verbe = \muri ->
let root = init muri ;
r1 = modU root ;
r2 = mkStemMutO r1
in
verbAffixes muri (mkTab root r1 (r1 + "i") (r2 + "e") r1 affixPlGr468)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (r2 +"ã") (mkAdjReg (root + "it"))
(root + "ind") (r1 + "i") ;
--subGroup 7
mkV130 : Str -> Verbe = \simti ->
let root = init simti ;
r = init root + "t"
in
verbAffixes simti (mkTab root r (mkStemPlReg r) (r+"e") r affixPlGr468)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (r +"ã") (mkAdjReg (root + "it"))
(root + "ind") (r+"e") ;
mkV131 : Str -> Verbe = \sorbi ->
let root = init sorbi ;
r = mkMutO root
in
verbAffixes sorbi (mkAffixSpec2 root r affixSgGr468 affixPlGr468)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (r +"ã") (mkAdjReg (root + "it"))
(root + "ind") (r + "e") ;
mkV132 : Str -> Verbe = \slobozi ->
let root = init slobozi ;
rad = init root + "d" ;
r = mkMutO rad
in
verbAffixes slobozi (mkTab root rad root (r+"e") rad affixPlGr468)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (r +"ã") (mkAdjReg (root + "it"))
(root + "ind") (r+"e") ;
mkV133 : Str -> Verbe = \mirosi ->
let root = init mirosi ;
r = mkMutO root
in
verbAffixes mirosi (mkAffixSpec2 root r affixSgGr468 affixPlGr468)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (r +"ã") (mkAdjReg (root + "it"))
(root + "ind") (r+"e") ;
mkV134 : Str -> Verbe = \imparti ->
let root = init imparti ;
rad = init root + "t" ;
r = genMut rad "ã" "a"
in
verbAffixes imparti (mkFromAffixes1 r root affixSgGr468 affixPlGr468)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (r +"ã") (mkAdjReg (root + "it"))
(root + "ind") (r+"e") ;
mkV118 : Str -> Verbe = \sari ->
let root = init sari ;
r = genMut root "ã" "a"
in
verbAffixes sari (mkFromAffixes2 r root affixSgGr468 affixPlGr468)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (r +"ã") (mkAdjReg (root + "it"))
(root + "ind") (r+"i") ;
mkV135 : Str -> Verbe = \repezi ->
let root = init repezi ;
rad = init root + "d" ;
r = mkMutE rad
in
verbAffixes repezi (mkTab root rad repezi (rad + "e") r affixPlGr468)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (r +"ã") (mkAdjReg (root + "it"))
(root + "ind") (rad + "e") ;
--subGroup 8
mkV136 : Str -> Verbe = \veni ->
let root = init veni ;
rad = init root ;
r = genMut root "e" "i"
in
verbAffixes veni (mkTab root r (init r + "i") (r + "e") r affixPlGr468)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (r +"ã") (mkAdjReg (root + "it"))
(root + "ind") (r + "o") ;
--subGroup 9
mkV137 : Str -> Verbe = \oferi ->
let root = init oferi
in
verbAffixes oferi (mkFromAffix root affixSgGr49 affixPlGr49)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (root +"e") (mkAdjReg (root + "it"))
(root + "ind") (root + "ã") ;
mkV138 : Str -> Verbe = \acoperi ->
let root = init acoperi;
r = genMut root "e" "ã"
in
verbAffixes acoperi (mkTab root r acoperi (root + "ã") (root + "ã") affixPlGr49)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (root +"e") (mkAdjReg (root + "it"))
(root + "ind") (root + "ã") ;
--subGroup 10
mkV139 : Str -> Verbe = \bombani ->
let root = init bombani
in
verbAffixes bombani (mkFromAffix root affixSgGr410 affixPlGr410)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS6 affixPlPS6)
(mkFromAffix root affixSgPP6 affixPlPP6) (root +"e") (mkAdjReg (root + "it"))
(root + "ind") (root + "e") ;
--subGroup 11 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
mkV140 : Str -> Verbe = \trebui ->
let root = init trebui
in
verbAffixes trebui (mkFromAffix root affixSgGr411 affixPlGr411)
(mkFromAffix root affixSgI4 affixPlI4) (mkFromAffix root affixSgPS8 affixPlPS8)
(mkFromAffix root affixSgPP8 affixPlPP8) (root +"iascã") (mkAdjReg (root + "it"))
(root + "ind") nonExist ;
--subGroup 12
mkV141 : Str -> Verbe = \uri ->
let root = init uri
in
verbAffixes uri (mkFromAffix root affixSgGr412 affixPlGr412)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS9 affixPlPS9)
(mkFromAffix root affixSgPP9 affixPlPP9) (root +"ascã") (mkAdjReg (root + "ât"))
(root + "ând") (root + "ãºte") ;
--subGroup 13
mkV142 : Str -> Verbe = \vari ->
let root = init vari
in
verbAffixes vari (mkFromAffix root affixSgGr413 affixPlGr413)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS9 affixPlPS9)
(mkFromAffix root affixSgPP9 affixPlPP9) (root +"e") (mkAdjReg (root + "ât"))
(root + "ând") (root + "ã") ;
mkV143 : Str -> Verbe = \cobori ->
let root = init cobori ;
r = mkMutO root
in
verbAffixes cobori (mkAffixSpec1 root r affixSgGr413 affixPlGr413)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS9 affixPlPS9)
(mkFromAffix root affixSgPP9 affixPlPP9) (r +"e") (mkAdjReg (root + "ât"))
(root + "ând") (r + "ã") ;
mkV144 : Str -> Verbe = \tabari ->
let root = init tabari ;
rad = modAFirst root ;
r = mkStemPlReg rad
in
verbAffixes tabari (mkTab root rad r (rad + "ã") (rad + "ã") affixPlGr413)
(mkFromAffix root affixSgI affixPlI) (mkFromAffix root affixSgPS9 affixPlPS9)
(mkFromAffix root affixSgPP9 affixPlPP9) (init r +"e") (mkAdjReg (root + "ât"))
(root + "ând") (rad + "ã") ;
---------------------------------------
--Special verbs :
--to have :
mkV1 : Str -> Verbe = \avea ->
let root = Predef.tk 2 avea
in
verbAffixes avea (mkTab root "am" "ai" "are" "au" affixPlGr21)
(mkFromAffix root affixSgII affixPlII) (mkFromAffix root affixSgPS3 affixPlPS3)
(mkFromAffix root affixSgPP2 affixPlPP2) "aibã" (mkAdjReg (root + "ut"))
(root + "ând") "ai" ;
--to be :
{-
mkV2 : Str -> Verbe = \fi ->
let root = init fi ;
pres : Number => Person => Str = table {Sg => table {P1 => "sunt"; P2 => "eºti"; P3 => "este"};
Pl => table {P1 => "suntem"; P2 => "sunteþi"; P3 => "sunt"}
};
ps : Number => Person => Str = table {Sg => table {P1 => "fusei"; P2 => "fuseºi"; P3 => "fuse"};
Pl => table {P1 => "fuserãm"; P2 => "fuserãþi"; P3 => "fuserã"}
};
pp : Number => Person => Str = table {Sg => table {P1 => "fusesem"; P2 => "fuseseºi"; P3 => "fusese"};
Pl => table {P1 => "fuseserãm"; P2 => "fuseserãþi"; P3 => "fuseserã"}
}
in
verbAffixes fi pres (mkFromAffix "er" affixSgI affixPlI) ps pp
-}
} ;
|