Skip to content

Commit

Permalink
[yi] Add missing plural forms from Israeli-Haredi yiddish
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatsItForTheOtherOne committed Dec 30, 2024
1 parent e2fc2bc commit 86b12a8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ext/js/language/yi/yiddish-transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ export const yiddishTransforms = {
suffixInflection('\u05E2\u05DF', '', ['np'], ['ns']), // -en
suffixInflection('\u05E2\u05E1', '', ['np'], ['ns']), // -es
suffixInflection('\u05D5\u05EA', '', ['np'], ['ns']), // -ot, hebrew
suffixInflection('\u05E0\u05E1', '', ['np'], ['ns']), // -ns
suffixInflection('\u05E2\u05E8\u05E2\u05DF', '', ['np'], ['ns']), // -eren
suffixInflection('\u05E2\u05E0\u05E2\u05E1', '', ['np'], ['ns']), // -enes
suffixInflection('\u05E2\u05E0\u05E1', '', ['np'], ['ns']), // -ens
suffixInflection('\u05E2\u05E8\u05E1', '', ['np'], ['ns']), // -ers
suffixInflection('\u05E1\u05E2\u05E8', '', ['np'], ['ns']), // -ser
],
},
umlaut_plural: {
Expand All @@ -117,6 +123,9 @@ export const yiddishTransforms = {
...umlautMutationSuffixInflection('\u05D9\u05DD', '', ['np'], ['ns']), // -im
...umlautMutationSuffixInflection('\u05E2\u05DF', '', ['np'], ['ns']), // -en
...umlautMutationSuffixInflection('\u05DF', '', ['np'], ['ns']), // -n
...umlautMutationSuffixInflection('\u05E1', '', ['np'], ['ns']), // -s
...umlautMutationSuffixInflection('\u05E2\u05DA', '', ['np'], ['ns']), // -ekh
...umlautMutationSuffixInflection('\u05E2\u05E8\u05E1', '', ['np'], ['ns']), // -ers
],
},
diminutive: {
Expand Down
10 changes: 10 additions & 0 deletions test/language/yiddish-transforms.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ const tests = [
{term: 'עטיקעט', source: 'עטיקעטקע', rule: 'n', reasons: ['diminutive']}, // etiketke -> etiket
{term: 'קליענטעל', source: 'קליענטעלטשיק', rule: 'n', reasons: ['diminutive']}, // klienteltshik -> klientel
{term: 'קינדער', source: 'קינדערלעך', rule: 'ns', reasons: ['diminutive', 'plural']}, // kinderlekh -> kinder
{term: 'ליפ', source: 'ליפענעס', rule: 'ns', reasons: ['plural']}, // lipenes -> lip
{term: 'אײ', source: 'אײערען', rule: 'ns', reasons: ['plural']}, // eyeren -> ey
{term: 'זאָק', source: 'זאָקענס', rule: 'ns', reasons: ['plural']}, // zokens -> zok
{term: 'בוך', source: 'בוךערס', rule: 'ns', reasons: ['plural']}, // bukhers -> bukh
{term: 'קוכן', source: 'קוכןסער', rule: 'ns', reasons: ['plural']}, // kukhnser -> kukh
{term: 'קעניג', source: 'קעניגנס', rule: 'ns', reasons: ['plural']}, // kenigns -> kenig
],
},
{
Expand All @@ -52,6 +58,10 @@ const tests = [
{term: 'אומשטאנד', source: 'אומשטענדן', rule: 'ns', reasons: ['umlaut_plural']}, // umshtendn -> umshtand
{term: 'קאצ', source: 'קעצעלע', rule: 'n', reasons: ['diminutive_and_umlaut']}, // ketzele -> katz
{term: 'קאצ', source: 'קעצל', rule: 'n', reasons: ['diminutive_and_umlaut']}, // ketzl -> katz
{term: 'באַרג', source: 'בערגן', rule: 'ns', reasons: ['umlaut_plural']}, // bergn -> barg
{term: 'בױמ', source: 'בײמערס', rule: 'ns', reasons: ['umlaut_plural']}, // beymers -> boim
{term: 'קאפּ', source: 'קעפּער', rule: 'ns', reasons: ['umlaut_plural']}, // keper -> kop
{term: 'קאפּ', source: 'קעפּער', rule: 'ns', reasons: ['umlaut_plural']}, // kep -> kop
],
},
{
Expand Down

0 comments on commit 86b12a8

Please sign in to comment.