From 3c0ef80de7c4d61ce1301e28cf15d5ec336b1d85 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Sun, 4 Jul 2021 22:14:11 +0300 Subject: [PATCH] fixed english issue with grammatically transitive verbs --- package.json | 2 +- src/lib/add-pronouns.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0e9fa6f..524ceba 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/lib/add-pronouns.ts b/src/lib/add-pronouns.ts index 8f5dea8..d5553af 100644 --- a/src/lib/add-pronouns.ts +++ b/src/lib/add-pronouns.ts @@ -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;