From e2cb3504e3b853bf586c3a8c82c89567370c40e7 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Tue, 26 Jul 2022 16:21:32 -0500 Subject: [PATCH] oops --- package.json | 2 +- src/lib/verb-info.ts | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) 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