From 24a245f41e7ca744814bfb6dd3d72ee441fc21bd Mon Sep 17 00:00:00 2001 From: Bill D Date: Fri, 30 Apr 2021 19:10:30 +0300 Subject: [PATCH] fix issue with shortest forms of verbs --- package.json | 2 +- src/lib/add-pronouns.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 25718d5..4c22f3d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "0.3.9", + "version": "0.4.0", "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/add-pronouns.ts b/src/lib/add-pronouns.ts index d31dfe5..39564cf 100644 --- a/src/lib/add-pronouns.ts +++ b/src/lib/add-pronouns.ts @@ -417,9 +417,10 @@ function makeOnlyMiniForm( psRemove(beginning, concatPsString(baParticle, " ")), " ", psStringContains(beginning, concatPsString(baParticle, " ")) ? concatPsString(baParticle, " ") : "", - mini, - negative ? concatPsString(" ", nuParticle) : " ", + negative ? concatPsString(" ", nuParticle, " ") : " ", + (beginning.p || negative) ? concatPsString(mini, " ") : "", end, + (beginning.p || negative) ? "" : concatPsString(" ", mini), ), ]; }