Skip to content

Commit

Permalink
fix: add rules for city Crimea
Browse files Browse the repository at this point in the history
  • Loading branch information
redVi authored Apr 11, 2020
1 parent 0a9099b commit 0cee1cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/__tests__/city-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ describe('lvovich/city', () => {
Усть-Каменогорск, Усть-Каменогорске, Усть-Каменогорска, Усть-Каменогорск
Форт-Шевченко, Форт-Шевченко, Форт-Шевченко, Форт-Шевченко
село Чемолган, селе Чемолган, села Чемолган, село Чемолган
вахтовый поселок Тенгиз, вахтовом поселке Тенгиз, вахтового поселка Тенгиз, вахтовый поселок Тенгиз,
вахтовый поселок Тенгиз, вахтовом поселке Тенгиз, вахтового поселка Тенгиз, вахтовый поселок Тенгиз,
`
);
// city, cityIn, cityFrom, cityTo
Expand Down Expand Up @@ -325,6 +325,7 @@ describe('lvovich/city', () => {
Холмечь, Холмечи, Холмечи, Холмечь
Чепеничи, Чепеничах, Чепеничей, Чепеничи
Ропша, Ропше, Ропши, Ропшу
Крым, Крыму, Крыма, Крым
`
);
});
Expand Down
4 changes: 4 additions & 0 deletions src/rules/cityRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ const cityInflections: DeclensionCityRuleSetT = {
test: ['орел', 'орёл'], // Орел, Орёл
mods: ['--ла', '--лу', '--ла', '--лом', '--ле'],
},
{
test: ['крым'],
mods: ['-ма', '-му', '-ма', '-ом', '-му'],
},
],
suffixes: [
{
Expand Down

0 comments on commit 0cee1cd

Please sign in to comment.