oops full fix of third pers english conjugation error
This commit is contained in:
parent
a909ff533f
commit
96be0e0a28
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lingdocs/pashto-inflector",
|
"name": "@lingdocs/pashto-inflector",
|
||||||
"version": "0.8.2",
|
"version": "0.8.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",
|
||||||
|
|
|
@ -674,15 +674,6 @@ export const getForms = ({ conj, filterFunc, mode, subject, object, sentenceLeve
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function isThirdPerson(p: T.Person): boolean {
|
|
||||||
return (
|
|
||||||
p === T.Person.ThirdSingMale ||
|
|
||||||
p === T.Person.ThirdSingFemale ||
|
|
||||||
p === T.Person.ThirdPlurMale ||
|
|
||||||
p === T.Person.ThirdPlurFemale
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function isThirdPersonSing(p: T.Person): boolean {
|
function isThirdPersonSing(p: T.Person): boolean {
|
||||||
return (
|
return (
|
||||||
p === T.Person.ThirdSingMale ||
|
p === T.Person.ThirdSingMale ||
|
||||||
|
@ -700,7 +691,7 @@ function engEquative(tense: "past" | "present", s: T.Person): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
function engHave(s: T.Person): string {
|
function engHave(s: T.Person): string {
|
||||||
return isThirdPerson(s) ? "has" : "have";
|
return isThirdPersonSing(s) ? "has" : "have";
|
||||||
}
|
}
|
||||||
|
|
||||||
function engSubj(s: T.Person, lowerCase?: boolean): string {
|
function engSubj(s: T.Person, lowerCase?: boolean): string {
|
||||||
|
|
Loading…
Reference in New Issue