diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-02 21:55:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-03 02:55:53 +0000 |
commit | c4f248b0f95050fb373c898289b506d042a3731b (patch) | |
tree | f221b6dfd6b806b5fa0f26b9e88c6feb764f60fd /test/data | |
parent | 5a2bc4e542b7f22d1e6a4ba318cfcdc33817d34a (diff) |
Improve translator test inputs typing (#601)
* Add type identifier
* Improve type correctness of translator test utilities
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/translator-test-inputs.json | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/data/translator-test-inputs.json b/test/data/translator-test-inputs.json index 588929de..2b8bebb3 100644 --- a/test/data/translator-test-inputs.json +++ b/test/data/translator-test-inputs.json @@ -1,6 +1,7 @@ { "optionsPresets": { "kanji": { + "type": "kanji", "enabledDictionaryMap": [ [ "${title}", @@ -13,6 +14,7 @@ "removeNonJapaneseCharacters": false }, "default": { + "type": "terms", "matchType": "exact", "deinflect": true, "mainDictionary": "${title}", @@ -188,6 +190,7 @@ "options": [ "default", { + "type": "terms", "removeNonJapaneseCharacters": false, "textReplacements": [ null, @@ -210,6 +213,7 @@ "options": [ "default", { + "type": "terms", "removeNonJapaneseCharacters": false, "textReplacements": [ null, @@ -232,6 +236,7 @@ "options": [ "default", { + "type": "terms", "removeNonJapaneseCharacters": false, "textReplacements": [ null, @@ -254,6 +259,7 @@ "options": [ "default", { + "type": "terms", "removeNonJapaneseCharacters": false, "textReplacements": [ null, @@ -276,6 +282,7 @@ "options": [ "default", { + "type": "terms", "removeNonJapaneseCharacters": false, "textReplacements": [ null, @@ -361,6 +368,7 @@ "options": [ "default", { + "type": "terms", "convertNumericCharacters": "true", "removeNonJapaneseCharacters": false } @@ -374,6 +382,7 @@ "options": [ "default", { + "type": "terms", "convertAlphabeticCharacters": "true", "removeNonJapaneseCharacters": false } @@ -387,6 +396,7 @@ "options": [ "default", { + "type": "terms", "convertKatakanaToHiragana": "true" } ] @@ -399,6 +409,7 @@ "options": [ "default", { + "type": "terms", "convertHiraganaToKatakana": "true" } ] @@ -411,6 +422,7 @@ "options": [ "default", { + "type": "terms", "convertHalfWidthCharacters": "true", "convertKatakanaToHiragana": "true" } @@ -424,6 +436,7 @@ "options": [ "default", { + "type": "terms", "collapseEmphaticSequences": "full" } ] |