some touchups and expose getEnglishVerb

This commit is contained in:
lingdocs 2022-06-21 16:13:46 -05:00
parent 82a7099b35
commit ab24bf7cf9
3 changed files with 3 additions and 3 deletions

View File

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

@ -252,5 +252,5 @@ export function renderEnglishVPBase({ subjectPerson, object, vs }: {
: isImperativeTense(vs.tense)
? imperativeBuilders[vs.tense]
: (vs.voice === "active" ? modalBuilders : passiveModalBuilders)[vs.tense])(subjectPerson, ec, vs.negative);
return base.map(b => `${b}${typeof object === "object" ? " $OBJ" : ""}${ep ? ` ${ep}` : ""}`);
return base.map(b => `${b}${typeof object === "object" ? " $OBJ" : ""}${ep ? ` ${ep}` : ""}`.replace(" ", " ").trim());
}

View File

@ -573,7 +573,7 @@ export type VPSelectionComplete = {
form: FormVersion,
};
export type VerbSelectionComplete = Omit<VerbSelection, "object" | "verbTense" | "perfectTense" | "imperfectiveTense" | "tenseCategory"> & {
export type VerbSelectionComplete = Omit<VerbSelection, "object" | "verbTense" | "perfectTense" | "imperativeTense" | "tenseCategory"> & {
tense: VerbTense | PerfectTense | ModalTense | ImperativeTense,
}