From e430d8cb4a30640298b7fae3c93bc6329e2a0382 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 9 Jul 2023 19:14:36 +0200 Subject: add polite requests, commands, causative, and passive --- db/dict/deinflections.sql | 81 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 79 insertions(+), 2 deletions(-) (limited to 'db') diff --git a/db/dict/deinflections.sql b/db/dict/deinflections.sql index a4a35d5..a79fff0 100644 --- a/db/dict/deinflections.sql +++ b/db/dict/deinflections.sql @@ -157,8 +157,8 @@ insert into deinflection_temp values -- obligation ('infl:tmp:must:res infl:negative', 'だめ', '', 'a', 'ot'), -- built-in negative because だめ can't be deconjugated - ('infl:tmp:must:res', 'いける', '', 'a', 'ot'), -- はいけない -> positive (stored this way because obligatory could be in past) - ('infl:tmp:must:res', 'なる', '', 'a', 'ot'), -- はならない -> positive + ('infl:tmp:must:res', 'いける', '', 'ru', 'ot'), -- はいけない -> positive (stored this way because obligatory could be in past) + ('infl:tmp:must:res', 'なる', '', 'u', 'ot'), -- はならない -> positive ('infl:must', 'は', '', 'ot', 'a'), -- removes particle (negative -te + は + だめ/いけない/ならない) ('infl:tmp:must:prt infl:must', 'と', '', 'ot', 'a'), -- removes particle (negative + と + だめ/いけない/ならない) ('infl:must', 'ば', 'ば', 'ot', 'a'), -- removes ot rule, keeps 〜ば (negative + ば + だめ/いけない/ならない) @@ -208,6 +208,83 @@ insert into deinflection_temp values -- attempt (〜とする) ('infl:attempt:tosuru', 'とする', '', 's', 'a'), + -- polite requests (〜なさい) + ('infl:polite:nasai', 'なさい', 'る', 'a', 'ru'), + ('infl:polite:nasai', 'いなさい', 'う', 'a', 'u'), + ('infl:polite:nasai', 'きなさい', 'く', 'a', 'u'), + ('infl:polite:nasai', 'ぎなさい', 'ぐ', 'a', 'u'), + ('infl:polite:nasai', 'しなさい', 'す', 'a', 'u'), + ('infl:polite:nasai', 'ちなさい', 'つ', 'a', 'u'), + ('infl:polite:nasai', 'になさい', 'ぬ', 'a', 'u'), + ('infl:polite:nasai', 'びなさい', 'ぶ', 'a', 'u'), + ('infl:polite:nasai', 'みなさい', 'む', 'a', 'u'), + ('infl:polite:nasai', 'りなさい', 'る', 'a', 'u'), + ('infl:polite:nasai', 'しなさい', 'する', 'a', 's'), + ('infl:polite:nasai', 'きなさい', 'くる', 'a', 'k'), + ('infl:polite:nasai', '来なさい', '来る', 'a', 'k'), + + -- command form + ('infl:command', 'ろ', 'る', 'a', 'ru'), + ('infl:command', 'え', 'う', 'a', 'u'), + ('infl:command', 'け', 'く', 'a', 'u'), + ('infl:command', 'げ', 'ぐ', 'a', 'u'), + ('infl:command', 'せ', 'す', 'a', 'u'), + ('infl:command', 'て', 'つ', 'a', 'u'), + ('infl:command', 'ね', 'ぬ', 'a', 'u'), + ('infl:command', 'れ', 'ぶ', 'a', 'u'), + ('infl:command', 'め', 'む', 'a', 'u'), + ('infl:command', 'れ', 'る', 'a', 'u'), + ('infl:command', 'しろ', 'する', 'a', 's'), + ('infl:command', 'こい', 'くる', 'a', 'k'), + ('infl:command', '来い', '来る', 'a', 'k'), + ('infl:command', 'くれ', 'くれる', 'a', 'ru'), -- TODO: special class? + ('infl:command', '呉れ', '呉れる', 'a', 'ru'), -- TODO: special class? + ('infl:command infl:negative', 'な', '', 'a', 'a'), + + -- causative + ('infl:causative', 'させる', 'る', 'a', 'ru'), + ('infl:causative', 'わせる', 'う', 'a', 'u'), + ('infl:causative', 'かせる', 'く', 'a', 'u'), + ('infl:causative', 'がせる', 'ぐ', 'a', 'u'), + ('infl:causative', 'させる', 'す', 'a', 'u'), + ('infl:causative', 'たせる', 'つ', 'a', 'u'), + ('infl:causative', 'なせる', 'ぬ', 'a', 'u'), + ('infl:causative', 'ばせる', 'ぶ', 'a', 'u'), + ('infl:causative', 'ませる', 'む', 'a', 'u'), + ('infl:causative', 'らせる', 'る', 'a', 'u'), + ('infl:causative', 'させる', 'する', 'a', 's'), + ('infl:causative', 'こさせる', 'くる', 'a', 'k'), + ('infl:causative', '来させる', '来る', 'a', 'k'), + -- shortened causative + ('infl:causative', 'さす', 'る', 'a', 'ru'), + ('infl:causative', 'わす', 'う', 'a', 'u'), + ('infl:causative', 'かす', 'く', 'a', 'u'), + ('infl:causative', 'がす', 'ぐ', 'a', 'u'), + ('infl:causative', 'さす', 'す', 'a', 'u'), + ('infl:causative', 'たす', 'つ', 'a', 'u'), + ('infl:causative', 'なす', 'ぬ', 'a', 'u'), + ('infl:causative', 'ばす', 'ぶ', 'a', 'u'), + ('infl:causative', 'ます', 'む', 'a', 'u'), + ('infl:causative', 'らす', 'る', 'a', 'u'), + ('infl:causative', 'さす', 'する', 'a', 's'), + ('infl:causative', 'こさす', 'くる', 'a', 'k'), + ('infl:causative', '来さす', '来る', 'a', 'k'), + + -- passive + ('infl:passive', 'られる', 'る', 'a', 'ru'), + ('infl:passive', 'われる', 'う', 'a', 'u'), + ('infl:passive', 'かれる', 'く', 'a', 'u'), + ('infl:passive', 'がれる', 'ぐ', 'a', 'u'), + ('infl:passive', 'される', 'す', 'a', 'u'), + ('infl:passive', 'たれる', 'つ', 'a', 'u'), + ('infl:passive', 'なれる', 'ぬ', 'a', 'u'), + ('infl:passive', 'ばれる', 'ぶ', 'a', 'u'), + ('infl:passive', 'まれる', 'む', 'a', 'u'), + ('infl:passive', 'られる', 'る', 'a', 'u'), + ('infl:passive', 'される', 'する', 'a', 's'), + ('infl:passive', 'こられる', 'くる', 'a', 'k'), + ('infl:passive', '来られる', '来る', 'a', 'k'), + -- auxiliary rules ('class:verb:suru-included', 'する', '', 's', ''); -- deconjugate suru verbs into stem -- cgit v1.2.3