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",
"version": "3.0.9",
"version": "3.1.0",
"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",

View File

@ -20,15 +20,15 @@ const labels = (role: "subject" | "object" | "ergative" | "possesor") => ({
// ],
e: role === "object" ? [
["me", "us"],
["you", "y'all"],
["you", "you (pl.)"],
[{ masc: "him/it", fem: "her/it"}, "them"],
] : role === "possesor" ? [
["my", "our"],
["your", "y'all's"],
["your", "your (pl.)"],
[{ masc: "his/its", fem: "her/its"}, "their"],
] : [
["I", "We"],
["You", "Y'all"],
["You", "You (pl.)"],
[{ masc: "He/It", fem: "She/It"}, "They"],
],
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))
? false
: true;
const inside = renderNPSelection(
return {
...s,
inside: renderNPSelection(
s.inside,
true,
inflectInside,
"subject",
"none",
);
const e = `${s.e} ${inside.selection.e}`;
return {
...s,
e,
inside,
),
};
}