proper accents with the passive forms - I think - not sure about the stative compounds

This commit is contained in:
lingdocs 2022-07-26 16:26:45 -05:00
parent e2cb3504e3
commit 8da8afdd26
2 changed files with 6 additions and 4 deletions

View File

@ -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",

View File

@ -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,
),