From ac3f930906cb4c4c701b6a2e2aaa5697f0506d29 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Sun, 10 Oct 2021 02:11:41 -0400 Subject: [PATCH] oops --- package.json | 2 +- src/lib/pashto-inflector.test.ts | 2 +- src/lib/pashto-inflector.ts | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 28b0e14..e86a30f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "1.1.8", + "version": "1.1.9", "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 10fff7c..1c7f500 100644 --- a/src/lib/pashto-inflector.test.ts +++ b/src/lib/pashto-inflector.test.ts @@ -545,7 +545,7 @@ const nouns: Array<{ }, // 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"}, + in: {"i":5465,"ts":1527812802,"p":"خر","f":"khur","g":"khur","e":"donkey","c":"n. m. anim. unisex irreg.","infap":"خره","infaf":"khru","infbp":"خر","infbf":"khr"}, out: { inflections: { masc: [ diff --git a/src/lib/pashto-inflector.ts b/src/lib/pashto-inflector.ts index 76ef77e..0d5c365 100644 --- a/src/lib/pashto-inflector.ts +++ b/src/lib/pashto-inflector.ts @@ -499,9 +499,11 @@ function makePlural(w: T.DictionaryEntryNoFVars): { plural: T.PluralInflections if (endsInConsonant(w) && (!w.infap)) { return { arabicPlural, plural: addAnimUnisexPluralSuffix() }; } - if (shortSquish && anim) { + if (shortSquish && !anim) { return { arabicPlural, plural: { masc: addMascPluralSuffix(anim, shortSquish) }}; } + // usually shortSquish nouns would never have arabicPlurals -- so we don't have to worry about catching + // arabic plurals for the animat ones, right? } if ( type === "masc noun" &&