better 3rd pers masc sing past
This commit is contained in:
parent
82a4f557e7
commit
c3b24f4c53
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lingdocs/pashto-inflector",
|
"name": "@lingdocs/pashto-inflector",
|
||||||
"version": "4.0.2",
|
"version": "4.0.3",
|
||||||
"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",
|
||||||
|
|
|
@ -680,7 +680,11 @@ function ensureShort3rdPersMascSing(
|
||||||
// variation ending with a ه - u
|
// variation ending with a ه - u
|
||||||
const endsInAConsonant = (pashtoConsonants.includes(form.p.slice(-1)) || form.f.slice(-1) === "w");
|
const endsInAConsonant = (pashtoConsonants.includes(form.p.slice(-1)) || form.f.slice(-1) === "w");
|
||||||
const replacement: T.ArrayOneOrMore<T.PsString> = endsInAConsonant
|
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];
|
: [form];
|
||||||
return replace3rdPersMascSing(replacement, block);
|
return replace3rdPersMascSing(replacement, block);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue