fix oona endings on animat squish nouns like ghul

This commit is contained in:
lingdocs 2021-10-10 02:00:44 -04:00
parent a303bf6032
commit 6d3467147d
3 changed files with 3 additions and 9 deletions

View File

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

View File

@ -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"}, in: {"i":5465,"ts":1527812802,"p":"خر","f":"khur","g":"khur","e":"donkey","c":"n. m. unisex irreg.","infap":"خره","infaf":"khru","infbp":"خر","infbf":"khr"},
out: { out: {
@ -559,12 +559,6 @@ const nouns: Array<{
[{ p: "خرو", f: "khro" }], [{ p: "خرو", f: "khro" }],
], ],
}, },
plural: {
masc: [
[{ p: "خرونه", f: "khróona" }],
[{ p: "خرونو", f: "khróono" }],
],
},
}, },
}, },
// masc plural // masc plural

View File

@ -499,7 +499,7 @@ function makePlural(w: T.DictionaryEntryNoFVars): { plural: T.PluralInflections
if (endsInConsonant(w) && (!w.infap)) { if (endsInConsonant(w) && (!w.infap)) {
return { arabicPlural, plural: addAnimUnisexPluralSuffix() }; return { arabicPlural, plural: addAnimUnisexPluralSuffix() };
} }
if (shortSquish) { if (shortSquish && anim) {
return { arabicPlural, plural: { masc: addMascPluralSuffix(anim, shortSquish) }}; return { arabicPlural, plural: { masc: addMascPluralSuffix(anim, shortSquish) }};
} }
} }