Add ge deinflect rule (#1458)

* Add -ge rule

* Add tests
This commit is contained in:
toasted-nutbread 2021-02-27 23:26:47 -05:00 committed by GitHub
parent 990d3611cd
commit f2d2ba0d25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -588,6 +588,9 @@
"-ki": [
{"kanaIn": "き", "kanaOut": "い", "rulesIn": [], "rulesOut": ["adj-i"]}
],
"-ge": [
{"kanaIn": "しげ", "kanaOut": "しい", "rulesIn": [], "rulesOut": ["adj-i"]}
],
"-e": [
{"kanaIn": "ねえ", "kanaOut": "ない", "rulesIn": [], "rulesOut": ["adj-i"]},
{"kanaIn": "めえ", "kanaOut": "むい", "rulesIn": [], "rulesOut": ["adj-i"]},

View File

@ -66,6 +66,7 @@ function testDeinflections() {
{term: '愛しい', source: '愛しくありません', rule: 'adj-i', reasons: ['polite negative']},
{term: '愛しい', source: '愛しくありませんでした', rule: 'adj-i', reasons: ['polite past negative']},
{term: '愛しい', source: '愛しき', rule: 'adj-i', reasons: ['-ki']},
{term: '愛しい', source: '愛しげ', rule: 'adj-i', reasons: ['-ge']},
// Common verbs
{term: '食べる', source: '食べる', rule: 'v1', reasons: []},
@ -843,7 +844,10 @@ function testDeinflections() {
{term: 'くる', source: 'くられない', rule: 'vk'},
{term: 'くる', source: 'くられない', rule: 'vk'},
{term: 'くる', source: 'くさせない', rule: 'vk'},
{term: 'くる', source: 'くさせられない', rule: 'vk'}
{term: 'くる', source: 'くさせられない', rule: 'vk'},
{term: 'かわいい', source: 'かわいげ', rule: 'adj-i', reasons: ['-ge']},
{term: '可愛い', source: 'かわいげ', rule: 'adj-i', reasons: ['-ge']}
]
},
{