Skip to content

Commit

Permalink
Update declensionNoun.ts
Browse files Browse the repository at this point in the history
"đ" jest mekka suglaska
  • Loading branch information
gorlatoff authored Jul 16, 2024
1 parent 2d09d41 commit cf4239a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/noun/declensionNoun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]\)/, '');

Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit cf4239a

Please sign in to comment.