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,73 +80,140 @@ export const presentEndings: T.VerbBlock = [
], ],
]; ];
export const pastEndings: T.VerbBlock = [ export const pastEndings: {
[ long: T.VerbBlock,
[{ short: T.VerbBlock,
p: "م", } = {
f: "um" long: [
}], [
[{ [{
p: "و", p: "م",
f: "oo" f: "um"
}] }],
], [{
[
[{
p: "م",
f: "um"
}],
[{
p: "و",
f: "oo"
}]
],
[
[{
p: "ې",
f: "e"
}],
[{
p: "ئ",
f: "eyy"
}]
],
[
[{
p: "ې",
f: "e"
}],
[{
p: "ئ",
f: "eyy"
}]
],
[
[{
p: "ه",
f: "u"
},
{
p: "و", p: "و",
f: "o" f: "oo"
}, }]
],
[
[{
p: "م",
f: "um"
}],
[{
p: "و",
f: "oo"
}]
],
[
[{
p: "ې",
f: "e"
}],
[{
p: "ئ",
f: "eyy"
}]
],
[
[{
p: "ې",
f: "e"
}],
[{
p: "ئ",
f: "eyy"
}]
],
[
[{
p: "و",
f: "o",
}],
[{
p: "ل",
f: "ul"
}],
],
[
[{
p: "ه",
f: "a"
}],
[{
p: "ې",
f: "e"
}]
], ],
[{
p: "ل",
f: "ul"
}],
], ],
[ short: [
[{ [
p: "ه", [{
f: "a" p: "م",
}], f: "um"
[{ }],
p: "ې", [{
f: "e" p: "و",
}] f: "oo"
}]
],
[
[{
p: "م",
f: "um"
}],
[{
p: "و",
f: "oo"
}]
],
[
[{
p: "ې",
f: "e"
}],
[{
p: "ئ",
f: "eyy"
}]
],
[
[{
p: "ې",
f: "e"
}],
[{
p: "ئ",
f: "eyy"
}]
],
[
[{
p: "ۀ",
f: "u"
},
{
p: "و",
f: "o"
},
],
[{
p: "ل",
f: "ul"
}],
],
[
[{
p: "ه",
f: "a"
}],
[{
p: "ې",
f: "e"
}]
],
], ],
]; };
// TODO: MAKE THIS VARIABLE FOR DIALECTS! // TODO: MAKE THIS VARIABLE FOR DIALECTS!