From 00296ec276111fb9fe0905f05e73d43a0a581122 Mon Sep 17 00:00:00 2001 From: MarvNC Date: Mon, 16 Sep 2024 20:45:55 -0700 Subject: [PATCH 1/6] Enable `jsonc/sort-keys` on `recommended-dictionaries.json` --- .eslintrc.json | 8 + ext/data/recommended-dictionaries.json | 654 ++++++++++++------------- 2 files changed, 335 insertions(+), 327 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 62ee61da60..537b5d6f5e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -672,6 +672,14 @@ "crypto": "readonly", "AbortController": "readonly" } + }, + { + "files": [ + "ext/data/recommended-dictionaries.json" + ], + "rules": { + "jsonc/sort-keys": ["error", "asc"] + } } ] } diff --git a/ext/data/recommended-dictionaries.json b/ext/data/recommended-dictionaries.json index 98d2ee5735..3df8ab8956 100644 --- a/ext/data/recommended-dictionaries.json +++ b/ext/data/recommended-dictionaries.json @@ -1,576 +1,576 @@ { "afb": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-afb-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-afb-en.zip", "description": "Gulf Arabic to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-afb-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-afb-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "ang": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-ang-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ang-en.zip", "description": "Old English to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ang-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-ang-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "ar": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-ar-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ar-en.zip", "description": "Arabic to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ar-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-ar-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "cs": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-cs-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-cs-en.zip", "description": "Czech to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-cs-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-cs-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "de": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-de-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-de-en.zip", "description": "German to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-de-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-de-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "el": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-el-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-el-en.zip", "description": "Greek to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-el-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-el-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "enm": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-enm-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-enm-en.zip", "description": "Middle English to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-enm-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-enm-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "eo": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-eo-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-eo-en.zip", "description": "Esperanto to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-eo-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-eo-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "es": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-es-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-es-en.zip", "description": "Spanish to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-es-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-es-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "fa": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-fa-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-fa-en.zip", "description": "Persian to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-fa-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-fa-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "fi": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-fi-en", "description": "Finnish to English dictionary created from Wiktionary data.", "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-fi-en.zip", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-fi-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "fr": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-fr-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-fr-en.zip", "description": "French to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-fr-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-fr-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "grc": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-grc-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-grc-en.zip", "description": "Ancient Greek to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-grc-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-grc-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "hi": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-hi-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-hi-en.zip", "description": "Hindi to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-hi-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-hi-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "hu": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-hu-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-hu-en.zip", "description": "Hungarian to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-hu-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-hu-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "id": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-id-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-id-en.zip", "description": "Indonesian to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-id-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-id-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "it": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-it-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-it-en.zip", "description": "Italian to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-it-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-it-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "ja": { - "terms": [ + "frequency": [ { - "name": "Jitendex", - "downloadUrl": "https://github.com/stephenmk/stephenmk.github.io/releases/latest/download/jitendex-yomitan.zip", - "description": "A free and openly licensed Japanese-to-English dictionary with example sentences, usage notes, etymology notes, cross references, antonyms, definition notes.", - "homepage": "https://jitendex.org" + "description": "Based on the Balanced Corpus of Contemporary Written Japanese covering books, magazines, newspapers, blogs, forums, textbooks, and legal documents among others.", + "downloadUrl": "https://github.com/Kuuuube/yomitan-dictionaries/releases/download/yomitan-permalink/BCCWJ_SUW_LUW_combined.zip", + "homepage": "https://github.com/Kuuuube/yomitan-dictionaries?tab=readme-ov-file#bccwj-suw-luw-combined", + "name": "BCCWJ" } ], + "grammar": [], "kanji": [ { - "name": "KANJIDIC", - "downloadUrl": "https://github.com/themoeway/jmdict-yomitan/releases/latest/download/KANJIDIC_english.zip", "description": "An English dictionary with readings, meanings, stroke order diagrams, frequency, grade level, JLPT level and frequency of kanji characters.", - "homepage": "https://github.com/themoeway/jmdict-yomitan?tab=readme-ov-file#kanjidic-for-yomitan" + "downloadUrl": "https://github.com/themoeway/jmdict-yomitan/releases/latest/download/KANJIDIC_english.zip", + "homepage": "https://github.com/themoeway/jmdict-yomitan?tab=readme-ov-file#kanjidic-for-yomitan", + "name": "KANJIDIC" } ], - "frequency": [ + "pronunciation": [], + "terms": [ { - "name": "BCCWJ", - "downloadUrl": "https://github.com/Kuuuube/yomitan-dictionaries/releases/download/yomitan-permalink/BCCWJ_SUW_LUW_combined.zip", - "description": "Based on the Balanced Corpus of Contemporary Written Japanese covering books, magazines, newspapers, blogs, forums, textbooks, and legal documents among others.", - "homepage": "https://github.com/Kuuuube/yomitan-dictionaries?tab=readme-ov-file#bccwj-suw-luw-combined" + "description": "A free and openly licensed Japanese-to-English dictionary with example sentences, usage notes, etymology notes, cross references, antonyms, definition notes.", + "downloadUrl": "https://github.com/stephenmk/stephenmk.github.io/releases/latest/download/jitendex-yomitan.zip", + "homepage": "https://jitendex.org", + "name": "Jitendex" } - ], - "grammar": [], - "pronunciation": [] + ] }, "km": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-km-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-km-en.zip", "description": "Khmer to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-km-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-km-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "kn": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-kn-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-kn-en.zip", "description": "Kannada to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-kn-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-kn-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "ko": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-ko-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ko-en.zip", "description": "Korean to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ko-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-ko-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "la": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-la-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-la-en.zip", "description": "Latin to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-la-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-la-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "lv": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-lv-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-lv-en.zip", "description": "Latvian to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-lv-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-lv-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "mn": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-mn-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-mn-en.zip", "description": "Mongolian to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-mn-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-mn-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "nl": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-nl-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-nl-en.zip", "description": "Dutch to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-nl-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-nl-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "pl": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-pl-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-pl-en.zip", "description": "Polish to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-pl-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-pl-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "pt": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-pt-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-pt-en.zip", "description": "Portuguese to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-pt-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-pt-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "ro": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-ro-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ro-en.zip", "description": "Romanian to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ro-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-ro-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "ru": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-ru-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ru-en.zip", "description": "Russian to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ru-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-ru-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "scn": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-scn-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-scn-en.zip", "description": "Sicillian to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-scn-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-scn-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "sga": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-sga-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sga-en.zip", "description": "Old Irish to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sga-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-sga-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "sh": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-sh-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sh-en.zip", "description": "Serbo-Croatian to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sh-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-sh-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "sq": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-sq-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sq-en.zip", "description": "Albanian to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sq-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-sq-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "sv": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-sv-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sv-en.zip", "description": "Swedish to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sv-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-sv-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "th": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-th-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-th-en.zip", "description": "Thai to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-th-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-th-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "tl": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-tl-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-tl-en.zip", "description": "Tagalog to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-tl-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-tl-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "tr": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-tr-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-tr-en.zip", "description": "Turkish to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-tr-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-tr-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "uk": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-uk-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-uk-en.zip", "description": "Ukranian to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-uk-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-uk-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "vi": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-vi-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-vi-en.zip", "description": "Vietnamese to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-vi-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-vi-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] }, "zh": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], "terms": [ { - "name": "kty-zh-en", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-zh-en.zip", "description": "Chinese to English dictionary created from Wiktionary data.", - "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-zh-en.zip", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "name": "kty-zh-en" } - ], - "kanji": [], - "frequency": [], - "grammar": [], - "pronunciation": [] + ] } } From 63a51442b06adfda7c8777a82b1825d0f0b0b7f9 Mon Sep 17 00:00:00 2001 From: MarvNC Date: Tue, 17 Sep 2024 16:40:56 -0700 Subject: [PATCH 2/6] Set manual order for dictionary entries --- .eslintrc.json | 15 ++- ext/data/recommended-dictionaries.json | 168 ++++++++++++------------- 2 files changed, 98 insertions(+), 85 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 537b5d6f5e..28bb593ff8 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -678,7 +678,20 @@ "ext/data/recommended-dictionaries.json" ], "rules": { - "jsonc/sort-keys": ["error", "asc"] + "jsonc/sort-keys": ["error", { + "pathPattern": "^\\w+.\\w+\\[\\d+\\]$", + "order": [ + "name", + "description", + "homepage", + "downloadUrl" + ] + }, { + "pathPattern": ".*", + "order": { + "type": "asc" + } + }] } } ] diff --git a/ext/data/recommended-dictionaries.json b/ext/data/recommended-dictionaries.json index 3df8ab8956..9a53d62c21 100644 --- a/ext/data/recommended-dictionaries.json +++ b/ext/data/recommended-dictionaries.json @@ -6,10 +6,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-afb-en", "description": "Gulf Arabic to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-afb-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-afb-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-afb-en.zip" } ] }, @@ -20,10 +20,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-ang-en", "description": "Old English to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ang-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-ang-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ang-en.zip" } ] }, @@ -34,10 +34,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-ar-en", "description": "Arabic to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ar-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-ar-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ar-en.zip" } ] }, @@ -48,10 +48,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-cs-en", "description": "Czech to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-cs-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-cs-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-cs-en.zip" } ] }, @@ -62,10 +62,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-de-en", "description": "German to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-de-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-de-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-de-en.zip" } ] }, @@ -76,10 +76,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-el-en", "description": "Greek to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-el-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-el-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-el-en.zip" } ] }, @@ -90,10 +90,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-enm-en", "description": "Middle English to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-enm-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-enm-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-enm-en.zip" } ] }, @@ -104,10 +104,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-eo-en", "description": "Esperanto to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-eo-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-eo-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-eo-en.zip" } ] }, @@ -118,10 +118,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-es-en", "description": "Spanish to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-es-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-es-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-es-en.zip" } ] }, @@ -132,10 +132,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-fa-en", "description": "Persian to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-fa-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-fa-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-fa-en.zip" } ] }, @@ -146,10 +146,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-fi-en", "description": "Finnish to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-fi-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-fi-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-fi-en.zip" } ] }, @@ -160,10 +160,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-fr-en", "description": "French to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-fr-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-fr-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-fr-en.zip" } ] }, @@ -174,10 +174,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-grc-en", "description": "Ancient Greek to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-grc-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-grc-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-grc-en.zip" } ] }, @@ -188,10 +188,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-hi-en", "description": "Hindi to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-hi-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-hi-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-hi-en.zip" } ] }, @@ -202,10 +202,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-hu-en", "description": "Hungarian to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-hu-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-hu-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-hu-en.zip" } ] }, @@ -216,10 +216,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-id-en", "description": "Indonesian to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-id-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-id-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-id-en.zip" } ] }, @@ -230,38 +230,38 @@ "pronunciation": [], "terms": [ { + "name": "kty-it-en", "description": "Italian to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-it-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-it-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-it-en.zip" } ] }, "ja": { "frequency": [ { + "name": "BCCWJ", "description": "Based on the Balanced Corpus of Contemporary Written Japanese covering books, magazines, newspapers, blogs, forums, textbooks, and legal documents among others.", - "downloadUrl": "https://github.com/Kuuuube/yomitan-dictionaries/releases/download/yomitan-permalink/BCCWJ_SUW_LUW_combined.zip", "homepage": "https://github.com/Kuuuube/yomitan-dictionaries?tab=readme-ov-file#bccwj-suw-luw-combined", - "name": "BCCWJ" + "downloadUrl": "https://github.com/Kuuuube/yomitan-dictionaries/releases/download/yomitan-permalink/BCCWJ_SUW_LUW_combined.zip" } ], "grammar": [], "kanji": [ { + "name": "KANJIDIC", "description": "An English dictionary with readings, meanings, stroke order diagrams, frequency, grade level, JLPT level and frequency of kanji characters.", - "downloadUrl": "https://github.com/themoeway/jmdict-yomitan/releases/latest/download/KANJIDIC_english.zip", "homepage": "https://github.com/themoeway/jmdict-yomitan?tab=readme-ov-file#kanjidic-for-yomitan", - "name": "KANJIDIC" + "downloadUrl": "https://github.com/themoeway/jmdict-yomitan/releases/latest/download/KANJIDIC_english.zip" } ], "pronunciation": [], "terms": [ { + "name": "Jitendex", "description": "A free and openly licensed Japanese-to-English dictionary with example sentences, usage notes, etymology notes, cross references, antonyms, definition notes.", - "downloadUrl": "https://github.com/stephenmk/stephenmk.github.io/releases/latest/download/jitendex-yomitan.zip", "homepage": "https://jitendex.org", - "name": "Jitendex" + "downloadUrl": "https://github.com/stephenmk/stephenmk.github.io/releases/latest/download/jitendex-yomitan.zip" } ] }, @@ -272,10 +272,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-km-en", "description": "Khmer to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-km-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-km-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-km-en.zip" } ] }, @@ -286,10 +286,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-kn-en", "description": "Kannada to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-kn-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-kn-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-kn-en.zip" } ] }, @@ -300,10 +300,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-ko-en", "description": "Korean to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ko-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-ko-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ko-en.zip" } ] }, @@ -314,10 +314,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-la-en", "description": "Latin to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-la-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-la-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-la-en.zip" } ] }, @@ -328,10 +328,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-lv-en", "description": "Latvian to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-lv-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-lv-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-lv-en.zip" } ] }, @@ -342,10 +342,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-mn-en", "description": "Mongolian to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-mn-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-mn-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-mn-en.zip" } ] }, @@ -356,10 +356,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-nl-en", "description": "Dutch to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-nl-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-nl-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-nl-en.zip" } ] }, @@ -370,10 +370,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-pl-en", "description": "Polish to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-pl-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-pl-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-pl-en.zip" } ] }, @@ -384,10 +384,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-pt-en", "description": "Portuguese to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-pt-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-pt-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-pt-en.zip" } ] }, @@ -398,10 +398,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-ro-en", "description": "Romanian to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ro-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-ro-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ro-en.zip" } ] }, @@ -412,10 +412,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-ru-en", "description": "Russian to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ru-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-ru-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-ru-en.zip" } ] }, @@ -426,10 +426,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-scn-en", "description": "Sicillian to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-scn-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-scn-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-scn-en.zip" } ] }, @@ -440,10 +440,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-sga-en", "description": "Old Irish to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sga-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-sga-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sga-en.zip" } ] }, @@ -454,10 +454,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-sh-en", "description": "Serbo-Croatian to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sh-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-sh-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sh-en.zip" } ] }, @@ -468,10 +468,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-sq-en", "description": "Albanian to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sq-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-sq-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sq-en.zip" } ] }, @@ -482,10 +482,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-sv-en", "description": "Swedish to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sv-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-sv-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-sv-en.zip" } ] }, @@ -496,10 +496,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-th-en", "description": "Thai to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-th-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-th-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-th-en.zip" } ] }, @@ -510,10 +510,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-tl-en", "description": "Tagalog to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-tl-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-tl-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-tl-en.zip" } ] }, @@ -524,10 +524,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-tr-en", "description": "Turkish to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-tr-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-tr-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-tr-en.zip" } ] }, @@ -538,10 +538,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-uk-en", "description": "Ukranian to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-uk-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-uk-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-uk-en.zip" } ] }, @@ -552,10 +552,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-vi-en", "description": "Vietnamese to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-vi-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-vi-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-vi-en.zip" } ] }, @@ -566,10 +566,10 @@ "pronunciation": [], "terms": [ { + "name": "kty-zh-en", "description": "Chinese to English dictionary created from Wiktionary data.", - "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-zh-en.zip", "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", - "name": "kty-zh-en" + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-zh-en.zip" } ] } From 92300c46d22e48436a465203a7e6a57c21113dad Mon Sep 17 00:00:00 2001 From: MarvNC Date: Tue, 17 Sep 2024 16:45:25 -0700 Subject: [PATCH 3/6] Use hasProperties instead --- .eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 28bb593ff8..faee1c51d0 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -679,7 +679,8 @@ ], "rules": { "jsonc/sort-keys": ["error", { - "pathPattern": "^\\w+.\\w+\\[\\d+\\]$", + "pathPattern": ".*", + "hasProperties": ["name"], "order": [ "name", "description", From 0d67cf0c9cd322a94353c7a308af2c8a02dbee04 Mon Sep 17 00:00:00 2001 From: MarvNC Date: Tue, 17 Sep 2024 16:51:06 -0700 Subject: [PATCH 4/6] Add VSCode Schema Setting --- .vscode/settings.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index bb9b3c80bd..e1bf61a8c3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -30,5 +30,13 @@ "files.trimTrailingWhitespace": true, "html-validate.validate": [ "html" + ], + "json.schemas": [ + { + "fileMatch": [ + "/ext/data/recommended-dictionaries.json" + ], + "url": "/ext/data/schemas/recommended-dictionaries-schema.json" + } ] } From e529f6c81f46fd5abc3f1d169e53bb1ba588420a Mon Sep 17 00:00:00 2001 From: MarvNC Date: Tue, 17 Sep 2024 17:10:06 -0700 Subject: [PATCH 5/6] Simplify recommended dicts schema --- .../recommended-dictionaries-schema.json | 153 ++++-------------- 1 file changed, 33 insertions(+), 120 deletions(-) diff --git a/ext/data/schemas/recommended-dictionaries-schema.json b/ext/data/schemas/recommended-dictionaries-schema.json index 5a2540fe8c..b3df85aa31 100644 --- a/ext/data/schemas/recommended-dictionaries-schema.json +++ b/ext/data/schemas/recommended-dictionaries-schema.json @@ -10,146 +10,31 @@ "terms": { "type": "array", "items": { - "type": "object", - "required": [ - "name", - "downloadUrl", - "description" - ], - "properties": { - "name": { - "type": "string", - "minLength": 2 - }, - "downloadUrl": { - "type": "string", - "minLength": 2 - }, - "description": { - "type": "string", - "minLength": 2 - }, - "homepage": { - "type": "string", - "minLength": 2 - } - } + "$ref": "#/definitions/Dictionary" } }, "kanji": { "type": "array", "items": { - "type": "object", - "required": [ - "name", - "downloadUrl", - "description" - ], - "properties": { - "name": { - "type": "string", - "minLength": 2 - }, - "downloadUrl": { - "type": "string", - "minLength": 2 - }, - "description": { - "type": "string", - "minLength": 2 - }, - "homepage": { - "type": "string", - "minLength": 2 - } - } + "$ref": "#/definitions/Dictionary" } }, "frequency": { "type": "array", "items": { - "type": "object", - "required": [ - "name", - "downloadUrl", - "description" - ], - "properties": { - "name": { - "type": "string", - "minLength": 2 - }, - "downloadUrl": { - "type": "string", - "minLength": 2 - }, - "description": { - "type": "string", - "minLength": 2 - }, - "homepage": { - "type": "string", - "minLength": 2 - } - } + "$ref": "#/definitions/Dictionary" } }, "grammar": { "type": "array", "items": { - "type": "object", - "required": [ - "name", - "downloadUrl", - "description" - ], - "properties": { - "name": { - "type": "string", - "minLength": 2 - }, - "downloadUrl": { - "type": "string", - "minLength": 2 - }, - "description": { - "type": "string", - "minLength": 2 - }, - "homepage": { - "type": "string", - "minLength": 2 - } - } + "$ref": "#/definitions/Dictionary" } }, "pronunciation": { "type": "array", "items": { - "type": "object", - "required": [ - "name", - "downloadUrl", - "description" - ], - "properties": { - "name": { - "type": "string", - "minLength": 2 - }, - "downloadUrl": { - "type": "string", - "minLength": 2 - }, - "description": { - "type": "string", - "minLength": 2 - }, - "homepage": { - "type": "string", - "minLength": 2 - } - } + "$ref": "#/definitions/Dictionary" } } }, @@ -161,5 +46,33 @@ ], "additionalProperties": false } + }, + "definitions": { + "Dictionary": { + "type": "object", + "required": [ + "name", + "downloadUrl", + "description" + ], + "properties": { + "name": { + "type": "string", + "minLength": 2 + }, + "downloadUrl": { + "type": "string", + "minLength": 2 + }, + "description": { + "type": "string", + "minLength": 2 + }, + "homepage": { + "type": "string", + "minLength": 2 + } + } + } } } From 9b9cbe782e42bfff7eac4bc9fd895624c415849a Mon Sep 17 00:00:00 2001 From: MarvNC Date: Tue, 17 Sep 2024 17:10:26 -0700 Subject: [PATCH 6/6] Add missing en kty --- ext/data/recommended-dictionaries.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ext/data/recommended-dictionaries.json b/ext/data/recommended-dictionaries.json index 9a53d62c21..31826392c3 100644 --- a/ext/data/recommended-dictionaries.json +++ b/ext/data/recommended-dictionaries.json @@ -83,6 +83,20 @@ } ] }, + "en": { + "frequency": [], + "grammar": [], + "kanji": [], + "pronunciation": [], + "terms": [ + { + "name": "kty-en-en", + "description": "English to English dictionary created from Wiktionary data.", + "homepage": "https://github.com/themoeway/kaikki-to-yomitan/blob/master/downloads.md", + "downloadUrl": "https://github.com/themoeway/kaikki-to-yomitan/releases/latest/download/kty-en-en.zip" + } + ] + }, "enm": { "frequency": [], "grammar": [],