bug
This commit is contained in:
parent
968a8ccf09
commit
e932f636e7
|
@ -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",
|
||||
|
|
|
@ -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"]);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue