From c3b24f4c5359fe1b59398365c6f045dc87607b5d Mon Sep 17 00:00:00 2001 From: adueck Date: Fri, 23 Sep 2022 15:09:44 +0400 Subject: [PATCH] better 3rd pers masc sing past --- package.json | 2 +- src/lib/verb-conjugation.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d3b3cb5..c3b620b 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/lib/verb-conjugation.ts b/src/lib/verb-conjugation.ts index 7ebc073..bda13ad 100644 --- a/src/lib/verb-conjugation.ts +++ b/src/lib/verb-conjugation.ts @@ -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 = endsInAConsonant - ? [form, concatPsString(form, { p: "ه", f: "u" })] + ? [ + form, + concatPsString(form, { p: "ه", f: "u" }), + concatPsString(form, { p: "و", f: "o" }), + ] : [form]; return replace3rdPersMascSing(replacement, block); }