prevent l being treated as a compound for non compound verbs

This commit is contained in:
lingdocs 2022-04-18 19:18:22 +05:00
parent e0e072491f
commit b6b742c905
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@lingdocs/pashto-inflector", "name": "@lingdocs/pashto-inflector",
"version": "2.1.0", "version": "2.1.1",
"author": "lingdocs.com", "author": "lingdocs.com",
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
"homepage": "https://verbs.lingdocs.com", "homepage": "https://verbs.lingdocs.com",

View File

@ -69,7 +69,7 @@ export function getVerbInfo(
complmnt?: T.DictionaryEntry, complmnt?: T.DictionaryEntry,
): T.VerbInfo { ): T.VerbInfo {
const entry = removeFVarients(ent); const entry = removeFVarients(ent);
const complement = complmnt ? removeFVarients(complmnt) : undefined; const complement = (complmnt && ent.c?.includes("comp.")) ? removeFVarients(complmnt) : undefined;
const type = getType(entry); const type = getType(entry);
if (type === "transitive or grammatically transitive simple") { if (type === "transitive or grammatically transitive simple") {
return { return {