diff --git a/package.json b/package.json index 7ea2fbd..f8470b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "3.1.6", + "version": "3.1.7", "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.ts b/src/lib/misc-helpers.ts index 84f4f5d..0d62e6d 100644 --- a/src/lib/misc-helpers.ts +++ b/src/lib/misc-helpers.ts @@ -240,7 +240,9 @@ export function parseEc(ec: string): T.EnglishVerbConjugationEc { const b = s.slice(0, -2); return [`${s}`, `${s}s`, `${b}ying`, `${s}d`, `${s}d`]; } - const b = (s.slice(-1) === "e") + const b = s === "" + ? "VERB" + : (s.slice(-1) === "e") ? s.slice(0, -1) : s; return [`${s}`, `${s}s`, `${b}ing`, `${b}ed`, `${b}ed`];