From 63a381743de94d2487a929cd3ef3f15e8166be0e Mon Sep 17 00:00:00 2001 From: Cashew <52880648+Scrub1492@users.noreply.github.com> Date: Sun, 4 Feb 2024 14:04:17 +0700 Subject: Deinflect Json overhaul (#433) * deinflect overhaul template * remove duplicates with -e rule * deinflection updates * add neba deinflections * kansaiben updates * remove redundancy * Revert "remove redundancy" This reverts commit de714066851680314c988b577e77e6bd4c9db26a. * update deinflect.json * move deinflect.json to japanese-transforms.json * remove trailing spaces * wip add tests * update deinflect.json, add tests * run 'npm run test-code-write' * rename to kansai-ben * update tests * run 'npm run test-code-write' again * add -tara deinflection --- test/data/anki-note-builder-test-results.json | 2 +- test/data/translator-test-results-note-data1.json | 7 +++++++ test/data/translator-test-results.json | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) (limited to 'test/data') diff --git a/test/data/anki-note-builder-test-results.json b/test/data/anki-note-builder-test-results.json index 07b3182d..526beec7 100644 --- a/test/data/anki-note-builder-test-results.json +++ b/test/data/anki-note-builder-test-results.json @@ -3232,7 +3232,7 @@ "cloze-body": "のたもうた", "cloze-prefix": "cloze-prefix", "cloze-suffix": "cloze-suffix", - "conjugation": "past", + "conjugation": "", "dictionary": "Test Dictionary 2", "document-title": "title", "expression": "のたまう", diff --git a/test/data/translator-test-results-note-data1.json b/test/data/translator-test-results-note-data1.json index 610bb451..510b1bb5 100644 --- a/test/data/translator-test-results-note-data1.json +++ b/test/data/translator-test-results-note-data1.json @@ -29913,6 +29913,13 @@ "inflectionRules": [ "past" ] + }, + { + "source": "algorithm", + "inflectionRules": [ + "past", + "kansai-ben" + ] } ], "score": 1, diff --git a/test/data/translator-test-results.json b/test/data/translator-test-results.json index 8cf257ff..2b43e4bc 100644 --- a/test/data/translator-test-results.json +++ b/test/data/translator-test-results.json @@ -16893,6 +16893,13 @@ "inflectionRules": [ "past" ] + }, + { + "source": "algorithm", + "inflectionRules": [ + "past", + "kansai-ben" + ] } ], "score": 1, -- cgit v1.2.3