This commit is contained in:
lingdocs 2022-06-25 12:26:07 -05:00
parent 4062cedd48
commit 5c599c335f
3 changed files with 11 additions and 14 deletions

View File

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

@ -20,15 +20,15 @@ const labels = (role: "subject" | "object" | "ergative" | "possesor") => ({
// ], // ],
e: role === "object" ? [ e: role === "object" ? [
["me", "us"], ["me", "us"],
["you", "y'all"], ["you", "you (pl.)"],
[{ masc: "him/it", fem: "her/it"}, "them"], [{ masc: "him/it", fem: "her/it"}, "them"],
] : role === "possesor" ? [ ] : role === "possesor" ? [
["my", "our"], ["my", "our"],
["your", "y'all's"], ["your", "your (pl.)"],
[{ masc: "his/its", fem: "her/its"}, "their"], [{ masc: "his/its", fem: "her/its"}, "their"],
] : [ ] : [
["I", "We"], ["I", "We"],
["You", "Y'all"], ["You", "You (pl.)"],
[{ masc: "He/It", fem: "She/It"}, "They"], [{ masc: "He/It", fem: "She/It"}, "They"],
], ],
p: role === "subject" ? { p: role === "subject" ? {

View File

@ -8,18 +8,15 @@ export function renderSandwich(s: T.SandwichSelection<T.Sandwich>): T.Rendered<T
: (s.inside.selection.type === "noun" && isPattern5Entry(s.inside.selection.entry) && isAnimNounEntry(s.inside.selection.entry)) : (s.inside.selection.type === "noun" && isPattern5Entry(s.inside.selection.entry) && isAnimNounEntry(s.inside.selection.entry))
? false ? false
: true; : true;
const inside = renderNPSelection( return {
...s,
inside: renderNPSelection(
s.inside, s.inside,
true, true,
inflectInside, inflectInside,
"subject", "subject",
"none", "none",
); ),
const e = `${s.e} ${inside.selection.e}`;
return {
...s,
e,
inside,
}; };
} }