From 80b22d98adc9f141d0407eebcc2885f8660901f6 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Tue, 19 Oct 2021 21:24:05 -0400 Subject: [PATCH] oops forgot x in the consonants! --- package.json | 2 +- src/lib/pashto-consonants.ts | 2 +- src/lib/pashto-inflector.test.ts | 11 +++++++++++ src/lib/pashto-inflector.ts | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3c3d820..f9e2e3c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "1.3.0", + "version": "1.3.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/pashto-consonants.ts b/src/lib/pashto-consonants.ts index 156fdcb..e856d43 100644 --- a/src/lib/pashto-consonants.ts +++ b/src/lib/pashto-consonants.ts @@ -8,5 +8,5 @@ export const pashtoConsonants = ["ب", "پ", "ت", "ټ", "ث", "ج", "چ", "ح", "خ", "څ", "ځ", "د", "ډ", "ذ", "ر", "ړ", "ز", "ژ", "ږ", "س", "ش", "ښ", "ص", "ض", "ط", "ظ", "غ", "ف", "ق", "ک", "ګ", "گ", "ل", "ل", "م", "ن", "ڼ"]; export const phoneticsConsonants = [ - "b", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "w", "z", + "b", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "w", "x", "z", ]; \ No newline at end of file diff --git a/src/lib/pashto-inflector.test.ts b/src/lib/pashto-inflector.test.ts index 7f40c45..2acf19d 100644 --- a/src/lib/pashto-inflector.test.ts +++ b/src/lib/pashto-inflector.test.ts @@ -668,6 +668,17 @@ const nouns: Array<{ }, }, }, + { + in: {"ts":1527816746,"i":9017,"p":"غاښ","f":"ghaax","g":"ghaax","e":"tooth","c":"n. m.","ec":"tooth","ep":"teeth"}, + out: { + plural: { + masc: [ + [{ p: "غاښونه", f: "ghaaxóona" }], + [{ p: "غاښونو", f: "ghaaxóono" }], + ], + }, + }, + }, { in: {"ts":1527815394,"i":13991,"p":"واده","f":"waadú","g":"waadu","e":"wedding, marriage","c":"n. m.","ppp":"ودونه","ppf":"wadóona"}, out: { diff --git a/src/lib/pashto-inflector.ts b/src/lib/pashto-inflector.ts index 76d0c43..b45c04c 100644 --- a/src/lib/pashto-inflector.ts +++ b/src/lib/pashto-inflector.ts @@ -543,7 +543,7 @@ function makePlural(w: T.DictionaryEntryNoFVars): { plural: T.PluralInflections type === "masc noun" && (shortSquish || ((endsInConsonant(w) || endsInShwa(w)) && (!w.infap))) && (w.p.slice(-3) !== "توب") - ) { + ) { return { arabicPlural, plural: {