From 2053690875578391690a7746d9ef57592261b1c6 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Tue, 21 Jun 2022 16:30:51 -0500 Subject: [PATCH] up --- package.json | 2 +- src/lib/grammar-units.ts | 20 ++++++++++---------- src/lib/phrase-building/compile.ts | 3 ++- src/library.ts | 2 ++ 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index c063d22..4725e09 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "3.0.1", + "version": "3.0.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/grammar-units.ts b/src/lib/grammar-units.ts index 3921636..be7e7ec 100644 --- a/src/lib/grammar-units.ts +++ b/src/lib/grammar-units.ts @@ -675,43 +675,43 @@ export const persons = [ person: 1, }, { - label: { subject: "You (m.)", object: "you (m.)" }, + label: { subject: "you (m.)", object: "you (m.)" }, person: 2, }, { - label: { subject: "You (f.)", object: "you (f.)" }, + label: { subject: "you (f.)", object: "you (f.)" }, person: 3, }, { - label: { subject: "He/it (m.)", object: "him/it (m.)" }, + label: { subject: "he/it (m.)", object: "him/it (m.)" }, person: 4, }, { - label: { subject: "She/it (f.)", object: "her/it (f.)" }, + label: { subject: "she/it (f.)", object: "her/it (f.)" }, person: 5, }, { - label: { subject: "We (m. pl.)", object: "us (m. pl.)" }, + label: { subject: "we (m. pl.)", object: "us (m. pl.)" }, person: 6, }, { - label: { subject: "We (f. pl.)", object: "us (f. pl.)" }, + label: { subject: "we (f. pl.)", object: "us (f. pl.)" }, person: 7, }, { - label: { subject: "You (m. pl.)", object: "you (m. pl.)" }, + label: { subject: "you (m. pl.)", object: "you (m. pl.)" }, person: 8, }, { - label: { subject: "You (f. pl.)", object: "you (f. pl.)" }, + label: { subject: "you (f. pl.)", object: "you (f. pl.)" }, person: 9, }, { - label: { subject: "They (m. pl.)", object: "them (m. pl.)" }, + label: { subject: "they (m. pl.)", object: "them (m. pl.)" }, person: 10, }, { - label: { subject: "They (f. pl.)", object: "them (f. pl.)" }, + label: { subject: "they (f. pl.)", object: "them (f. pl.)" }, person: 11, }, ]; diff --git a/src/lib/phrase-building/compile.ts b/src/lib/phrase-building/compile.ts index 381bb08..50950f3 100644 --- a/src/lib/phrase-building/compile.ts +++ b/src/lib/phrase-building/compile.ts @@ -1,5 +1,6 @@ import * as T from "../../types"; import { + capitalizeFirstLetter, concatPsString, getLong, getShort, } from "../p-text-helpers"; import { negativeParticle } from "../../lib/grammar-units"; @@ -294,7 +295,7 @@ function compileEnglishEP(EP: T.EPRendered): string[] | undefined { APs: engAPs, })) : undefined; - return b; + return b?.map(capitalizeFirstLetter); } export function checkForMiniPronounsError(s: T.EPSelectionState | T.VPSelectionState): undefined | string { diff --git a/src/library.ts b/src/library.ts index cf73096..5ffdc34 100644 --- a/src/library.ts +++ b/src/library.ts @@ -63,6 +63,7 @@ import { randomPerson, isInvalidSubjObjCombo, randomSubjObj, + getEnglishVerb, } from "./lib/np-tools"; import { getEnglishFromRendered, @@ -226,6 +227,7 @@ export { getEnglishFromRendered, getPashtoFromRendered, renderAPSelection, + getEnglishVerb, // protobuf helpers readDictionary, writeDictionary,