when inflecting words avoid the maashoomo problem
This commit is contained in:
parent
12d79b6311
commit
51f5920e2c
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lingdocs/pashto-inflector",
|
||||
"version": "3.7.2",
|
||||
"version": "3.7.3",
|
||||
"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",
|
||||
|
|
|
@ -52,11 +52,14 @@ export function renderNounSelection(n: T.NounSelection, inflected: boolean, role
|
|||
const infs = inflectWord(n.entry);
|
||||
const ps = n.number === "singular"
|
||||
? getInf(infs, "inflections", n.gender, false, inflected)
|
||||
: [
|
||||
...getInf(infs, "plural", n.gender, true, inflected),
|
||||
: (() => {
|
||||
const plural = getInf(infs, "plural", n.gender, true, inflected);
|
||||
return [
|
||||
...plural,
|
||||
...getInf(infs, "arabicPlural", n.gender, true, inflected),
|
||||
...getInf(infs, "inflections", n.gender, true, inflected),
|
||||
...!plural.length ? getInf(infs, "inflections", n.gender, true, inflected) : [],
|
||||
];
|
||||
})();
|
||||
return ps.length > 0
|
||||
? ps
|
||||
: [psStringFromEntry(n.entry)];
|
||||
|
|
Loading…
Reference in New Issue