better imperative

This commit is contained in:
lingdocs 2022-06-21 17:14:06 -05:00
parent 2053690875
commit a0091929be
3 changed files with 4 additions and 4 deletions

View File

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

@ -274,7 +274,7 @@ function compileEnglishVP(VP: T.VPRendered): string[] | undefined {
subject: getEnglishFromRendered(engSubj) || "", subject: getEnglishFromRendered(engSubj) || "",
object: engObj ? getEnglishFromRendered(engObj) : "", object: engObj ? getEnglishFromRendered(engObj) : "",
APs: engAPs, APs: engAPs,
})) })).map(capitalizeFirstLetter)
: undefined; : undefined;
} }

View File

@ -238,10 +238,10 @@ export function renderEnglishVPBase({ subjectPerson, object, vs }: {
(s: T.Person, v: T.EnglishVerbConjugationEc, n: boolean) => string[] (s: T.Person, v: T.EnglishVerbConjugationEc, n: boolean) => string[]
> = { > = {
imperfectiveImperative: (s: T.Person, ec: T.EnglishVerbConjugationEc, n: boolean) => ([ 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) => ([ perfectiveImperative: (s: T.Person, ec: T.EnglishVerbConjugationEc, n: boolean) => ([
`${n ? "don't " : ""}${ec[0]}`, `$SUBJ ${n ? "don't " : ""}${ec[0]}! (command)`,
]), ]),
}; };
const base = ( const base = (