@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.
Files changed (63) hide show
  1. package/LICENSE +75 -75
  2. package/README.md +19 -15
  3. package/dist/LaEngine.d.ts +23 -23
  4. package/dist/LaEngine.js +64 -66
  5. package/dist/index.d.ts +12 -11
  6. package/dist/index.js +12 -28
  7. package/dist/modules/common.d.ts +67 -66
  8. package/dist/modules/common.js +145 -157
  9. package/dist/modules/conjugation/LaVerb.d.ts +118 -109
  10. package/dist/modules/conjugation/LaVerb.js +2861 -2295
  11. package/dist/modules/conjugation/VerbAffix.d.ts +18 -18
  12. package/dist/modules/conjugation/VerbAffix.js +19 -23
  13. package/dist/modules/conjugation/VerbForm.d.ts +204 -182
  14. package/dist/modules/conjugation/VerbForm.js +215 -199
  15. package/dist/modules/conjugation/VerbType.d.ts +54 -40
  16. package/dist/modules/conjugation/VerbType.js +66 -58
  17. package/dist/modules/declination/LaAdjData.d.ts +16 -16
  18. package/dist/modules/declination/LaAdjData.js +1474 -908
  19. package/dist/modules/declination/LaNominal.d.ts +136 -130
  20. package/dist/modules/declination/LaNominal.js +1884 -1804
  21. package/dist/modules/declination/LaNounData.d.ts +16 -2
  22. package/dist/modules/declination/LaNounData.js +935 -855
  23. package/dist/modules/declination/LaPersonalPronoun.d.ts +12 -12
  24. package/dist/modules/declination/LaPersonalPronoun.js +80 -85
  25. package/dist/modules/declination/NominalForm.d.ts +85 -69
  26. package/dist/modules/declination/NominalForm.js +101 -91
  27. package/dist/modules/declination/NominalType.d.ts +191 -120
  28. package/dist/modules/declination/NominalType.js +211 -146
  29. package/dist/modules/headword/HeadWord.d.ts +107 -107
  30. package/dist/modules/headword/HeadWord.js +28 -32
  31. package/dist/modules/headword/HeadwordParser.d.ts +29 -29
  32. package/dist/modules/headword/HeadwordParser.js +456 -452
  33. package/package.json +23 -15
  34. package/dist/LaEngine.js.map +0 -1
  35. package/dist/index.js.map +0 -1
  36. package/dist/modules/common.js.map +0 -1
  37. package/dist/modules/conjugation/LaVerb.js.map +0 -1
  38. package/dist/modules/conjugation/VerbAffix.js.map +0 -1
  39. package/dist/modules/conjugation/VerbForm.js.map +0 -1
  40. package/dist/modules/conjugation/VerbType.js.map +0 -1
  41. package/dist/modules/declination/LaAdjData.js.map +0 -1
  42. package/dist/modules/declination/LaNominal.js.map +0 -1
  43. package/dist/modules/declination/LaNounData.js.map +0 -1
  44. package/dist/modules/declination/LaPersonalPronoun.js.map +0 -1
  45. package/dist/modules/declination/NominalForm.js.map +0 -1
  46. package/dist/modules/declination/NominalType.js.map +0 -1
  47. package/dist/modules/headword/HeadWord.js.map +0 -1
  48. package/dist/modules/headword/HeadwordParser.js.map +0 -1
  49. package/src/LaEngine.ts +0 -86
  50. package/src/index.ts +0 -16
  51. package/src/modules/common.ts +0 -164
  52. package/src/modules/conjugation/LaVerb.ts +0 -2669
  53. package/src/modules/conjugation/VerbAffix.ts +0 -18
  54. package/src/modules/conjugation/VerbForm.ts +0 -223
  55. package/src/modules/conjugation/VerbType.ts +0 -55
  56. package/src/modules/declination/LaAdjData.ts +0 -1036
  57. package/src/modules/declination/LaNominal.ts +0 -2025
  58. package/src/modules/declination/LaNounData.ts +0 -897
  59. package/src/modules/declination/LaPersonalPronoun.ts +0 -92
  60. package/src/modules/declination/NominalForm.ts +0 -89
  61. package/src/modules/declination/NominalType.ts +0 -157
  62. package/src/modules/headword/HeadWord.ts +0 -132
  63. package/src/modules/headword/HeadwordParser.ts +0 -515
