From 62e5e4708066d2c5973ea0d2d32636794f9b6a20 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Sat, 30 Oct 2021 22:31:22 -0400 Subject: [PATCH] getEnglish adverb support' --- package.json | 2 +- src/lib/get-english-word.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fba8443..aaed4a8 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/lib/get-english-word.ts b/src/lib/get-english-word.ts index fb3e203..0784fa4 100644 --- a/src/lib/get-english-word.ts +++ b/src/lib/get-english-word.ts @@ -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;