fix darkawul warkawul etc

This commit is contained in:
lingdocs 2022-07-05 19:17:33 -05:00
parent 216408f035
commit 019df3ef28
3 changed files with 1389 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@lingdocs/pashto-inflector", "name": "@lingdocs/pashto-inflector",
"version": "3.2.6", "version": "3.2.7",
"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",

File diff suppressed because it is too large Load Diff

View File

@ -38,6 +38,7 @@ import {
inflectWord, inflectWord,
} from "./pashto-inflector"; } from "./pashto-inflector";
import { import {
checkForIrregularConjugation,
stativeAux, stativeAux,
} from "./irregular-conjugations"; } from "./irregular-conjugations";
import { import {
@ -70,6 +71,10 @@ export function getVerbInfo(
complmnt?: T.DictionaryEntry, complmnt?: T.DictionaryEntry,
): T.VerbInfo { ): T.VerbInfo {
const entry = removeFVarients(ent); const entry = removeFVarients(ent);
const irregularConj = checkForIrregularConjugation(entry);
if (irregularConj) {
return irregularConj.info;
}
const complement = (complmnt && ent.c?.includes("comp.")) ? 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") {