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", "name": "@lingdocs/pashto-inflector",
"version": "3.5.7", "version": "3.5.8",
"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",

View File

@ -32,7 +32,7 @@ import {
inflectYey, inflectYey,
} from "./pashto-inflector"; } from "./pashto-inflector";
import { import {
accentOnNFromEnd, accentOnNFromEnd, removeAccents,
} from "./accent-helpers"; } from "./accent-helpers";
import { pashtoConsonants } from "./pashto-consonants"; import { pashtoConsonants } from "./pashto-consonants";
import { import {
@ -462,7 +462,9 @@ function makePassiveContent(info: T.NonComboVerbInfo): {
modal, 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 aux = stativeAux.intransitive[aspect];
const nonImperative = addToForm([root, " "], aux.nonImperative); const nonImperative = addToForm([root, " "], aux.nonImperative);
const future = addToForm([baParticle, " "], nonImperative); const future = addToForm([baParticle, " "], nonImperative);
@ -481,7 +483,7 @@ function makePassiveContent(info: T.NonComboVerbInfo): {
} }
const simpleVerbParticiple = { const simpleVerbParticiple = {
past: concatPsString( past: concatPsString(
noPersInfs(info.root.imperfective).long, removeAccents(noPersInfs(info.root.imperfective).long),
" ", " ",
stativeAux.intransitive.info.participle.past as T.PsString, stativeAux.intransitive.info.participle.past as T.PsString,
), ),