diff --git a/package.json b/package.json index e321a84..e65bf2a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "3.5.6", + "version": "3.5.7", "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-info.ts b/src/lib/verb-info.ts index 67f49ad..7731917 100644 --- a/src/lib/verb-info.ts +++ b/src/lib/verb-info.ts @@ -1086,7 +1086,7 @@ function getPassiveStemAspect(root: T.FullForm, aspect: T.Aspect): T }; } return concatPsString( - aspect === "perfective" ? removeAccents(getLong(root)) : getLong(root), + aspect === "imperfective" ? removeAccents(getLong(root)) : getLong(root), " ", stativeAux.intransitive.info.stem[aspect], ); @@ -1101,19 +1101,20 @@ function getPassiveRootAspect(root: T.OptionalPersonInflections, }; } + const rootR = aspect === "imperfective" ? removeAccents(root.long) : root.long return { long: concatPsString( - root.long, + rootR, " ", // @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 short: concatPsString( - root.long, + rootR, " ", // @ts-ignore - aspect === "perfective" ? removeAccents(stativeAux.intransitive.info.root[aspect].short) : removeAccents(stativeAux.intransitive.info.root[aspect].short), + stativeAux.intransitive.info.root[aspect].short, ), } } \ No newline at end of file