diff --git a/package.json b/package.json index 13f30d9..28b0e14 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "1.1.7", + "version": "1.1.8", "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-inflector.test.ts b/src/lib/pashto-inflector.test.ts index ebefcc9..10fff7c 100644 --- a/src/lib/pashto-inflector.test.ts +++ b/src/lib/pashto-inflector.test.ts @@ -543,7 +543,7 @@ const nouns: Array<{ }, }, }, - // should also do the oona plural with the squish nouns, even if it's animate + // should NOT do the oona plural with the squish nouns, when they're animate { in: {"i":5465,"ts":1527812802,"p":"خر","f":"khur","g":"khur","e":"donkey","c":"n. m. unisex irreg.","infap":"خره","infaf":"khru","infbp":"خر","infbf":"khr"}, out: { @@ -559,12 +559,6 @@ const nouns: Array<{ [{ p: "خرو", f: "khro" }], ], }, - plural: { - masc: [ - [{ p: "خرونه", f: "khróona" }], - [{ p: "خرونو", f: "khróono" }], - ], - }, }, }, // masc plural diff --git a/src/lib/pashto-inflector.ts b/src/lib/pashto-inflector.ts index 1884822..76ef77e 100644 --- a/src/lib/pashto-inflector.ts +++ b/src/lib/pashto-inflector.ts @@ -499,7 +499,7 @@ function makePlural(w: T.DictionaryEntryNoFVars): { plural: T.PluralInflections if (endsInConsonant(w) && (!w.infap)) { return { arabicPlural, plural: addAnimUnisexPluralSuffix() }; } - if (shortSquish) { + if (shortSquish && anim) { return { arabicPlural, plural: { masc: addMascPluralSuffix(anim, shortSquish) }}; } }