From 96be0e0a2868f66ba518b8997c2c9e05d0e9788c Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Tue, 20 Jul 2021 15:44:30 +0300 Subject: [PATCH] oops full fix of third pers english conjugation error --- package.json | 2 +- src/lib/conjugation-forms.tsx | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 11e7668..46badc8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "0.8.2", + "version": "0.8.3", "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/conjugation-forms.tsx b/src/lib/conjugation-forms.tsx index 9e6cad2..d6792c3 100644 --- a/src/lib/conjugation-forms.tsx +++ b/src/lib/conjugation-forms.tsx @@ -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 { return ( p === T.Person.ThirdSingMale || @@ -700,7 +691,7 @@ function engEquative(tense: "past" | "present", 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 {