Skip to content

Commit

Permalink
fix: Санёк in genitive Санька
Browse files Browse the repository at this point in the history
Closes #15
  • Loading branch information
nodkz committed Dec 4, 2018
1 parent 1e6c4fe commit 1d17d7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/__tests__/incline-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe('lvovich/incline', () => {
describe('inclineFirstname()', () => {
it('should incline firstname', () => {
expect(inclineFirstname('Павел', 'genitive')).toEqual('Павла');
expect(inclineFirstname('Санёк', 'genitive')).toEqual('Санька');
});

it('should accept gender for androgynous name', () => {
Expand Down
5 changes: 5 additions & 0 deletions src/rules/inclineRulesFirstname.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ const name: DeclensionRuleSetT = {
test: ['ёл'],
mods: ['--ла', '--лу', '--ла', '--лом', '--ле'],
},
{
gender: 'male',
test: ['ёк'],
mods: ['--ька', '--ьку', '--ька', '--ьком', '--ьке'],
},
{
gender: 'male',
test: [
Expand Down

0 comments on commit 1d17d7a

Please sign in to comment.