fix issue with shortest forms of verbs

This commit is contained in:
Bill D 2021-04-30 19:10:30 +03:00
parent 2615e5f104
commit 24a245f41e
2 changed files with 4 additions and 3 deletions

View File

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

@ -417,9 +417,10 @@ function makeOnlyMiniForm(
psRemove(beginning, concatPsString(baParticle, " ")), psRemove(beginning, concatPsString(baParticle, " ")),
" ", " ",
psStringContains(beginning, concatPsString(baParticle, " ")) ? concatPsString(baParticle, " ") : "", psStringContains(beginning, concatPsString(baParticle, " ")) ? concatPsString(baParticle, " ") : "",
mini, negative ? concatPsString(" ", nuParticle, " ") : " ",
negative ? concatPsString(" ", nuParticle) : " ", (beginning.p || negative) ? concatPsString(mini, " ") : "",
end, end,
(beginning.p || negative) ? "" : concatPsString(" ", mini),
), ),
]; ];
} }