diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-02-27 23:26:47 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-27 23:26:47 -0500 | 
| commit | f2d2ba0d25b6276d60001077573e30b60701a2d4 (patch) | |
| tree | ced305816f013542cc7fa2a54c76b8516bd33194 | |
| parent | 990d3611cd024df2a929f84531242aa0653ed085 (diff) | |
Add ge deinflect rule (#1458)
* Add -ge rule
* Add tests
| -rw-r--r-- | ext/data/deinflect.json | 3 | ||||
| -rw-r--r-- | test/test-deinflector.js | 6 | 
2 files changed, 8 insertions, 1 deletions
| diff --git a/ext/data/deinflect.json b/ext/data/deinflect.json index a1ec6eb0..b194f390 100644 --- a/ext/data/deinflect.json +++ b/ext/data/deinflect.json @@ -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"]}, diff --git a/test/test-deinflector.js b/test/test-deinflector.js index a5d6c06f..ac655e63 100644 --- a/test/test-deinflector.js +++ b/test/test-deinflector.js @@ -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']}              ]          },          { |