Add classic suru deinflections (#1089)

* Add classic suru deinflections

* Add tests
This commit is contained in:
toasted-nutbread 2020-12-08 22:39:06 -05:00 committed by GitHub
parent 125c296eed
commit df9436bc3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -257,6 +257,8 @@
{"kanaIn": "わせる", "kanaOut": "う", "rulesIn": ["v1"], "rulesOut": ["v5"]},
{"kanaIn": "させる", "kanaOut": "する", "rulesIn": ["v1"], "rulesOut": ["vs"]},
{"kanaIn": "為せる", "kanaOut": "為る", "rulesIn": ["v1"], "rulesOut": ["vs"]},
{"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"]}
@ -496,6 +498,8 @@
],
"potential or passive": [
{"kanaIn": "られる", "kanaOut": "る", "rulesIn": ["v1"], "rulesOut": ["v1"]},
{"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"]}

View File

@ -480,9 +480,10 @@ function testDeinflections() {
{term: '為る', source: '為た', rule: 'vs', reasons: ['past']},
{term: '為る', source: '為ました', rule: 'vs', reasons: ['polite past']},
{term: '為る', source: '為て', rule: 'vs', reasons: ['-te']},
// ['potential']
{term: '為る', source: '為られる', rule: 'vs', reasons: ['potential or passive']},
{term: '為る', source: '為れる', rule: 'vs', reasons: ['passive']},
{term: '為る', source: '為せる', rule: 'vs', reasons: ['causative']},
{term: '為る', source: '為させる', rule: 'vs', reasons: ['causative']},
{term: '為る', source: '為せられる', rule: 'vs', reasons: ['causative', 'potential or passive']},
{term: '為る', source: '為ろ', rule: 'vs', reasons: ['imperative']},
{term: '為る', source: '為ない', rule: 'vs', reasons: ['negative']},
@ -521,9 +522,10 @@ function testDeinflections() {
{term: 'する', source: 'した', rule: 'vs', reasons: ['past']},
{term: 'する', source: 'しました', rule: 'vs', reasons: ['polite past']},
{term: 'する', source: 'して', rule: 'vs', reasons: ['-te']},
// ['potential']
{term: 'する', source: 'せられる', rule: 'vs', reasons: ['potential or passive']},
{term: 'する', source: 'される', rule: 'vs', reasons: ['passive']},
{term: 'する', source: 'させる', rule: 'vs', reasons: ['causative']},
{term: 'する', source: 'せさせる', rule: 'vs', reasons: ['causative']},
{term: 'する', source: 'させられる', rule: 'vs', reasons: ['causative', 'potential or passive']},
{term: 'する', source: 'しろ', rule: 'vs', reasons: ['imperative']},
{term: 'する', source: 'しない', rule: 'vs', reasons: ['negative']},