diff options
author | Cashew <52880648+Scrub1492@users.noreply.github.com> | 2023-12-23 00:59:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-22 15:59:12 +0000 |
commit | c18141a09b519a8ea650874aa09c06d7fa4fb98d (patch) | |
tree | b1c25b7e432dd3fc1f145d4f74622660a5bef7a2 | |
parent | 2b29df7a8ecd95384dbee30e27743cf25703e447 (diff) |
Add 出来る/できる as inflections of する (#419)
* Deinflect できる to する
* Unit test できる→する deinflection
* Deinflect 出来る to する
---------
Co-authored-by: Tom Dong <tomtung@users.noreply.github.com>
-rw-r--r-- | ext/data/deinflect.json | 2 | ||||
-rw-r--r-- | test/deinflector.test.js | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ext/data/deinflect.json b/ext/data/deinflect.json index 00775627..49ad4b72 100644 --- a/ext/data/deinflect.json +++ b/ext/data/deinflect.json @@ -538,6 +538,8 @@ {"kanaIn": "ねる", "kanaOut": "ぬ", "rulesIn": ["v1"], "rulesOut": ["v5"]}, {"kanaIn": "べる", "kanaOut": "ぶ", "rulesIn": ["v1"], "rulesOut": ["v5"]}, {"kanaIn": "める", "kanaOut": "む", "rulesIn": ["v1"], "rulesOut": ["v5"]}, + {"kanaIn": "できる", "kanaOut": "する", "rulesIn": ["v1"], "rulesOut": ["vs"]}, + {"kanaIn": "出来る", "kanaOut": "する", "rulesIn": ["v1"], "rulesOut": ["vs"]}, {"kanaIn": "これる", "kanaOut": "くる", "rulesIn": ["v1"], "rulesOut": ["vk"]}, {"kanaIn": "来れる", "kanaOut": "来る", "rulesIn": ["v1"], "rulesOut": ["vk"]}, {"kanaIn": "來れる", "kanaOut": "來る", "rulesIn": ["v1"], "rulesOut": ["vk"]} diff --git a/test/deinflector.test.js b/test/deinflector.test.js index 1d7a39cf..7ef8e6dd 100644 --- a/test/deinflector.test.js +++ b/test/deinflector.test.js @@ -562,6 +562,8 @@ function testDeinflections() { {term: 'する', source: 'した', rule: 'vs', reasons: ['past']}, {term: 'する', source: 'しました', rule: 'vs', reasons: ['polite past']}, {term: 'する', source: 'して', rule: 'vs', reasons: ['-te']}, + {term: 'する', source: 'できる', rule: 'vs', reasons: ['potential']}, + {term: 'する', source: '出来る', rule: 'vs', reasons: ['potential']}, {term: 'する', source: 'せられる', rule: 'vs', reasons: ['potential or passive']}, {term: 'する', source: 'される', rule: 'vs', reasons: ['passive']}, {term: 'する', source: 'させる', rule: 'vs', reasons: ['causative']}, |