Skip to content

Commit

Permalink
Add き as masu stem for 来る (closes #59) (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
ispedals authored and birtles committed Oct 28, 2018
1 parent b5605e0 commit a3dfb4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions __tests__/deinflect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,14 @@ describe('deinflect', () => {
word: '食べる',
});
});

it('deinflects ki to kuru', () => {
const result = deinflect('き');
const match = result.find(candidate => candidate.word === 'くる');
expect(match).toEqual({
reasons: [[DeinflectReason.MasuStem]],
type: 8,
word: 'くる',
});
});
});
1 change: 1 addition & 0 deletions src/deinflect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ const deinflectRuleData: Array<[string, string, number, number]> = [
['え', 'える', 384, DeinflectReason.MasuStem],
['き', 'きる', 384, DeinflectReason.MasuStem],
['き', 'く', 640, DeinflectReason.MasuStem],
['き', 'くる', 2176, DeinflectReason.MasuStem],
['ぎ', 'ぎる', 384, DeinflectReason.MasuStem],
['ぎ', 'ぐ', 640, DeinflectReason.MasuStem],
['く', 'い', 1152, DeinflectReason.Adv],
Expand Down

0 comments on commit a3dfb4a

Please sign in to comment.