From e932f636e7958b94dc2a810251602e1217ba64b8 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Thu, 8 Jul 2021 14:35:02 +0300 Subject: [PATCH] bug --- package.json | 2 +- src/lib/misc-helpers.test.ts | 2 +- src/lib/misc-helpers.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2e7d3f3..831044f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "0.6.7", + "version": "0.6.8", "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/misc-helpers.test.ts b/src/lib/misc-helpers.test.ts index 73119f6..3592299 100644 --- a/src/lib/misc-helpers.test.ts +++ b/src/lib/misc-helpers.test.ts @@ -18,7 +18,7 @@ test("parseEc should work", () => { expect(parseEc("marry")).toEqual(["marry","marries","marrying","married","married"]); expect(parseEc("get")).toEqual(["get","gets","getting","got","gotten"]); expect(parseEc("become")).toEqual(["become","becomes","becoming","became","become"]); - expect(parseEc("be")).toEqual(["am","is","being","was","have been"]); + expect(parseEc("be")).toEqual(["am","is","being","was","been"]); expect(parseEc("make")).toEqual(["make","makes","making","made","made"]); expect(parseEc("have")).toEqual(["have","has","having","had","had"]); expect(parseEc("die")).toEqual(["die", "dies", "dying", "died", "died"]); diff --git a/src/lib/misc-helpers.ts b/src/lib/misc-helpers.ts index 43faefb..ea8f3c7 100644 --- a/src/lib/misc-helpers.ts +++ b/src/lib/misc-helpers.ts @@ -232,7 +232,7 @@ export function parseEc(ec: string): T.EnglishVerbConjugationEc { return ["have","has","having","had","had"]; } if (s === "be") { - return ["am","is","being","was","have been"]; + return ["am","is","being","was","been"]; } if ((s.slice(-1) === "y") && !isVowel(s.slice(-2)[0])) { const b = s.slice(0, -1);