From 806f48912fa283b6f75dc19ca4669253d89a6ca8 Mon Sep 17 00:00:00 2001 From: Eneas Rotterdam Date: Sat, 28 Sep 2024 15:36:50 +0200 Subject: [PATCH 1/3] feat: add sugi as shorthand for sugiru --- src/background/deinflect.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/background/deinflect.ts b/src/background/deinflect.ts index 4f99ec8015..4bb67ab1f4 100644 --- a/src/background/deinflect.ts +++ b/src/background/deinflect.ts @@ -239,6 +239,8 @@ 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.SuruVerb, Type.NounVS, [Reason.SuruNoun]], ['せず', 'する', Type.Initial, Type.SuruVerb, [Reason.Zu]], ['せぬ', 'する', Type.Initial, Type.SuruVerb, [Reason.Negative]], From f44dd054c55121a600fe8619a14d43e1cda09aa3 Mon Sep 17 00:00:00 2001 From: Eneas Rotterdam Date: Sat, 28 Sep 2024 15:36:50 +0200 Subject: [PATCH 2/3] feat: support parsing sugiru with kanji --- src/background/deinflect.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/background/deinflect.ts b/src/background/deinflect.ts index 4bb67ab1f4..b1d145a5df 100644 --- a/src/background/deinflect.ts +++ b/src/background/deinflect.ts @@ -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, []], @@ -241,6 +243,8 @@ const deinflectRuleData: Array< ['しろ', 'する', 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]], From 6eefc3558fc393c23767fe66dc11e9b14ac4fa16 Mon Sep 17 00:00:00 2001 From: Eneas Rotterdam Date: Mon, 7 Oct 2024 13:50:05 +0200 Subject: [PATCH 3/3] chore: update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b015809a66..9e42c58dd0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. 見とれる).