Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Deinflect できる to する #2266

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ext/data/deinflect.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}
Expand Down
2 changes: 2 additions & 0 deletions test/test-deinflector.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,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']},
Expand Down