From 9b5de0d2d4cb224751c57bdae6558a046351c2f4 Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Fri, 23 Feb 2024 13:32:03 +0100 Subject: fix translator bug, simplify language-transformer (#687) * simplify transformer * use isPartOfSpeech * simplify * rename to isDictionaryForm * NOP --------- Co-authored-by: Darius Jahandarie --- ext/data/language/japanese-transforms.json | 38 +++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'ext/data') diff --git a/ext/data/language/japanese-transforms.json b/ext/data/language/japanese-transforms.json index b1f39cbc..0812f01e 100644 --- a/ext/data/language/japanese-transforms.json +++ b/ext/data/language/japanese-transforms.json @@ -3,107 +3,107 @@ "conditions": { "v": { "name": "Verb", - "partsOfSpeech": ["v1", "v5", "vk", "vs", "vz"], "i18n": [ { "language": "ja", "name": "動詞" } ], + "isDictionaryForm": false, "subConditions": ["v1", "v5", "vk", "vs", "vz"] }, "v1": { "name": "Ichidan verb", - "partsOfSpeech": ["v1"], "i18n": [ { "language": "ja", "name": "一段動詞" } ], + "isDictionaryForm": true, "subConditions": ["v1d", "v1p"] }, "v1d": { "name": "Ichidan verb, dictionary form", - "partsOfSpeech": ["v1"], "i18n": [ { "language": "ja", "name": "一段動詞、辞書形" } - ] + ], + "isDictionaryForm": false }, "v1p": { "name": "Ichidan verb, progressive or perfect form", - "partsOfSpeech": ["v1"], "i18n": [ { "language": "ja", "name": "一段動詞、進行形または完了形" } - ] + ], + "isDictionaryForm": false }, "v5": { "name": "Godan verb", - "partsOfSpeech": ["v5"], "i18n": [ { "language": "ja", "name": "五段動詞" } - ] + ], + "isDictionaryForm": true }, "vk": { "name": "Kuru verb", - "partsOfSpeech": ["vk"], "i18n": [ { "language": "ja", "name": "来る動詞" } - ] + ], + "isDictionaryForm": true }, "vs": { "name": "Suru verb", - "partsOfSpeech": ["vs"], "i18n": [ { "language": "ja", "name": "する動詞" } - ] + ], + "isDictionaryForm": true }, "vz": { "name": "Zuru verb", - "partsOfSpeech": ["vz"], "i18n": [ { "language": "ja", "name": "ずる動詞" } - ] + ], + "isDictionaryForm": true }, "adj-i": { "name": "Adjective with i ending", - "partsOfSpeech": ["adj-i"], "i18n": [ { "language": "ja", "name": "形容詞" } - ] + ], + "isDictionaryForm": true }, "-te": { "name": "Intermediate -te endings for progressive or perfect tense", - "partsOfSpeech": [] + "isDictionaryForm": false }, "adv": { "name": "Intermediate -ku endings for adverbs", - "partsOfSpeech": [] + "isDictionaryForm": false }, "past": { "name": "-ta past form ending", - "partsOfSpeech": [] + "isDictionaryForm": false } }, "transforms": [ -- cgit v1.2.3