This commit is contained in:
lingdocs 2022-07-26 16:21:32 -05:00
parent de13db2e5b
commit e2cb3504e3
2 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@lingdocs/pashto-inflector", "name": "@lingdocs/pashto-inflector",
"version": "3.5.6", "version": "3.5.7",
"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

@ -1086,7 +1086,7 @@ function getPassiveStemAspect(root: T.FullForm<T.PsString>, aspect: T.Aspect): T
}; };
} }
return concatPsString( return concatPsString(
aspect === "perfective" ? removeAccents(getLong(root)) : getLong(root), aspect === "imperfective" ? removeAccents(getLong(root)) : getLong(root),
" ", " ",
stativeAux.intransitive.info.stem[aspect], stativeAux.intransitive.info.stem[aspect],
); );
@ -1101,19 +1101,20 @@ function getPassiveRootAspect(root: T.OptionalPersonInflections<T.LengthOptions<
"femSing": getPassiveRootAspect(root.femPlur, aspect) as T.LengthOptions<T.PsString>, "femSing": getPassiveRootAspect(root.femPlur, aspect) as T.LengthOptions<T.PsString>,
}; };
} }
const rootR = aspect === "imperfective" ? removeAccents(root.long) : root.long
return { return {
long: concatPsString( long: concatPsString(
root.long, rootR,
" ", " ",
// @ts-ignore // @ts-ignore
aspect === "perfective" ? removeAccents(stativeAux.intransitive.info.root[aspect].long) : removeAccents(stativeAux.intransitive.info.root[aspect].long), stativeAux.intransitive.info.root[aspect].long,
), ),
// @ts-ignore // @ts-ignore
short: concatPsString( short: concatPsString(
root.long, rootR,
" ", " ",
// @ts-ignore // @ts-ignore
aspect === "perfective" ? removeAccents(stativeAux.intransitive.info.root[aspect].short) : removeAccents(stativeAux.intransitive.info.root[aspect].short), stativeAux.intransitive.info.root[aspect].short,
), ),
} }
} }