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

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