This commit is contained in:
lingdocs 2022-06-21 16:30:51 -05:00
parent ab24bf7cf9
commit 2053690875
4 changed files with 15 additions and 12 deletions

View File

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

@ -675,43 +675,43 @@ export const persons = [
person: 1, person: 1,
}, },
{ {
label: { subject: "You (m.)", object: "you (m.)" }, label: { subject: "you (m.)", object: "you (m.)" },
person: 2, person: 2,
}, },
{ {
label: { subject: "You (f.)", object: "you (f.)" }, label: { subject: "you (f.)", object: "you (f.)" },
person: 3, person: 3,
}, },
{ {
label: { subject: "He/it (m.)", object: "him/it (m.)" }, label: { subject: "he/it (m.)", object: "him/it (m.)" },
person: 4, person: 4,
}, },
{ {
label: { subject: "She/it (f.)", object: "her/it (f.)" }, label: { subject: "she/it (f.)", object: "her/it (f.)" },
person: 5, person: 5,
}, },
{ {
label: { subject: "We (m. pl.)", object: "us (m. pl.)" }, label: { subject: "we (m. pl.)", object: "us (m. pl.)" },
person: 6, person: 6,
}, },
{ {
label: { subject: "We (f. pl.)", object: "us (f. pl.)" }, label: { subject: "we (f. pl.)", object: "us (f. pl.)" },
person: 7, person: 7,
}, },
{ {
label: { subject: "You (m. pl.)", object: "you (m. pl.)" }, label: { subject: "you (m. pl.)", object: "you (m. pl.)" },
person: 8, person: 8,
}, },
{ {
label: { subject: "You (f. pl.)", object: "you (f. pl.)" }, label: { subject: "you (f. pl.)", object: "you (f. pl.)" },
person: 9, person: 9,
}, },
{ {
label: { subject: "They (m. pl.)", object: "them (m. pl.)" }, label: { subject: "they (m. pl.)", object: "them (m. pl.)" },
person: 10, person: 10,
}, },
{ {
label: { subject: "They (f. pl.)", object: "them (f. pl.)" }, label: { subject: "they (f. pl.)", object: "them (f. pl.)" },
person: 11, person: 11,
}, },
]; ];

View File

@ -1,5 +1,6 @@
import * as T from "../../types"; import * as T from "../../types";
import { import {
capitalizeFirstLetter,
concatPsString, getLong, getShort, concatPsString, getLong, getShort,
} from "../p-text-helpers"; } from "../p-text-helpers";
import { negativeParticle } from "../../lib/grammar-units"; import { negativeParticle } from "../../lib/grammar-units";
@ -294,7 +295,7 @@ function compileEnglishEP(EP: T.EPRendered): string[] | undefined {
APs: engAPs, APs: engAPs,
})) }))
: undefined; : undefined;
return b; return b?.map(capitalizeFirstLetter);
} }
export function checkForMiniPronounsError(s: T.EPSelectionState | T.VPSelectionState): undefined | string { export function checkForMiniPronounsError(s: T.EPSelectionState | T.VPSelectionState): undefined | string {

View File

@ -63,6 +63,7 @@ import {
randomPerson, randomPerson,
isInvalidSubjObjCombo, isInvalidSubjObjCombo,
randomSubjObj, randomSubjObj,
getEnglishVerb,
} from "./lib/np-tools"; } from "./lib/np-tools";
import { import {
getEnglishFromRendered, getEnglishFromRendered,
@ -226,6 +227,7 @@ export {
getEnglishFromRendered, getEnglishFromRendered,
getPashtoFromRendered, getPashtoFromRendered,
renderAPSelection, renderAPSelection,
getEnglishVerb,
// protobuf helpers // protobuf helpers
readDictionary, readDictionary,
writeDictionary, writeDictionary,