Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additions to -sugiru #2033

Merged
merged 3 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ app.
thanks to [@maiself](https://github.com/maiself)
([#2014](https://github.com/birchill/10ten-ja-reader/pull/2014)).
- Added handling for 戶 and 內 kyūjitai.
- Added deinflection for additional forms of -sugiru
([#2033](https://github.com/birchill/10ten-ja-reader/pull/2033)).
- Fixed unreasonable matches caused by duplicates in the deinflection reason chain
([#1966](https://github.com/birchill/10ten-ja-reader/issues/1966)).
- Fixed sorting of deinflected results in some cases (e.g. 見とれる).
Expand Down
6 changes: 6 additions & 0 deletions src/background/deinflect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ const deinflectRuleData: Array<
['じゃう', '', Type.GodanVerb, Type.DaDeStem, [Reason.Chau]],
['すぎる', 'い', Type.IchidanVerb, Type.IAdj, [Reason.Sugiru]],
['すぎる', '', Type.IchidanVerb, Type.MasuStem, [Reason.Sugiru]],
['過ぎる', 'い', Type.IchidanVerb, Type.IAdj, [Reason.Sugiru]],
['過ぎる', '', Type.IchidanVerb, Type.MasuStem, [Reason.Sugiru]],
['たまう', 'たまう', Type.TaTeStem, Type.GodanVerb, []],
['たもう', 'たもう', Type.TaTeStem, Type.GodanVerb, []],
['揺蕩う', '揺蕩う', Type.TaTeStem, Type.GodanVerb, []],
Expand Down Expand Up @@ -239,6 +241,10 @@ const deinflectRuleData: Array<
['ごう', 'ぐ', Type.Initial, Type.GodanVerb, [Reason.Volitional]],
['しろ', 'す', Type.Initial, Type.SuruVerb, [Reason.Imperative]],
['しろ', 'する', Type.Initial, Type.SuruVerb, [Reason.Imperative]],
['すぎ', 'い', Type.Initial, Type.IAdj, [Reason.Sugiru]],
['すぎ', '', Type.Initial, Type.MasuStem, [Reason.Sugiru]],
['過ぎ', 'い', Type.Initial, Type.IAdj, [Reason.Sugiru]],
['過ぎ', '', Type.Initial, Type.MasuStem, [Reason.Sugiru]],
['する', '', Type.SuruVerb, Type.NounVS, [Reason.SuruNoun]],
['せず', 'する', Type.Initial, Type.SuruVerb, [Reason.Zu]],
['せぬ', 'する', Type.Initial, Type.SuruVerb, [Reason.Negative]],
Expand Down