more
This commit is contained in:
parent
47551aa7dd
commit
9242c9577b
|
@ -499,6 +499,17 @@ const nouns: Array<{
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
in: {"i":11352,"ts":1527813995,"p":"لو","f":"law, lau","g":"law,lau","e":"harvesting, reaping, hay-making; mowed, reaped, harvested","c":"n. m."},
|
||||||
|
out: {
|
||||||
|
plural: {
|
||||||
|
masc: [
|
||||||
|
[{ p: "لوونه", f: "lawóona" }],
|
||||||
|
[{ p: "لوونو", f: "lawóono" }],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
// ## FEMININE
|
// ## FEMININE
|
||||||
// Feminine regular ending in ه
|
// Feminine regular ending in ه
|
||||||
{
|
{
|
||||||
|
@ -713,6 +724,18 @@ const nouns: Array<{
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
// Feminine regular ending in و
|
||||||
|
{
|
||||||
|
in: {"i":2899,"ts":1527815163,"p":"پیشو","f":"peeshó","g":"peesho","e":"cat","c":"n. f. anim."},
|
||||||
|
out: {
|
||||||
|
plural: {
|
||||||
|
fem: [
|
||||||
|
[{ p: "پیشووې", f: "peeshówe" }, { p: "پیشوګانې", f: "peeshogáane" }],
|
||||||
|
[{ p: "پیشووو", f: "peeshówo" }, { p: "پیشوګانو", f: "peeshogáano" }],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
// Feminine regular ending in اع
|
// Feminine regular ending in اع
|
||||||
{
|
{
|
||||||
in: {
|
in: {
|
||||||
|
@ -734,6 +757,7 @@ const nouns: Array<{
|
||||||
// },
|
// },
|
||||||
// },
|
// },
|
||||||
},
|
},
|
||||||
|
// TODO: Plaar plaroona paaraan - wrooNa
|
||||||
// Word with no inflections
|
// Word with no inflections
|
||||||
{
|
{
|
||||||
in: {
|
in: {
|
||||||
|
|
|
@ -121,7 +121,6 @@ function handleMascNoun(w: T.DictionaryEntryNoFVars): T.InflectorOutput {
|
||||||
|
|
||||||
function handleFemNoun(word: T.DictionaryEntryNoFVars): T.InflectorOutput {
|
function handleFemNoun(word: T.DictionaryEntryNoFVars): T.InflectorOutput {
|
||||||
// Get first of comma seperated phonetics entries
|
// Get first of comma seperated phonetics entries
|
||||||
const f = word.f.split(",")[0].trim();
|
|
||||||
/* istanbul ignore next */ // will always have word.c at this point
|
/* istanbul ignore next */ // will always have word.c at this point
|
||||||
const c = word.c || "";
|
const c = word.c || "";
|
||||||
const animate = c.includes("anim.");
|
const animate = c.includes("anim.");
|
||||||
|
@ -129,20 +128,20 @@ function handleFemNoun(word: T.DictionaryEntryNoFVars): T.InflectorOutput {
|
||||||
|
|
||||||
const plural = makePlural(word);
|
const plural = makePlural(word);
|
||||||
|
|
||||||
if (endingInHeyOrAynRegex.test(word.p) && endingInSingleARegex.test(f)) {
|
if (endingInHeyOrAynRegex.test(word.p) && endingInSingleARegex.test(word.f)) {
|
||||||
return { inflections: inflectRegularAFem(word.p, f), plural };
|
return { inflections: inflectRegularAFem(word.p, word.f), plural };
|
||||||
}
|
}
|
||||||
if (word.p.slice(-1) === "ح" && endingInSingleARegex.test(f)) {
|
if (word.p.slice(-1) === "ح" && endingInSingleARegex.test(word.f)) {
|
||||||
return { inflections: inflectRegularAWithHimPEnding(word.p, f), plural };
|
return { inflections: inflectRegularAWithHimPEnding(word.p, word.f), plural };
|
||||||
}
|
}
|
||||||
if (pashtoConsonants.includes(pEnd) && !animate) {
|
if (pashtoConsonants.includes(pEnd) && !animate) {
|
||||||
return { inflections: inflectRegularInanMissingAFem(word.p, f), plural };
|
return { inflections: inflectRegularInanMissingAFem(word.p, word.f), plural };
|
||||||
}
|
}
|
||||||
if (pEnd === "ي" && (!animate)) {
|
if (pEnd === "ي" && (!animate)) {
|
||||||
return { inflections: inflectRegularInanEeFem(word.p, f), plural };
|
return { inflections: inflectRegularInanEeFem(word.p, word.f), plural };
|
||||||
}
|
}
|
||||||
if (pEnd === "ۍ") {
|
if (pEnd === "ۍ") {
|
||||||
return { inflections: inflectRegularUyFem(word.p, f), plural };
|
return { inflections: inflectRegularUyFem(word.p, word.f), plural };
|
||||||
}
|
}
|
||||||
// if (endingInAlefRegex.test(word.p)) {
|
// if (endingInAlefRegex.test(word.p)) {
|
||||||
// return { inflections: inflectRegularAaFem(word.p, f) };
|
// return { inflections: inflectRegularAaFem(word.p, f) };
|
||||||
|
|
Loading…
Reference in New Issue