@@ -1,146 +1,211 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.delNominalType = exports.hasNominalType = exports.addNominalType = exports.NominalType = void 0;
4
- const common_1 = require("../common");
5
- var NominalType;
6
- (function (NominalType) {
7
- NominalType["Singular"] = "sg";
8
- NominalType["NoSingular"] = "-sg";
9
- NominalType["Plural"] = "pl";
10
- NominalType["NoPlural"] = "-pl";
11
- NominalType["Both"] = "both";
12
- NominalType["NotBoth"] = "not_both";
13
- NominalType["Masculine"] = "M";
14
- NominalType["masculine"] = "m";
15
- NominalType["Feminine"] = "F";
16
- NominalType["feminine"] = "f";
17
- NominalType["Neuter"] = "N";
18
- NominalType["neuter"] = "n";
19
- NominalType["NoMasculine"] = "-M";
20
- NominalType["NotMasculine"] = "not_M";
21
- NominalType["NotMe"] = "not_Me";
22
- NominalType["NotFeminine"] = "not_F";
23
- NominalType["NoFeminine"] = "-F";
24
- NominalType["NoNeuter"] = "-N";
25
- NominalType["NotNeuter"] = "not_N";
26
- NominalType["NotNoNeuter"] = "not_-N";
27
- NominalType["GenPluM"] = "genplum";
28
- NominalType["NotGenPluM"] = "not_genplum";
29
- NominalType["AccIm"] = "acc_im";
30
- NominalType["NotAccIm"] = "not_acc_im";
31
- NominalType["AccImEm"] = "acc_im_em";
32
- NominalType["NotAccImEm"] = "not_acc_im_em";
33
- NominalType["AccEmIm"] = "acc_em_im";
34
- NominalType["NotAccEmIm"] = "not_acc_em_im";
35
- NominalType["AccImIn"] = "acc_im_in";
36
- NominalType["AccImInEm"] = "acc_im_in_em";
37
- NominalType["NotAccImInEm"] = "not_acc_im_in_em";
38
- NominalType["NotAccImIn"] = "not_acc_im_in";
39
- NominalType["AccImOccEm"] = "acc_im_occ_em";
40
- NominalType["NotAccImOccEm"] = "not_acc_im_occ_em";
41
- NominalType["AblEI"] = "abl_e_i";
42
- NominalType["NotAblEI"] = "not_abl_e_i";
43
- NominalType["AblI"] = "abl_i";
44
- NominalType["NotAblI"] = "not_abl_i";
45
- NominalType["AblIE"] = "abl_i_e";
46
- NominalType["NotAblIE"] = "not_abl_i_e";
47
- NominalType["AblEOccI"] = "abl_e_occ_i";
48
- NominalType["NotAblEOccI"] = "not_abl_e_occ_i";
49
- NominalType["VocI"] = "voci";
50
- NominalType["NoVocI"] = "-voci";
51
- NominalType["Abus"] = "abus";
52
- NominalType["NotAbus"] = "not_abus";
53
- NominalType["Ubus"] = "ubus";
54
- NominalType["NotUbus"] = "not_ubus";
55
- NominalType["Ium"] = "ium";
56
- NominalType["NoIum"] = "-ium";
57
- NominalType["Ius"] = "ius";
58
- NominalType["NoIus"] = "-ius";
59
- NominalType["NotIus"] = "not_ius";
60
- NominalType["Us"] = "us";
61
- NominalType["NoUs"] = "-us";
62
- NominalType["NotUs"] = "not_us";
63
- NominalType["Am"] = "am";
64
- NominalType["NoAm"] = "-am";
65
- NominalType["NotAm"] = "not_am";
66
- NominalType["Vos"] = "vos";
67
- NominalType["NoVos"] = "-vos";
68
- NominalType["Vom"] = "vom";
69
- NominalType["NoVom"] = "-vom";
70
- NominalType["Er"] = "er";
71
- NominalType["NoEr"] = "-er";
72
- NominalType["NotNoErr"] = "not_-er";
73
- NominalType["a"] = "a";
74
- NominalType["i"] = "i";
75
- NominalType["I"] = "I";
76
- NominalType["Noi"] = "-i";
77
- NominalType["NoI"] = "-I";
78
- NominalType["NotI"] = "not_I";
79
- NominalType["Pure"] = "pure";
80
- NominalType["NoPure"] = "-pure";
81
- NominalType["NotPure"] = "not_pure";
82
- NominalType["Par"] = "par";
83
- NominalType["NoPar"] = "-par";
84
- NominalType["NotPar"] = "not_par";
85
- NominalType["Ic"] = "ic";
86
- NominalType["NoIc"] = "-ic";
87
- NominalType["greek"] = "greek";
88
- NominalType["Nogreek"] = "-greek";
89
- NominalType["Notgreek"] = "not_greek";
90
- NominalType["Greek"] = "Greek";
91
- NominalType["NoGreek"] = "-Greek";
92
- NominalType["NotGreek"] = "not_Greek";
93
- NominalType["GreekA"] = "greekA";
94
- NominalType["NoGreekA"] = "-greekA";
95
- NominalType["GreekE"] = "greekE";
96
- NominalType["NoGreekE"] = "-greekE";
97
- NominalType["Echo"] = "echo";
98
- NominalType["argo"] = "argo";
99
- NominalType["Callisto"] = "Callisto";
100
- NominalType["Polis"] = "polis";
101
- NominalType["NotPolis"] = "not_polis";
102
- NominalType["NoPolis"] = "-polis";
103
- NominalType["On"] = "on";
104
- NominalType["NoOn"] = "-on";
105
- NominalType["NotOn"] = "not_on";
106
- NominalType["Me"] = "Me";
107
- NominalType["NoMe"] = "-Me";
108
- NominalType["Ma"] = "Ma";
109
- NominalType["NoMa"] = "-Ma";
110
- NominalType["Locative"] = "loc";
111
- NominalType["NoLocative"] = "-loc";
112
- NominalType["Ligature"] = "lig";
113
- NominalType["NoCategories"] = "nocat";
114
- NominalType["SuffixN"] = "sufn";
115
- NominalType["NotSuffixN"] = "not_sufn";
116
- NominalType["poetic_esi"] = "poetic_esi";
117
- // added by fpw to explicitly choose -e / -i in -ens adecl
118
- NominalType["Participle"] = "ptc";
119
- // probably errors
120
- NominalType["Gr"] = "Gr";
121
- NominalType["gr"] = "gr";
122
- NominalType["navis"] = "navis";
123
- NominalType["Second"] = "2nd";
124
- })(NominalType = exports.NominalType || (exports.NominalType = {}));
125
- function addNominalType(types, nomType) {
126
- if (!(0, common_1.is_enum_value)(NominalType, nomType)) {
127
- throw Error(`Invalid nominal type '${nomType}'`);
128
- }
129
- types.add(nomType);
130
- }
131
- exports.addNominalType = addNominalType;
132
- function hasNominalType(types, nomType) {
133
- if (!(0, common_1.is_enum_value)(NominalType, nomType)) {
134
- throw Error(`Invalid nominal type '${nomType}'`);
135
- }
136
- return types.has(nomType);
137
- }
138
- exports.hasNominalType = hasNominalType;
139
- function delNominalType(types, nomType) {
140
- if (!(0, common_1.is_enum_value)(NominalType, nomType)) {
141
- throw Error(`Invalid nominal type '${nomType}'`);
142
- }
143
- types.delete(nomType);
144
- }
145
- exports.delNominalType = delNominalType;
146
- //# sourceMappingURL=NominalType.js.map
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 { VerbData } from "../conjugation/LaVerb";
2
- import { AdjectiveData, NounData } from "../declination/LaNominal";
3
- export declare 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 NominalType {
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: NominalType;
21
- indeclinable: boolean;
22
- data: NounData;
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: AdjectiveData;
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: VerbData;
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AdverbType = exports.VerbalType = exports.AdjectivalType = exports.NominalType = void 0;
4
- var NominalType;
5
- (function (NominalType) {
6
- NominalType["Noun"] = "nouns";
7
- NominalType["Numeral"] = "numerals";
8
- NominalType["Suffix"] = "suffixes";
9
- NominalType["ProperNoun"] = "proper nouns";
10
- })(NominalType = exports.NominalType || (exports.NominalType = {}));
11
- var AdjectivalType;
12
- (function (AdjectivalType) {
13
- AdjectivalType["Adjective"] = "adjectives";
14
- AdjectivalType["Numeral"] = "numerals";
15
- AdjectivalType["Suffix"] = "suffixes";
16
- AdjectivalType["Pronoun"] = "pronouns";
17
- AdjectivalType["Determiner"] = "determiners";
18
- AdjectivalType["Participle"] = "participles";
19
- })(AdjectivalType = exports.AdjectivalType || (exports.AdjectivalType = {}));
20
- var VerbalType;
21
- (function (VerbalType) {
22
- VerbalType["Verb"] = "verbs";
23
- VerbalType["Suffix"] = "suffixes";
24
- })(VerbalType = exports.VerbalType || (exports.VerbalType = {}));
25
- var AdverbType;
26
- (function (AdverbType) {
27
- AdverbType["Adverb"] = "adverbs";
28
- AdverbType["Suffix"] = "suffixes";
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 = {}));