From c18141a09b519a8ea650874aa09c06d7fa4fb98d Mon Sep 17 00:00:00 2001 From: Cashew <52880648+Scrub1492@users.noreply.github.com> Date: Sat, 23 Dec 2023 00:59:12 +0900 Subject: Add 出来る/できる as inflections of する (#419) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Deinflect できる to する * Unit test できる→する deinflection * Deinflect 出来る to する --------- Co-authored-by: Tom Dong --- ext/data/deinflect.json | 2 ++ test/deinflector.test.js | 2 ++ 2 files changed, 4 insertions(+) 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']}, -- cgit v1.2.3