VERB placeholder in phrase builder when a verb lacks ec info
This commit is contained in:
parent
102232f559
commit
e68e143e95
|
@ -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",
|
||||
|
|
|
@ -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`];
|
||||
|
|
Loading…
Reference in New Issue