aboutsummaryrefslogtreecommitdiff
path: root/db/dict
diff options
context:
space:
mode:
Diffstat (limited to 'db/dict')
-rw-r--r--db/dict/deinflections.sql26
1 files changed, 16 insertions, 10 deletions
diff --git a/db/dict/deinflections.sql b/db/dict/deinflections.sql
index a6070a8..7d67b02 100644
--- a/db/dict/deinflections.sql
+++ b/db/dict/deinflections.sql
@@ -142,17 +142,23 @@ insert into deinflection_temp values
('infl:potential', 'ありえる', 'ある', 'a', ''), -- exception
-- conditionals <https://guidetojapanese.org/learn/grammar/conditionals>
- ('infl:suffix:ba', 'えば', 'う', 'a', 'u'),
- ('infl:suffix:ba', 'けば', 'く', 'a', 'u'),
- ('infl:suffix:ba', 'げば', 'ぐ', 'a', 'u'),
- ('infl:suffix:ba', 'せば', 'す', 'a', 'u'),
- ('infl:suffix:ba', 'てば', 'つ', 'a', 'u'),
- ('infl:suffix:ba', 'ねば', 'ぬ', 'a', 'u'),
- ('infl:suffix:ba', 'べば', 'ぶ', 'a', 'u'),
- ('infl:suffix:ba', 'めば', 'む', 'a', 'u'),
- ('infl:suffix:ba', 'れば', 'る', 'a', 'u ru'),
- ('infl:suffix:ba', 'ければ', 'い', 'a', 'a'),
+ ('infl:cond:ba', 'えば', 'う', 'a', 'u'),
+ ('infl:cond:ba', 'けば', 'く', 'a', 'u'),
+ ('infl:cond:ba', 'げば', 'ぐ', 'a', 'u'),
+ ('infl:cond:ba', 'せば', 'す', 'a', 'u'),
+ ('infl:cond:ba', 'てば', 'つ', 'a', 'u'),
+ ('infl:cond:ba', 'ねば', 'ぬ', 'a', 'u'),
+ ('infl:cond:ba', 'べば', 'ぶ', 'a', 'u'),
+ ('infl:cond:ba', 'めば', 'む', 'a', 'u'),
+ ('infl:cond:ba', 'れば', 'る', 'a', 'u ru'),
+ ('infl:cond:ba', 'ければ', 'い', 'a', 'a'),
-- TODO: 〜であれば (deconjugates to です i think?)
+ ('infl:cond:ra', 'ら', '', 'a', 'a'), -- TODO: constrain valid matches to after past conjugation?
+
+ -- obligation <https://guidetojapanese.org/learn/grammar/must>
+ ('infl:must infl:negative', 'はだめ', '', 'a', 'a'), -- built-in negative because だめ can't be deconjugated
+ ('infl:must', 'はいける', '', 'a', 'a'), -- はいけない -> positive
+ ('infl:must', 'はなる', '', 'a', 'a'), -- はならない -> positive
-- auxiliary rules
('class:verb:suru-included', 'する', '', 's', ''); -- deconjugate suru verbs into stem