aboutsummaryrefslogtreecommitdiff
path: root/test/test-deinflector.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-02-08 17:52:30 -0500
committerGitHub <noreply@github.com>2021-02-08 17:52:30 -0500
commitc6315cdb8c4ebc5a2cde57481af612a6e67a0d28 (patch)
tree6b590220371ea0bc0a98738bba7f339b2eaa67df /test/test-deinflector.js
parentace6e92d55b32c08b5a0a2b19bdd8974d53aa552 (diff)
え deinflection (#1343)
* Add -e deinflections * Add tests * Add more rules for double え
Diffstat (limited to 'test/test-deinflector.js')
-rw-r--r--test/test-deinflector.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/test-deinflector.js b/test/test-deinflector.js
index 68736cf0..68500681 100644
--- a/test/test-deinflector.js
+++ b/test/test-deinflector.js
@@ -844,6 +844,38 @@ function testDeinflections() {
{term: 'くる', source: 'くさせない', rule: 'vk'},
{term: 'くる', source: 'くさせられない', rule: 'vk'}
]
+ },
+ {
+ valid: true,
+ tests: [
+ // -e
+ {term: 'すごい', source: 'すげえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'やばい', source: 'やべえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'うるさい', source: 'うるせえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'ひどい', source: 'ひでえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'ない', source: 'ねえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'できる', source: 'できねえ', rule: 'v1', reasons: ['negative', '-e']},
+ {term: 'しんじる', source: 'しんじねえ', rule: 'v1', reasons: ['negative', '-e']},
+ {term: 'さむい', source: 'さめえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'さむい', source: 'さみい', rule: 'adj-i', reasons: ['-e']},
+ {term: 'あつい', source: 'あちぇえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'あつい', source: 'あちい', rule: 'adj-i', reasons: ['-e']},
+ {term: 'やすい', source: 'やせえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'たかい', source: 'たけえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'かわいい', source: 'かわええ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'つよい', source: 'ついぇえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'こわい', source: 'こうぇえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'みじかい', source: 'みじけえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'ながい', source: 'なげえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'くさい', source: 'くせえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'うまい', source: 'うめえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'でかい', source: 'でけえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'まずい', source: 'まっぜえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'ちっちゃい', source: 'ちっちぇえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'あかい', source: 'あけえ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'こわい', source: 'こええ', rule: 'adj-i', reasons: ['-e']},
+ {term: 'つよい', source: 'つええ', rule: 'adj-i', reasons: ['-e']}
+ ]
}
];