getEnglish adverb support'
This commit is contained in:
parent
f6826f2289
commit
62e5e47080
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lingdocs/pashto-inflector",
|
||||
"version": "1.3.2",
|
||||
"version": "1.3.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",
|
||||
|
|
|
@ -14,7 +14,8 @@ export function getEnglishWord(entry: T.DictionaryEntry): {
|
|||
if (!entry.c) return undefined;
|
||||
const isNoun = entry.c.includes("n.");
|
||||
const isAdj = entry.c.includes("adj.");
|
||||
if (!isNoun && !isAdj) return undefined;
|
||||
const isAdv = entry.c.includes("adv.");
|
||||
if (!isNoun && !isAdj && !isAdv) return undefined;
|
||||
const base = entry.e.split(",")[0].split(";")[0].split("(")[0].trim();
|
||||
if (isAdj && !isNoun) {
|
||||
return base;
|
||||
|
|
Loading…
Reference in New Issue