diff --git a/package.json b/package.json index e65bf2a..18c33a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "3.5.7", + "version": "3.5.8", "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 c99cedc..7ebc073 100644 --- a/src/lib/verb-conjugation.ts +++ b/src/lib/verb-conjugation.ts @@ -32,7 +32,7 @@ import { inflectYey, } from "./pashto-inflector"; import { - accentOnNFromEnd, + accentOnNFromEnd, removeAccents, } from "./accent-helpers"; import { pashtoConsonants } from "./pashto-consonants"; import { @@ -462,7 +462,9 @@ function makePassiveContent(info: T.NonComboVerbInfo): { modal, }; } - const root = noPersInfs(info.root[aspect]).long; + const root = (aspect === "imperfective") + ? removeAccents(noPersInfs(info.root[aspect]).long) + : noPersInfs(info.root[aspect]).long; const aux = stativeAux.intransitive[aspect]; const nonImperative = addToForm([root, " "], aux.nonImperative); const future = addToForm([baParticle, " "], nonImperative); @@ -481,7 +483,7 @@ function makePassiveContent(info: T.NonComboVerbInfo): { } const simpleVerbParticiple = { past: concatPsString( - noPersInfs(info.root.imperfective).long, + removeAccents(noPersInfs(info.root.imperfective).long), " ", stativeAux.intransitive.info.participle.past as T.PsString, ),