OOPS big error inflecting subject nouns

This commit is contained in:
lingdocs 2022-08-30 18:13:52 +04:00
parent 02a78b6fcf
commit 3cf19acbf7
3 changed files with 2 additions and 3 deletions

View File

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

@ -48,7 +48,7 @@ export function renderNPSelection(NP: T.NPSelection, inflected: boolean, inflect
export function renderNounSelection(n: T.NounSelection, inflected: boolean, role: "servant" | "king" | "none", noArticles?: true | "noArticles", isPuSandwich?: boolean): T.Rendered<T.NounSelection> {
const english = getEnglishFromNoun(n.entry, n.number, noArticles);
const nounInflects = !(isPuSandwich && isPattern1Entry(n.entry) && n.number === "singular")
const nounInflects = inflected && !(isPuSandwich && isPattern1Entry(n.entry) && n.number === "singular");
const pashto = ((): T.PsString[] => {
const infs = inflectWord(n.entry);
const ps = n.number === "singular"

View File

@ -53,7 +53,6 @@ export function renderVP(VP: T.VPSelectionComplete): T.VPRendered {
}
const subjectPerson = getPersonFromNP(subject);
const objectPerson = getPersonFromNP(object);
// TODO: also don't inflect if it's a pattern one animate noun
const inflectSubject = isPast && isTransitive && !isMascSingAnimatePattern4(subject);
const inflectObject = !isPast && isFirstOrSecondPersPronoun(object);
// Render Elements