better verb endings

This commit is contained in:
lingdocs 2022-07-19 15:44:13 -05:00
parent 5dd575faaf
commit 83ae0e3533
2 changed files with 131 additions and 64 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@lingdocs/pashto-inflector", "name": "@lingdocs/pashto-inflector",
"version": "3.4.0", "version": "3.4.1",
"author": "lingdocs.com", "author": "lingdocs.com",
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
"homepage": "https://verbs.lingdocs.com", "homepage": "https://verbs.lingdocs.com",

View File

@ -80,7 +80,11 @@ export const presentEndings: T.VerbBlock = [
], ],
]; ];
export const pastEndings: T.VerbBlock = [ export const pastEndings: {
long: T.VerbBlock,
short: T.VerbBlock,
} = {
long: [
[ [
[{ [{
p: "م", p: "م",
@ -121,9 +125,71 @@ export const pastEndings: T.VerbBlock = [
f: "eyy" f: "eyy"
}] }]
], ],
[
[{
p: "و",
f: "o",
}],
[{
p: "ل",
f: "ul"
}],
],
[ [
[{ [{
p: "ه", p: "ه",
f: "a"
}],
[{
p: "ې",
f: "e"
}]
],
],
short: [
[
[{
p: "م",
f: "um"
}],
[{
p: "و",
f: "oo"
}]
],
[
[{
p: "م",
f: "um"
}],
[{
p: "و",
f: "oo"
}]
],
[
[{
p: "ې",
f: "e"
}],
[{
p: "ئ",
f: "eyy"
}]
],
[
[{
p: "ې",
f: "e"
}],
[{
p: "ئ",
f: "eyy"
}]
],
[
[{
p: "ۀ",
f: "u" f: "u"
}, },
{ {
@ -146,7 +212,8 @@ export const pastEndings: T.VerbBlock = [
f: "e" f: "e"
}] }]
], ],
]; ],
};
// TODO: MAKE THIS VARIABLE FOR DIALECTS! // TODO: MAKE THIS VARIABLE FOR DIALECTS!