@fpw/en-wiktionary-la-modules 0.2.1 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +75 -75
- package/README.md +19 -15
- package/dist/LaEngine.d.ts +23 -23
- package/dist/LaEngine.js +64 -66
- package/dist/index.d.ts +12 -11
- package/dist/index.js +12 -28
- package/dist/modules/common.d.ts +67 -66
- package/dist/modules/common.js +145 -157
- package/dist/modules/conjugation/LaVerb.d.ts +118 -109
- package/dist/modules/conjugation/LaVerb.js +2861 -2295
- package/dist/modules/conjugation/VerbAffix.d.ts +18 -18
- package/dist/modules/conjugation/VerbAffix.js +19 -23
- package/dist/modules/conjugation/VerbForm.d.ts +204 -182
- package/dist/modules/conjugation/VerbForm.js +215 -199
- package/dist/modules/conjugation/VerbType.d.ts +54 -40
- package/dist/modules/conjugation/VerbType.js +66 -58
- package/dist/modules/declination/LaAdjData.d.ts +16 -16
- package/dist/modules/declination/LaAdjData.js +1474 -908
- package/dist/modules/declination/LaNominal.d.ts +136 -130
- package/dist/modules/declination/LaNominal.js +1884 -1804
- package/dist/modules/declination/LaNounData.d.ts +16 -2
- package/dist/modules/declination/LaNounData.js +935 -855
- package/dist/modules/declination/LaPersonalPronoun.d.ts +12 -12
- package/dist/modules/declination/LaPersonalPronoun.js +80 -85
- package/dist/modules/declination/NominalForm.d.ts +85 -69
- package/dist/modules/declination/NominalForm.js +101 -91
- package/dist/modules/declination/NominalType.d.ts +191 -120
- package/dist/modules/declination/NominalType.js +211 -146
- package/dist/modules/headword/HeadWord.d.ts +107 -107
- package/dist/modules/headword/HeadWord.js +28 -32
- package/dist/modules/headword/HeadwordParser.d.ts +29 -29
- package/dist/modules/headword/HeadwordParser.js +456 -452
- package/package.json +23 -15
- package/dist/LaEngine.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/modules/common.js.map +0 -1
- package/dist/modules/conjugation/LaVerb.js.map +0 -1
- package/dist/modules/conjugation/VerbAffix.js.map +0 -1
- package/dist/modules/conjugation/VerbForm.js.map +0 -1
- package/dist/modules/conjugation/VerbType.js.map +0 -1
- package/dist/modules/declination/LaAdjData.js.map +0 -1
- package/dist/modules/declination/LaNominal.js.map +0 -1
- package/dist/modules/declination/LaNounData.js.map +0 -1
- package/dist/modules/declination/LaPersonalPronoun.js.map +0 -1
- package/dist/modules/declination/NominalForm.js.map +0 -1
- package/dist/modules/declination/NominalType.js.map +0 -1
- package/dist/modules/headword/HeadWord.js.map +0 -1
- package/dist/modules/headword/HeadwordParser.js.map +0 -1
- package/src/LaEngine.ts +0 -86
- package/src/index.ts +0 -16
- package/src/modules/common.ts +0 -164
- package/src/modules/conjugation/LaVerb.ts +0 -2669
- package/src/modules/conjugation/VerbAffix.ts +0 -18
- package/src/modules/conjugation/VerbForm.ts +0 -223
- package/src/modules/conjugation/VerbType.ts +0 -55
- package/src/modules/declination/LaAdjData.ts +0 -1036
- package/src/modules/declination/LaNominal.ts +0 -2025
- package/src/modules/declination/LaNounData.ts +0 -897
- package/src/modules/declination/LaPersonalPronoun.ts +0 -92
- package/src/modules/declination/NominalForm.ts +0 -89
- package/src/modules/declination/NominalType.ts +0 -157
- package/src/modules/headword/HeadWord.ts +0 -132
- package/src/modules/headword/HeadwordParser.ts +0 -515
|
@@ -1,146 +1,211 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
NominalType["
|
|
8
|
-
NominalType["
|
|
9
|
-
NominalType["
|
|
10
|
-
NominalType["
|
|
11
|
-
NominalType["
|
|
12
|
-
NominalType["
|
|
13
|
-
NominalType["
|
|
14
|
-
NominalType["
|
|
15
|
-
NominalType["
|
|
16
|
-
NominalType["
|
|
17
|
-
NominalType["
|
|
18
|
-
NominalType["
|
|
19
|
-
NominalType["
|
|
20
|
-
NominalType["
|
|
21
|
-
NominalType["
|
|
22
|
-
NominalType["NotFeminine"] = "not_F";
|
|
23
|
-
NominalType["
|
|
24
|
-
NominalType["
|
|
25
|
-
NominalType["
|
|
26
|
-
NominalType["
|
|
27
|
-
NominalType["
|
|
28
|
-
NominalType["
|
|
29
|
-
NominalType["
|
|
30
|
-
NominalType["
|
|
31
|
-
NominalType["
|
|
32
|
-
NominalType["
|
|
33
|
-
NominalType["
|
|
34
|
-
NominalType["
|
|
35
|
-
NominalType["
|
|
36
|
-
NominalType["
|
|
37
|
-
NominalType["
|
|
38
|
-
NominalType["
|
|
39
|
-
NominalType["
|
|
40
|
-
NominalType["
|
|
41
|
-
NominalType["
|
|
42
|
-
NominalType["
|
|
43
|
-
NominalType["
|
|
44
|
-
NominalType["
|
|
45
|
-
NominalType["
|
|
46
|
-
NominalType["
|
|
47
|
-
NominalType["
|
|
48
|
-
NominalType["
|
|
49
|
-
NominalType["
|
|
50
|
-
NominalType["
|
|
51
|
-
NominalType["
|
|
52
|
-
NominalType["
|
|
53
|
-
NominalType["
|
|
54
|
-
NominalType["
|
|
55
|
-
NominalType["
|
|
56
|
-
NominalType["
|
|
57
|
-
NominalType["
|
|
58
|
-
NominalType["
|
|
59
|
-
NominalType["
|
|
60
|
-
NominalType["
|
|
61
|
-
NominalType["
|
|
62
|
-
NominalType["
|
|
63
|
-
NominalType["
|
|
64
|
-
NominalType["
|
|
65
|
-
NominalType["
|
|
66
|
-
NominalType["
|
|
67
|
-
NominalType["
|
|
68
|
-
NominalType["
|
|
69
|
-
NominalType["
|
|
70
|
-
NominalType["
|
|
71
|
-
NominalType["
|
|
72
|
-
NominalType["
|
|
73
|
-
NominalType["
|
|
74
|
-
NominalType["
|
|
75
|
-
NominalType["
|
|
76
|
-
NominalType["
|
|
77
|
-
NominalType["
|
|
78
|
-
NominalType["
|
|
79
|
-
NominalType["
|
|
80
|
-
NominalType["
|
|
81
|
-
NominalType["
|
|
82
|
-
NominalType["
|
|
83
|
-
NominalType["
|
|
84
|
-
NominalType["
|
|
85
|
-
NominalType["
|
|
86
|
-
NominalType["
|
|
87
|
-
NominalType["
|
|
88
|
-
NominalType["
|
|
89
|
-
NominalType["
|
|
90
|
-
NominalType["
|
|
91
|
-
NominalType["
|
|
92
|
-
NominalType["
|
|
93
|
-
NominalType["
|
|
94
|
-
NominalType["
|
|
95
|
-
NominalType["
|
|
96
|
-
NominalType["
|
|
97
|
-
NominalType["
|
|
98
|
-
NominalType["
|
|
99
|
-
NominalType["
|
|
100
|
-
NominalType["
|
|
101
|
-
NominalType["
|
|
102
|
-
NominalType["
|
|
103
|
-
NominalType["
|
|
104
|
-
NominalType["
|
|
105
|
-
NominalType["
|
|
106
|
-
NominalType["
|
|
107
|
-
NominalType["
|
|
108
|
-
NominalType["
|
|
109
|
-
NominalType["
|
|
110
|
-
NominalType["
|
|
111
|
-
NominalType["
|
|
112
|
-
NominalType["
|
|
113
|
-
NominalType["
|
|
114
|
-
NominalType["
|
|
115
|
-
NominalType["
|
|
116
|
-
NominalType["
|
|
117
|
-
|
|
118
|
-
NominalType["
|
|
119
|
-
|
|
120
|
-
NominalType["
|
|
121
|
-
NominalType["
|
|
122
|
-
NominalType["
|
|
123
|
-
NominalType["
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
1
|
+
import { is_enum_value } from "../common.js";
|
|
2
|
+
export var NominalType;
|
|
3
|
+
(function (NominalType) {
|
|
4
|
+
NominalType["Singular"] = "sg";
|
|
5
|
+
NominalType["NoSingular"] = "-sg";
|
|
6
|
+
NominalType["Plural"] = "pl";
|
|
7
|
+
NominalType["NoPlural"] = "-pl";
|
|
8
|
+
NominalType["Both"] = "both";
|
|
9
|
+
NominalType["NotBoth"] = "not_both";
|
|
10
|
+
NominalType["NoNotBoth"] = "-not_both";
|
|
11
|
+
NominalType["Masculine"] = "M";
|
|
12
|
+
NominalType["masculine"] = "m";
|
|
13
|
+
NominalType["Feminine"] = "F";
|
|
14
|
+
NominalType["feminine"] = "f";
|
|
15
|
+
NominalType["Neuter"] = "N";
|
|
16
|
+
NominalType["neuter"] = "n";
|
|
17
|
+
NominalType["NoMasculine"] = "-M";
|
|
18
|
+
NominalType["NotMasculine"] = "not_M";
|
|
19
|
+
NominalType["NoNotMasculine"] = "-not_M";
|
|
20
|
+
NominalType["NotMe"] = "not_Me";
|
|
21
|
+
NominalType["NoNotMe"] = "-not_Me";
|
|
22
|
+
NominalType["NotFeminine"] = "not_F";
|
|
23
|
+
NominalType["NoNotFeminine"] = "-not_F";
|
|
24
|
+
NominalType["NoFeminine"] = "-F";
|
|
25
|
+
NominalType["NoNeuter"] = "-N";
|
|
26
|
+
NominalType["NotNeuter"] = "not_N";
|
|
27
|
+
NominalType["NoNotNeuter"] = "-not_N";
|
|
28
|
+
NominalType["NotNoNeuter"] = "not_-N";
|
|
29
|
+
NominalType["NoNotNoNeuter"] = "-not_-N";
|
|
30
|
+
NominalType["GenPluM"] = "genplum";
|
|
31
|
+
NominalType["NotGenPluM"] = "not_genplum";
|
|
32
|
+
NominalType["NoNotGenPluM"] = "-not_genplum";
|
|
33
|
+
NominalType["AccIm"] = "acc_im";
|
|
34
|
+
NominalType["NoAccIm"] = "-acc_im";
|
|
35
|
+
NominalType["NotAccIm"] = "not_acc_im";
|
|
36
|
+
NominalType["AccImEm"] = "acc_im_em";
|
|
37
|
+
NominalType["NoAccImEm"] = "-acc_im_em";
|
|
38
|
+
NominalType["NotAccImEm"] = "not_acc_im_em";
|
|
39
|
+
NominalType["AccEmIm"] = "acc_em_im";
|
|
40
|
+
NominalType["NoAccEmIm"] = "-acc_em_im";
|
|
41
|
+
NominalType["NotAccEmIm"] = "not_acc_em_im";
|
|
42
|
+
NominalType["AccEmEn"] = "acc_em_en";
|
|
43
|
+
NominalType["NoAccEmEn"] = "-acc_em_en";
|
|
44
|
+
NominalType["NotAccEmEn"] = "not_acc_em_en";
|
|
45
|
+
NominalType["AccImIn"] = "acc_im_in";
|
|
46
|
+
NominalType["NoAccImIn"] = "-acc_im_in";
|
|
47
|
+
NominalType["AccImInEm"] = "acc_im_in_em";
|
|
48
|
+
NominalType["NoAccImInEm"] = "-acc_im_in_em";
|
|
49
|
+
NominalType["NotAccImInEm"] = "not_acc_im_in_em";
|
|
50
|
+
NominalType["NotAccImIn"] = "not_acc_im_in";
|
|
51
|
+
NominalType["AccImOccEm"] = "acc_im_occ_em";
|
|
52
|
+
NominalType["NoAccImOccEm"] = "-acc_im_occ_em";
|
|
53
|
+
NominalType["NotAccImOccEm"] = "not_acc_im_occ_em";
|
|
54
|
+
NominalType["AblEI"] = "abl_e_i";
|
|
55
|
+
NominalType["NoAblEI"] = "-abl_e_i";
|
|
56
|
+
NominalType["NotAblEI"] = "not_abl_e_i";
|
|
57
|
+
NominalType["AblI"] = "abl_i";
|
|
58
|
+
NominalType["NoAblI"] = "-abl_i";
|
|
59
|
+
NominalType["NotAblI"] = "not_abl_i";
|
|
60
|
+
NominalType["AblIE"] = "abl_i_e";
|
|
61
|
+
NominalType["NoAblIE"] = "-abl_i_e";
|
|
62
|
+
NominalType["NotAblIE"] = "not_abl_i_e";
|
|
63
|
+
NominalType["AblIOccE"] = "abl_i_occ_e";
|
|
64
|
+
NominalType["NoAblIOccE"] = "-abl_i_occ_e";
|
|
65
|
+
NominalType["NotAblIOccE"] = "not_abl_i_occ_e";
|
|
66
|
+
NominalType["AblEOccI"] = "abl_e_occ_i";
|
|
67
|
+
NominalType["NoAblEOccI"] = "-abl_e_occ_i";
|
|
68
|
+
NominalType["NotAblEOccI"] = "not_abl_e_occ_i";
|
|
69
|
+
NominalType["NoNotAccIm"] = "-not_acc_im";
|
|
70
|
+
NominalType["NoNotAccImEm"] = "-not_acc_im_em";
|
|
71
|
+
NominalType["NoNotAccEmIm"] = "-not_acc_em_im";
|
|
72
|
+
NominalType["NoNotAccImInEm"] = "-not_acc_im_in_em";
|
|
73
|
+
NominalType["NoNotAccImIn"] = "-not_acc_im_in";
|
|
74
|
+
NominalType["NoNotAccImOccEm"] = "-not_acc_im_occ_em";
|
|
75
|
+
NominalType["NoNotAblEI"] = "-not_abl_e_i";
|
|
76
|
+
NominalType["NoNotAblI"] = "-not_abl_i";
|
|
77
|
+
NominalType["NoNotAblIE"] = "-not_abl_i_e";
|
|
78
|
+
NominalType["NoNotAblIOccE"] = "-not_abl_i_occ_e";
|
|
79
|
+
NominalType["NoNotAblEOccI"] = "-not_abl_e_occ_i";
|
|
80
|
+
NominalType["VocI"] = "voci";
|
|
81
|
+
NominalType["NoVocI"] = "-voci";
|
|
82
|
+
NominalType["NotVocI"] = "not_voci";
|
|
83
|
+
NominalType["NoNotVocI"] = "-not_voci";
|
|
84
|
+
NominalType["Abus"] = "abus";
|
|
85
|
+
NominalType["NotAbus"] = "not_abus";
|
|
86
|
+
NominalType["NoNotAbus"] = "-not_abus";
|
|
87
|
+
NominalType["Ubus"] = "ubus";
|
|
88
|
+
NominalType["NotUbus"] = "not_ubus";
|
|
89
|
+
NominalType["Ium"] = "ium";
|
|
90
|
+
NominalType["NoIum"] = "-ium";
|
|
91
|
+
NominalType["Ius"] = "ius";
|
|
92
|
+
NominalType["NoIus"] = "-ius";
|
|
93
|
+
NominalType["NotIus"] = "not_ius";
|
|
94
|
+
NominalType["NoNotIus"] = "-not_ius";
|
|
95
|
+
NominalType["Us"] = "us";
|
|
96
|
+
NominalType["NoUs"] = "-us";
|
|
97
|
+
NominalType["NotUs"] = "not_us";
|
|
98
|
+
NominalType["NoNotUs"] = "-not_us";
|
|
99
|
+
NominalType["Am"] = "am";
|
|
100
|
+
NominalType["NoAm"] = "-am";
|
|
101
|
+
NominalType["NotAm"] = "not_am";
|
|
102
|
+
NominalType["NoNotAm"] = "-not_am";
|
|
103
|
+
NominalType["Vos"] = "vos";
|
|
104
|
+
NominalType["NoVos"] = "-vos";
|
|
105
|
+
NominalType["Vom"] = "vom";
|
|
106
|
+
NominalType["NoVom"] = "-vom";
|
|
107
|
+
NominalType["Er"] = "er";
|
|
108
|
+
NominalType["NoEr"] = "-er";
|
|
109
|
+
NominalType["NotNoErr"] = "not_-er";
|
|
110
|
+
NominalType["NoNotNoErr"] = "-not_-er";
|
|
111
|
+
NominalType["a"] = "a";
|
|
112
|
+
NominalType["i"] = "i";
|
|
113
|
+
NominalType["I"] = "I";
|
|
114
|
+
NominalType["Noi"] = "-i";
|
|
115
|
+
NominalType["NoI"] = "-I";
|
|
116
|
+
NominalType["NotNoI"] = "not_-I";
|
|
117
|
+
NominalType["NoNotNoI"] = "-not_-I";
|
|
118
|
+
NominalType["NotI"] = "not_I";
|
|
119
|
+
NominalType["NoNotI"] = "-not_I";
|
|
120
|
+
NominalType["Pure"] = "pure";
|
|
121
|
+
NominalType["NoPure"] = "-pure";
|
|
122
|
+
NominalType["NotPure"] = "not_pure";
|
|
123
|
+
NominalType["NoNotPure"] = "-not_pure";
|
|
124
|
+
NominalType["Par"] = "par";
|
|
125
|
+
NominalType["NoPar"] = "-par";
|
|
126
|
+
NominalType["NotPar"] = "not_par";
|
|
127
|
+
NominalType["NoNotPar"] = "-not_par";
|
|
128
|
+
NominalType["Ic"] = "ic";
|
|
129
|
+
NominalType["NoIc"] = "-ic";
|
|
130
|
+
NominalType["greek"] = "greek";
|
|
131
|
+
NominalType["Nogreek"] = "-greek";
|
|
132
|
+
NominalType["Notgreek"] = "not_greek";
|
|
133
|
+
NominalType["NoNotgreek"] = "-not_greek";
|
|
134
|
+
NominalType["Greek"] = "Greek";
|
|
135
|
+
NominalType["NoGreek"] = "-Greek";
|
|
136
|
+
NominalType["NotGreek"] = "not_Greek";
|
|
137
|
+
NominalType["NoNotGreek"] = "-not_Greek";
|
|
138
|
+
NominalType["GreekA"] = "greekA";
|
|
139
|
+
NominalType["NoGreekA"] = "-greekA";
|
|
140
|
+
NominalType["NotGreekA"] = "not_greekA";
|
|
141
|
+
NominalType["NoNotGreekA"] = "-not_greekA";
|
|
142
|
+
NominalType["GreekE"] = "greekE";
|
|
143
|
+
NominalType["NoGreekE"] = "-greekE";
|
|
144
|
+
NominalType["NotGreekE"] = "not_greekE";
|
|
145
|
+
NominalType["NoNotGreekE"] = "-not_greekE";
|
|
146
|
+
NominalType["Echo"] = "echo";
|
|
147
|
+
NominalType["argo"] = "argo";
|
|
148
|
+
NominalType["Callisto"] = "Callisto";
|
|
149
|
+
NominalType["Polis"] = "polis";
|
|
150
|
+
NominalType["NotPolis"] = "not_polis";
|
|
151
|
+
NominalType["NoNotPolis"] = "-not_polis";
|
|
152
|
+
NominalType["NoPolis"] = "-polis";
|
|
153
|
+
NominalType["On"] = "on";
|
|
154
|
+
NominalType["NoOn"] = "-on";
|
|
155
|
+
NominalType["NotOn"] = "not_on";
|
|
156
|
+
NominalType["NoNotOn"] = "-not_on";
|
|
157
|
+
NominalType["Me"] = "Me";
|
|
158
|
+
NominalType["NoMe"] = "-Me";
|
|
159
|
+
NominalType["Ma"] = "Ma";
|
|
160
|
+
NominalType["NoMa"] = "-Ma";
|
|
161
|
+
NominalType["Fa"] = "Fa";
|
|
162
|
+
NominalType["NoFa"] = "-Fa";
|
|
163
|
+
NominalType["Locative"] = "loc";
|
|
164
|
+
NominalType["NoLocative"] = "-loc";
|
|
165
|
+
NominalType["Ligature"] = "lig";
|
|
166
|
+
NominalType["NoCategories"] = "nocat";
|
|
167
|
+
NominalType["SuffixN"] = "sufn";
|
|
168
|
+
NominalType["NotSuffixN"] = "not_sufn";
|
|
169
|
+
NominalType["NoNotSuffixN"] = "-not_sufn";
|
|
170
|
+
NominalType["poetic_esi"] = "poetic_esi";
|
|
171
|
+
// added by fpw to explicitly choose -e / -i in -ens adecl
|
|
172
|
+
NominalType["Participle"] = "ptc";
|
|
173
|
+
NominalType["NoParticiple"] = "-ptc";
|
|
174
|
+
NominalType["Tor"] = "tor";
|
|
175
|
+
NominalType["NoTor"] = "-tor";
|
|
176
|
+
NominalType["Trix"] = "trix";
|
|
177
|
+
NominalType["NoTrix"] = "-trix";
|
|
178
|
+
NominalType["TrixF"] = "trixf";
|
|
179
|
+
NominalType["NoTrixF"] = "-trixf";
|
|
180
|
+
NominalType["Idis"] = "idis";
|
|
181
|
+
NominalType["NoIdis"] = "-idis";
|
|
182
|
+
NominalType["distr"] = "distr";
|
|
183
|
+
NominalType["Nodistr"] = "-distr";
|
|
184
|
+
// long-form aliases used in some templates (e.g. <1.singular>)
|
|
185
|
+
NominalType["s"] = "s";
|
|
186
|
+
NominalType["SingularFull"] = "singular";
|
|
187
|
+
NominalType["PluralFull"] = "plural";
|
|
188
|
+
// probably errors
|
|
189
|
+
NominalType["Gr"] = "Gr";
|
|
190
|
+
NominalType["gr"] = "gr";
|
|
191
|
+
NominalType["navis"] = "navis";
|
|
192
|
+
NominalType["Second"] = "2nd";
|
|
193
|
+
})(NominalType || (NominalType = {}));
|
|
194
|
+
export function addNominalType(types, nomType) {
|
|
195
|
+
if (!is_enum_value(NominalType, nomType)) {
|
|
196
|
+
throw Error(`Invalid nominal type '${nomType}'`);
|
|
197
|
+
}
|
|
198
|
+
types.add(nomType);
|
|
199
|
+
}
|
|
200
|
+
export function hasNominalType(types, nomType) {
|
|
201
|
+
if (!is_enum_value(NominalType, nomType)) {
|
|
202
|
+
throw Error(`Invalid nominal type '${nomType}'`);
|
|
203
|
+
}
|
|
204
|
+
return types.has(nomType);
|
|
205
|
+
}
|
|
206
|
+
export function delNominalType(types, nomType) {
|
|
207
|
+
if (!is_enum_value(NominalType, nomType)) {
|
|
208
|
+
throw Error(`Invalid nominal type '${nomType}'`);
|
|
209
|
+
}
|
|
210
|
+
types.delete(nomType);
|
|
211
|
+
}
|
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
export interface BaseHead {
|
|
5
|
-
templateType: "headword";
|
|
6
|
-
heads: string[];
|
|
7
|
-
}
|
|
8
|
-
export interface FormHead extends BaseHead {
|
|
9
|
-
headType: "form";
|
|
10
|
-
partOfSpeech: string;
|
|
11
|
-
}
|
|
12
|
-
export declare enum
|
|
13
|
-
Noun = "nouns",
|
|
14
|
-
Numeral = "numerals",
|
|
15
|
-
Suffix = "suffixes",
|
|
16
|
-
ProperNoun = "proper nouns"
|
|
17
|
-
}
|
|
18
|
-
export interface NominalHead extends BaseHead {
|
|
19
|
-
headType: "nominal";
|
|
20
|
-
partOfSpeech:
|
|
21
|
-
indeclinable: boolean;
|
|
22
|
-
data:
|
|
23
|
-
genders: string[];
|
|
24
|
-
}
|
|
25
|
-
export declare enum AdjectivalType {
|
|
26
|
-
Adjective = "adjectives",
|
|
27
|
-
Numeral = "numerals",
|
|
28
|
-
Suffix = "suffixes",
|
|
29
|
-
Pronoun = "pronouns",
|
|
30
|
-
Determiner = "determiners",
|
|
31
|
-
Participle = "participles"
|
|
32
|
-
}
|
|
33
|
-
export interface AdjectivalHead extends BaseHead {
|
|
34
|
-
headType: "adjectival";
|
|
35
|
-
partOfSpeech: AdjectivalType;
|
|
36
|
-
indeclinable: boolean;
|
|
37
|
-
data:
|
|
38
|
-
comparatives: string[];
|
|
39
|
-
superlatives: string[];
|
|
40
|
-
adverbs: string[];
|
|
41
|
-
}
|
|
42
|
-
export declare enum VerbalType {
|
|
43
|
-
Verb = "verbs",
|
|
44
|
-
Suffix = "suffixes"
|
|
45
|
-
}
|
|
46
|
-
export interface VerbalHead extends BaseHead {
|
|
47
|
-
headType: "verbal";
|
|
48
|
-
partOfSpeech: VerbalType;
|
|
49
|
-
data:
|
|
50
|
-
infinitives: string[];
|
|
51
|
-
}
|
|
52
|
-
export interface GerundHead extends BaseHead {
|
|
53
|
-
headType: "gerund";
|
|
54
|
-
gerundive?: string;
|
|
55
|
-
}
|
|
56
|
-
export interface ComparativeHead extends BaseHead {
|
|
57
|
-
headType: "comparative";
|
|
58
|
-
neuter: string[];
|
|
59
|
-
positive: string[];
|
|
60
|
-
isLemma: boolean;
|
|
61
|
-
}
|
|
62
|
-
export interface SuperlativeHead extends BaseHead {
|
|
63
|
-
headType: "superlative";
|
|
64
|
-
neuter: string[];
|
|
65
|
-
feminine: string[];
|
|
66
|
-
positive: string[];
|
|
67
|
-
isLemma: boolean;
|
|
68
|
-
}
|
|
69
|
-
export declare enum AdverbType {
|
|
70
|
-
Adverb = "adverbs",
|
|
71
|
-
Suffix = "suffixes",
|
|
72
|
-
Comparative = "comparatives",
|
|
73
|
-
Superlative = "superlatives"
|
|
74
|
-
}
|
|
75
|
-
export interface AdverbHead extends BaseHead {
|
|
76
|
-
headType: "adverb";
|
|
77
|
-
partOfSpeech: AdverbType;
|
|
78
|
-
comparatives: string[];
|
|
79
|
-
superlatives: string[];
|
|
80
|
-
}
|
|
81
|
-
export interface NumeralAdverbHead extends BaseHead {
|
|
82
|
-
headType: "numeral_adverb";
|
|
83
|
-
numType: string;
|
|
84
|
-
}
|
|
85
|
-
export interface LetterHead extends BaseHead {
|
|
86
|
-
headType: "letter";
|
|
87
|
-
upper: string[];
|
|
88
|
-
lower: string[];
|
|
89
|
-
mixed: string[];
|
|
90
|
-
scriptCode: string;
|
|
91
|
-
}
|
|
92
|
-
export interface PrepositionHead extends BaseHead {
|
|
93
|
-
headType: "preposition";
|
|
94
|
-
genitive: boolean;
|
|
95
|
-
accusative: boolean;
|
|
96
|
-
ablative: boolean;
|
|
97
|
-
}
|
|
98
|
-
export interface PhraseHead extends BaseHead {
|
|
99
|
-
headType: "phrase";
|
|
100
|
-
}
|
|
101
|
-
export interface InterjectionHead extends BaseHead {
|
|
102
|
-
headType: "interjection";
|
|
103
|
-
}
|
|
104
|
-
export interface ParticleHead extends BaseHead {
|
|
105
|
-
headType: "particle";
|
|
106
|
-
partOfSpeech: string;
|
|
107
|
-
}
|
|
1
|
+
import { VerbInflectionData } from "../conjugation/LaVerb.js";
|
|
2
|
+
import { AdjectiveInflectionData, NounInflectionData } from "../declination/LaNominal.js";
|
|
3
|
+
export type HeadwordData = NominalHead | AdjectivalHead | PrepositionHead | ComparativeHead | SuperlativeHead | VerbalHead | ParticleHead | GerundHead | AdverbHead | NumeralAdverbHead | LetterHead | InterjectionHead | PhraseHead | FormHead;
|
|
4
|
+
export interface BaseHead {
|
|
5
|
+
templateType: "headword";
|
|
6
|
+
heads: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface FormHead extends BaseHead {
|
|
9
|
+
headType: "form";
|
|
10
|
+
partOfSpeech: string;
|
|
11
|
+
}
|
|
12
|
+
export declare enum NominalPosType {
|
|
13
|
+
Noun = "nouns",
|
|
14
|
+
Numeral = "numerals",
|
|
15
|
+
Suffix = "suffixes",
|
|
16
|
+
ProperNoun = "proper nouns"
|
|
17
|
+
}
|
|
18
|
+
export interface NominalHead extends BaseHead {
|
|
19
|
+
headType: "nominal";
|
|
20
|
+
partOfSpeech: NominalPosType;
|
|
21
|
+
indeclinable: boolean;
|
|
22
|
+
data: NounInflectionData;
|
|
23
|
+
genders: string[];
|
|
24
|
+
}
|
|
25
|
+
export declare enum AdjectivalType {
|
|
26
|
+
Adjective = "adjectives",
|
|
27
|
+
Numeral = "numerals",
|
|
28
|
+
Suffix = "suffixes",
|
|
29
|
+
Pronoun = "pronouns",
|
|
30
|
+
Determiner = "determiners",
|
|
31
|
+
Participle = "participles"
|
|
32
|
+
}
|
|
33
|
+
export interface AdjectivalHead extends BaseHead {
|
|
34
|
+
headType: "adjectival";
|
|
35
|
+
partOfSpeech: AdjectivalType;
|
|
36
|
+
indeclinable: boolean;
|
|
37
|
+
data: AdjectiveInflectionData;
|
|
38
|
+
comparatives: string[];
|
|
39
|
+
superlatives: string[];
|
|
40
|
+
adverbs: string[];
|
|
41
|
+
}
|
|
42
|
+
export declare enum VerbalType {
|
|
43
|
+
Verb = "verbs",
|
|
44
|
+
Suffix = "suffixes"
|
|
45
|
+
}
|
|
46
|
+
export interface VerbalHead extends BaseHead {
|
|
47
|
+
headType: "verbal";
|
|
48
|
+
partOfSpeech: VerbalType;
|
|
49
|
+
data: VerbInflectionData;
|
|
50
|
+
infinitives: string[];
|
|
51
|
+
}
|
|
52
|
+
export interface GerundHead extends BaseHead {
|
|
53
|
+
headType: "gerund";
|
|
54
|
+
gerundive?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface ComparativeHead extends BaseHead {
|
|
57
|
+
headType: "comparative";
|
|
58
|
+
neuter: string[];
|
|
59
|
+
positive: string[];
|
|
60
|
+
isLemma: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface SuperlativeHead extends BaseHead {
|
|
63
|
+
headType: "superlative";
|
|
64
|
+
neuter: string[];
|
|
65
|
+
feminine: string[];
|
|
66
|
+
positive: string[];
|
|
67
|
+
isLemma: boolean;
|
|
68
|
+
}
|
|
69
|
+
export declare enum AdverbType {
|
|
70
|
+
Adverb = "adverbs",
|
|
71
|
+
Suffix = "suffixes",
|
|
72
|
+
Comparative = "comparatives",
|
|
73
|
+
Superlative = "superlatives"
|
|
74
|
+
}
|
|
75
|
+
export interface AdverbHead extends BaseHead {
|
|
76
|
+
headType: "adverb";
|
|
77
|
+
partOfSpeech: AdverbType;
|
|
78
|
+
comparatives: string[];
|
|
79
|
+
superlatives: string[];
|
|
80
|
+
}
|
|
81
|
+
export interface NumeralAdverbHead extends BaseHead {
|
|
82
|
+
headType: "numeral_adverb";
|
|
83
|
+
numType: string;
|
|
84
|
+
}
|
|
85
|
+
export interface LetterHead extends BaseHead {
|
|
86
|
+
headType: "letter";
|
|
87
|
+
upper: string[];
|
|
88
|
+
lower: string[];
|
|
89
|
+
mixed: string[];
|
|
90
|
+
scriptCode: string;
|
|
91
|
+
}
|
|
92
|
+
export interface PrepositionHead extends BaseHead {
|
|
93
|
+
headType: "preposition";
|
|
94
|
+
genitive: boolean;
|
|
95
|
+
accusative: boolean;
|
|
96
|
+
ablative: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface PhraseHead extends BaseHead {
|
|
99
|
+
headType: "phrase";
|
|
100
|
+
}
|
|
101
|
+
export interface InterjectionHead extends BaseHead {
|
|
102
|
+
headType: "interjection";
|
|
103
|
+
}
|
|
104
|
+
export interface ParticleHead extends BaseHead {
|
|
105
|
+
headType: "particle";
|
|
106
|
+
partOfSpeech: string;
|
|
107
|
+
}
|
|
@@ -1,32 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
AdjectivalType["
|
|
14
|
-
AdjectivalType["
|
|
15
|
-
AdjectivalType["
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
AdverbType["
|
|
28
|
-
|
|
29
|
-
AdverbType["Comparative"] = "comparatives";
|
|
30
|
-
AdverbType["Superlative"] = "superlatives";
|
|
31
|
-
})(AdverbType = exports.AdverbType || (exports.AdverbType = {}));
|
|
32
|
-
//# sourceMappingURL=HeadWord.js.map
|
|
1
|
+
export var NominalPosType;
|
|
2
|
+
(function (NominalPosType) {
|
|
3
|
+
NominalPosType["Noun"] = "nouns";
|
|
4
|
+
NominalPosType["Numeral"] = "numerals";
|
|
5
|
+
NominalPosType["Suffix"] = "suffixes";
|
|
6
|
+
NominalPosType["ProperNoun"] = "proper nouns";
|
|
7
|
+
})(NominalPosType || (NominalPosType = {}));
|
|
8
|
+
export var AdjectivalType;
|
|
9
|
+
(function (AdjectivalType) {
|
|
10
|
+
AdjectivalType["Adjective"] = "adjectives";
|
|
11
|
+
AdjectivalType["Numeral"] = "numerals";
|
|
12
|
+
AdjectivalType["Suffix"] = "suffixes";
|
|
13
|
+
AdjectivalType["Pronoun"] = "pronouns";
|
|
14
|
+
AdjectivalType["Determiner"] = "determiners";
|
|
15
|
+
AdjectivalType["Participle"] = "participles";
|
|
16
|
+
})(AdjectivalType || (AdjectivalType = {}));
|
|
17
|
+
export var VerbalType;
|
|
18
|
+
(function (VerbalType) {
|
|
19
|
+
VerbalType["Verb"] = "verbs";
|
|
20
|
+
VerbalType["Suffix"] = "suffixes";
|
|
21
|
+
})(VerbalType || (VerbalType = {}));
|
|
22
|
+
export var AdverbType;
|
|
23
|
+
(function (AdverbType) {
|
|
24
|
+
AdverbType["Adverb"] = "adverbs";
|
|
25
|
+
AdverbType["Suffix"] = "suffixes";
|
|
26
|
+
AdverbType["Comparative"] = "comparatives";
|
|
27
|
+
AdverbType["Superlative"] = "superlatives";
|
|
28
|
+
})(AdverbType || (AdverbType = {}));
|