fixed english issue with grammatically transitive verbs

This commit is contained in:
lingdocs 2021-07-04 22:14:11 +03:00
parent 34cadd4515
commit 3c0ef80de7
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -126,8 +126,8 @@ export default function addPronouns({ s, subject, object, info, displayForm, int
mini: miniPronoun,
};
const english = (displayForm.englishBuilder && englishConjugation)
? displayForm.englishBuilder(subject, englishConjugation, negative).map(sen => (
intransitive ? sen : `${sen} ${engObj(object)}`
? displayForm.englishBuilder(subject, englishConjugation, negative).map(baseS => (
(intransitive || info.transitivity === "grammatically transitive") ? baseS : `${baseS} ${engObj(object)}`
)).join(" / ")
: undefined;