From cf4239af850ef7591f8ed3f9f30f8aef968a7194 Mon Sep 17 00:00:00 2001 From: gorlatoff <48055313+gorlatoff@users.noreply.github.com> Date: Wed, 17 Jul 2024 00:39:43 +0800 Subject: [PATCH] Update declensionNoun.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "đ" jest mekka suglaska --- src/noun/declensionNoun.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/noun/declensionNoun.ts b/src/noun/declensionNoun.ts index 65868bd..9145dc3 100644 --- a/src/noun/declensionNoun.ts +++ b/src/noun/declensionNoun.ts @@ -115,7 +115,7 @@ export function declensionNoun( noun = noun.replace(/[ńň]$/, 'nj'); noun = noun.replace(/[ľĺ]$/, 'lj'); noun = - noun.slice(0, -2) + noun.slice(-2).replace(/([cšžčćńľŕťďśźj])/g, '$1ь'); + noun.slice(0, -2) + noun.slice(-2).replace(/([cšžčćńľŕťďśźđj])/g, '$1ь'); const nounWithoutFluent = noun.replace(/\([oe]\)/, ''); @@ -466,7 +466,7 @@ function genitive_pl(root: string, gender: string) { result = 'sȯt'; } else if (gender.charAt(0) == 'n') { result = - root.replace('ь', '%').replace(/([pbvfmlnrszńľŕťďśźščž])j%/, '$1ij') + + root.replace('ь', '%').replace(/([pbvfmlnrszńľŕťďśźščžđ])j%/, '$1ij') + '%'; if (gender == 'n3') { result = result + ' / ' + palatalizationEnding(root) + 'es';