diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-07-13 12:53:09 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-07-13 12:53:09 +0200 |
commit | 919cdce6bcf12f564901ea536dae4227d025b031 (patch) | |
tree | da074c76213993daa17225ced37a9cdc48f454ba | |
parent | 413501fde6bac909f31ad399781626caa16c8d04 (diff) |
add test case for deinflections
-rw-r--r-- | db/dict/deinflections.sql | 2 | ||||
-rw-r--r-- | test/deinflection/cases.ts | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/db/dict/deinflections.sql b/db/dict/deinflections.sql index 21a634d..da97d51 100644 --- a/db/dict/deinflections.sql +++ b/db/dict/deinflections.sql @@ -160,7 +160,7 @@ insert into deinflection_temp values ('infl:negative infl:must tmp:infl:must:res', 'だめ', '', 'a', 'ot'), -- built-in negative because だめ can't be deconjugated ('infl:must tmp:infl:must:res', 'いける', '', 'ru', 'ot'), -- はいけない -> positive (stored this way because obligatory could be in past) ('infl:must tmp:infl:must:res', 'なる', '', 'u', 'ot'), -- はならない -> positive - ('infl:must', 'は', '', 'ot', 'nt'), -- removes particle (negative -te + は + だめ/いけない/ならない) + ('tmp:infl:must:prt infl:must', 'は', '', 'ot', 'nt'), -- removes particle (negative -te + は + だめ/いけない/ならない) ('tmp:infl:must:prt infl:must', 'と', '', 'ot', 'nt'), -- removes particle (negative + と + だめ/いけない/ならない) -- ('infl:must', 'ば', 'ば', 'ot', 'a'), -- causes infinite loop ('infl:must tmp:infl:must:prt', 'なくちゃ', 'なくて', 'a', 'a'), -- colloquial abbreviation diff --git a/test/deinflection/cases.ts b/test/deinflection/cases.ts index df8d893..504c9e2 100644 --- a/test/deinflection/cases.ts +++ b/test/deinflection/cases.ts @@ -77,6 +77,7 @@ export default [ { input: "食べさせられる", mustHave: [ Inflection.Passive, Inflection.Causative ], mustNotHave: [], }, { input: "見極めなければならない", mustHave: [ Inflection.Obligatory, Inflection.Affirmative ], mustNotHave: [ Inflection.Conditional.Ba, Inflection.Negative ] }, { input: "ならなきゃいけない", mustHave: [ Inflection.Obligatory, Inflection.Affirmative ], mustNotHave: [ Inflection.Conditional.Ba, Inflection.Negative ] }, + { input: "探さなくては", mustHave: [ Inflection.Obligatory, Inflection.Affirmative ], mustNotHave: [ Inflection.Suffix.Te, Inflection.Negative ] }, // TODO: りゃ for いることは // TODO: じゃ for では // and more! |