summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/bg/lang/deinflect.json26
-rw-r--r--test/test-deinflector.js32
2 files changed, 58 insertions, 0 deletions
diff --git a/ext/bg/lang/deinflect.json b/ext/bg/lang/deinflect.json
index 9aab795e..5a2d8ceb 100644
--- a/ext/bg/lang/deinflect.json
+++ b/ext/bg/lang/deinflect.json
@@ -586,5 +586,31 @@
],
"-ki": [
{"kanaIn": "き", "kanaOut": "い", "rulesIn": [], "rulesOut": ["adj-i"]}
+ ],
+ "-e": [
+ {"kanaIn": "ねえ", "kanaOut": "ない", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "めえ", "kanaOut": "むい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "みい", "kanaOut": "むい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "ちぇえ", "kanaOut": "つい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "ちい", "kanaOut": "つい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "せえ", "kanaOut": "すい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "ええ", "kanaOut": "いい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "ええ", "kanaOut": "わい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "ええ", "kanaOut": "よい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "いぇえ", "kanaOut": "よい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "うぇえ", "kanaOut": "わい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "けえ", "kanaOut": "かい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "げえ", "kanaOut": "がい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "げえ", "kanaOut": "ごい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "せえ", "kanaOut": "さい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "めえ", "kanaOut": "まい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "ぜえ", "kanaOut": "ずい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "っぜえ", "kanaOut": "ずい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "れえ", "kanaOut": "らい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "れえ", "kanaOut": "らい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "ちぇえ", "kanaOut": "ちゃい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "でえ", "kanaOut": "どい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "れえ", "kanaOut": "れい", "rulesIn": [], "rulesOut": ["adj-i"]},
+ {"kanaIn": "べえ", "kanaOut": "ばい", "rulesIn": [], "rulesOut": ["adj-i"]}
]
}
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']}
+ ]
}
];