From a0091929be2239b142e1d846ad0a68df9a4610f9 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Tue, 21 Jun 2022 17:14:06 -0500 Subject: [PATCH] better imperative --- package.json | 2 +- src/lib/phrase-building/compile.ts | 2 +- src/lib/phrase-building/english-vp-rendering.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 4725e09..efe43cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "3.0.2", + "version": "3.0.3", "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/phrase-building/compile.ts b/src/lib/phrase-building/compile.ts index 50950f3..c45ac21 100644 --- a/src/lib/phrase-building/compile.ts +++ b/src/lib/phrase-building/compile.ts @@ -274,7 +274,7 @@ function compileEnglishVP(VP: T.VPRendered): string[] | undefined { subject: getEnglishFromRendered(engSubj) || "", object: engObj ? getEnglishFromRendered(engObj) : "", APs: engAPs, - })) + })).map(capitalizeFirstLetter) : undefined; } diff --git a/src/lib/phrase-building/english-vp-rendering.ts b/src/lib/phrase-building/english-vp-rendering.ts index a6d4469..e112e32 100644 --- a/src/lib/phrase-building/english-vp-rendering.ts +++ b/src/lib/phrase-building/english-vp-rendering.ts @@ -238,10 +238,10 @@ export function renderEnglishVPBase({ subjectPerson, object, vs }: { (s: T.Person, v: T.EnglishVerbConjugationEc, n: boolean) => string[] > = { imperfectiveImperative: (s: T.Person, ec: T.EnglishVerbConjugationEc, n: boolean) => ([ - `${n ? "don't " : ""}${ec[0]}`, + `$SUBJ ${n ? "don't " : ""}${ec[0]}! (command)`, ]), perfectiveImperative: (s: T.Person, ec: T.EnglishVerbConjugationEc, n: boolean) => ([ - `${n ? "don't " : ""}${ec[0]}`, + `$SUBJ ${n ? "don't " : ""}${ec[0]}! (command)`, ]), }; const base = (