From b6b742c905f67a3dc1d4147a88b9005d6952896e Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Mon, 18 Apr 2022 19:18:22 +0500 Subject: [PATCH] prevent l being treated as a compound for non compound verbs --- package.json | 2 +- src/lib/verb-info.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a45244d..7ddff84 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "2.1.0", + "version": "2.1.1", "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/verb-info.ts b/src/lib/verb-info.ts index 4a4be4a..42a3d66 100644 --- a/src/lib/verb-info.ts +++ b/src/lib/verb-info.ts @@ -69,7 +69,7 @@ export function getVerbInfo( complmnt?: T.DictionaryEntry, ): T.VerbInfo { const entry = removeFVarients(ent); - const complement = complmnt ? removeFVarients(complmnt) : undefined; + const complement = (complmnt && ent.c?.includes("comp.")) ? removeFVarients(complmnt) : undefined; const type = getType(entry); if (type === "transitive or grammatically transitive simple") { return {