From 198bae9f074ef1278bcc64381d97958b94912a85 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Fri, 16 Jul 2021 01:58:38 +0300 Subject: [PATCH] fixed verb info for kawul verbs --- package.json | 2 +- src/lib/verb-info.test.ts | 8 ++++++++ src/lib/verb-info.ts | 14 ++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b56f6de..5c9f112 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "0.7.9", + "version": "0.8.0", "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.test.ts b/src/lib/verb-info.test.ts index 483db7d..044279d 100644 --- a/src/lib/verb-info.test.ts +++ b/src/lib/verb-info.test.ts @@ -1218,6 +1218,10 @@ const toTest = [ f: "kawóonkey", }, }, + idiosyncraticThirdMascSing: { + perfective: { p: "وکړ", f: "óokuR" }, + imperfective: { p: "کاوه", f: "kaawú" }, + }, }, }, { @@ -1254,6 +1258,10 @@ const toTest = [ f: "kawóonkey", }, }, + idiosyncraticThirdMascSing: { + perfective: { p: "کړ", f: "kuR" }, + imperfective: { p: "کاوه", f: "kaawú" }, + }, }, }, { diff --git a/src/lib/verb-info.ts b/src/lib/verb-info.ts index d15836a..51e2e83 100644 --- a/src/lib/verb-info.ts +++ b/src/lib/verb-info.ts @@ -432,6 +432,20 @@ function getIdiosyncraticThirdMascSing(entry: T.DictionaryEntry): T.ShortThirdPe perfective: ooRes.ps as T.PsString, }; } + if (entry.p === "کول") { + if (entry.e.includes("to make")) { + return { + perfective: { p: "کړ", f: "kuR" }, + imperfective: { p: "کاوه", f: "kaawú" }, + }; + } + if (entry.e.includes("to do")) { + return { + perfective: { p: "وکړ", f: "óokuR" }, + imperfective: { p: "کاوه", f: "kaawú" }, + }; + } + } return false; }