From 8da8afdd26333de36510b60b0c143e615c09d6ac Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Tue, 26 Jul 2022 16:26:45 -0500 Subject: [PATCH] proper accents with the passive forms - I think - not sure about the stative compounds --- package.json | 2 +- src/lib/verb-conjugation.ts | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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, ),