@fpw/en-wiktionary-la-modules 0.2.2 → 0.3.2
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,58 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
VerbType["
|
|
8
|
-
VerbType["
|
|
9
|
-
VerbType["
|
|
10
|
-
VerbType["
|
|
11
|
-
VerbType["
|
|
12
|
-
VerbType["
|
|
13
|
-
VerbType["
|
|
14
|
-
VerbType["
|
|
15
|
-
VerbType["
|
|
16
|
-
VerbType["
|
|
17
|
-
VerbType["NoPerfect"] = "noperf";
|
|
18
|
-
VerbType["NoPassivePerfect"] = "nopasvperf";
|
|
19
|
-
VerbType["NoSupine"] = "nosup";
|
|
20
|
-
VerbType["
|
|
21
|
-
VerbType["
|
|
22
|
-
VerbType["
|
|
23
|
-
VerbType["
|
|
24
|
-
VerbType["
|
|
25
|
-
VerbType["
|
|
26
|
-
VerbType["
|
|
27
|
-
VerbType["
|
|
28
|
-
VerbType["
|
|
29
|
-
VerbType["
|
|
30
|
-
VerbType["
|
|
31
|
-
VerbType["
|
|
32
|
-
VerbType["
|
|
33
|
-
VerbType["
|
|
34
|
-
VerbType["
|
|
35
|
-
VerbType["
|
|
36
|
-
VerbType["
|
|
37
|
-
VerbType["
|
|
38
|
-
VerbType["
|
|
39
|
-
VerbType["
|
|
40
|
-
VerbType["
|
|
41
|
-
VerbType["
|
|
42
|
-
VerbType["
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
1
|
+
import { is_enum_value } from "../common.js";
|
|
2
|
+
export var VerbType;
|
|
3
|
+
(function (VerbType) {
|
|
4
|
+
VerbType["Impersonal"] = "impers";
|
|
5
|
+
VerbType["Irregular"] = "irreg";
|
|
6
|
+
VerbType["ShortA"] = "shorta";
|
|
7
|
+
VerbType["ThirdPersOnly"] = "3only";
|
|
8
|
+
VerbType["Deponent"] = "depon";
|
|
9
|
+
VerbType["SemiDeponent"] = "semidepon";
|
|
10
|
+
VerbType["OptSemiDeponent"] = "optsemidepon";
|
|
11
|
+
VerbType["NoPassive"] = "nopass";
|
|
12
|
+
VerbType["PassiveThirdOnly"] = "pass3only";
|
|
13
|
+
VerbType["PassiveImpersonal"] = "passimpers";
|
|
14
|
+
VerbType["PassiveImpersonalOld"] = "passimpersold";
|
|
15
|
+
VerbType["PerfectAsPresence"] = "perfaspres";
|
|
16
|
+
VerbType["NoPresent"] = "nopres";
|
|
17
|
+
VerbType["NoPerfect"] = "noperf";
|
|
18
|
+
VerbType["NoPassivePerfect"] = "nopasvperf";
|
|
19
|
+
VerbType["NoSupine"] = "nosup";
|
|
20
|
+
VerbType["NoGerund"] = "noger";
|
|
21
|
+
VerbType["SupineFutrActvOnly"] = "supfutractvonly";
|
|
22
|
+
VerbType["NoFutrActvPtc"] = "nofutractvptc";
|
|
23
|
+
VerbType["NoImperfect"] = "noimp";
|
|
24
|
+
VerbType["NoFuture"] = "nofutr";
|
|
25
|
+
VerbType["LegacyNoFuture"] = "nofut";
|
|
26
|
+
VerbType["ImpOnly"] = "imponly";
|
|
27
|
+
VerbType["OldImperfectFuture"] = "oldimpffutr";
|
|
28
|
+
VerbType["Old2sImperative"] = "old2sgimp";
|
|
29
|
+
VerbType["NoInfinitive"] = "noinf";
|
|
30
|
+
VerbType["PoeticInfinitive"] = "p3inf";
|
|
31
|
+
VerbType["PoetSyncopatedPerfect"] = "poetsyncperf";
|
|
32
|
+
VerbType["SyncFutrActvPtc"] = "syncfutractvptc";
|
|
33
|
+
VerbType["OptionalSyncopatedPerfect"] = "optsyncperf";
|
|
34
|
+
VerbType["AlwaysSyncopatedPerfect"] = "alwayssyncperf";
|
|
35
|
+
VerbType["IStem"] = "i";
|
|
36
|
+
VerbType["Masculine"] = "m";
|
|
37
|
+
VerbType["Feminine"] = "f";
|
|
38
|
+
VerbType["Neuter"] = "n";
|
|
39
|
+
VerbType["MasculinePlural"] = "mp";
|
|
40
|
+
VerbType["FemininePlural"] = "fp";
|
|
41
|
+
VerbType["NeuterPlural"] = "np";
|
|
42
|
+
VerbType["HighlyDefective"] = "highlydef";
|
|
43
|
+
VerbType["SigM"] = "sigm";
|
|
44
|
+
VerbType["SigMPassive"] = "sigmpasv";
|
|
45
|
+
VerbType["NoUND"] = "nound";
|
|
46
|
+
VerbType["Suffix"] = "suffix";
|
|
47
|
+
VerbType["Suppletive"] = "suppl";
|
|
48
|
+
VerbType["NoIStem"] = "-i";
|
|
49
|
+
VerbType["NoDeponent"] = "-depon";
|
|
50
|
+
VerbType["NoImpersonal"] = "-impers";
|
|
51
|
+
VerbType["NoNoPresent"] = "-nopres";
|
|
52
|
+
VerbType["NoPerfAsPres"] = "-perfaspres";
|
|
53
|
+
VerbType["NoImpOnly"] = "-imponly";
|
|
54
|
+
})(VerbType || (VerbType = {}));
|
|
55
|
+
export function addVerbType(types, verbType) {
|
|
56
|
+
if (!is_enum_value(VerbType, verbType)) {
|
|
57
|
+
throw Error(`Invalid verb type ${verbType}`);
|
|
58
|
+
}
|
|
59
|
+
types.add(verbType);
|
|
60
|
+
}
|
|
61
|
+
export function hasVerbType(types, verbType) {
|
|
62
|
+
if (!is_enum_value(VerbType, verbType)) {
|
|
63
|
+
throw Error(`Invalid verb type ${verbType}`);
|
|
64
|
+
}
|
|
65
|
+
return types.has(verbType);
|
|
66
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is a complete re-implementation of Wiktionary's Module:la-adj/data, developed by Benwing2.
|
|
3
|
-
* It was converted from Lua to TypeScript by Folke Will <folko@solhost.org>.
|
|
4
|
-
*
|
|
5
|
-
* Original source: https://en.wiktionary.org/wiki/Module:la-adj/data
|
|
6
|
-
* Based on version
|
|
7
|
-
*
|
|
8
|
-
* Lua idioms, function and variable names kept as in the original in order to easily
|
|
9
|
-
* backport later changes to this implementation.
|
|
10
|
-
*
|
|
11
|
-
* For that reason, it's suggested to add a type-aware wrapper around this class and leave
|
|
12
|
-
* this code unchanged instead of improving the types and use of idioms in this class.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
import { SegmentData } from "./LaNominal";
|
|
16
|
-
export declare const m_adj_decl: Map<string, (
|
|
1
|
+
/**
|
|
2
|
+
* This is a complete re-implementation of Wiktionary's Module:la-adj/data, developed by Benwing2.
|
|
3
|
+
* It was converted from Lua to TypeScript by Folke Will <folko@solhost.org>.
|
|
4
|
+
*
|
|
5
|
+
* Original source: https://en.wiktionary.org/wiki/Module:la-adj/data
|
|
6
|
+
* Based on version 2026-03-03
|
|
7
|
+
*
|
|
8
|
+
* Lua idioms, function and variable names kept as in the original in order to easily
|
|
9
|
+
* backport later changes to this implementation.
|
|
10
|
+
*
|
|
11
|
+
* For that reason, it's suggested to add a type-aware wrapper around this class and leave
|
|
12
|
+
* this code unchanged instead of improving the types and use of idioms in this class.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
import { SegmentData } from "./LaNominal.js";
|
|
16
|
+
export declare const m_adj_decl: Map<string, (data: SegmentData, args: string[]) => void>;
|