better 3rd pers masc sing past

This commit is contained in:
adueck 2022-09-23 15:09:44 +04:00
parent 82a4f557e7
commit c3b24f4c53
2 changed files with 6 additions and 2 deletions

View File

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

View File

@ -680,7 +680,11 @@ function ensureShort3rdPersMascSing(
// variation ending with a ه - u
const endsInAConsonant = (pashtoConsonants.includes(form.p.slice(-1)) || form.f.slice(-1) === "w");
const replacement: T.ArrayOneOrMore<T.PsString> = endsInAConsonant
? [form, concatPsString(form, { p: "ه", f: "u" })]
? [
form,
concatPsString(form, { p: "ه", f: "u" }),
concatPsString(form, { p: "و", f: "o" }),
]
: [form];
return replace3rdPersMascSing(replacement, block);
}