Something went wrong. Try again.
Pop-up dictionary browser extension for language learning. Successor to Yomichan. (PERSONAL FORK)
Something went wrong. Try again.
JSON
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550{ "optionsPresets": { "kanji": { "type": "kanji", "enabledDictionaryMap": [ [ "${title}", { "index": 0, "alias": "kanjiDictAlias" } ] ], "removeNonJapaneseCharacters": false }, "default": { "type": "terms", "matchType": "exact", "deinflect": true, "mainDictionary": "${title}", "sortFrequencyDictionary": null, "sortFrequencyDictionaryOrder": "descending", "removeNonJapaneseCharacters": true, "language": "ja", "textReplacements": [ null ], "enabledDictionaryMap": [ [ "${title}", { "index": 0, "alias": "termsDictAlias", "allowSecondarySearches": false, "partsOfSpeechFilter": true, "useDeinflections": true } ] ] } }, "tests": [ { "name": "Basic kanji test 1", "func": "findKanji", "text": "打", "options": "kanji" }, { "name": "Basic kanji test 2", "func": "findKanji", "text": "込", "options": "kanji" }, { "name": "Missing kanji test", "func": "findKanji", "text": "画", "options": "kanji" }, { "name": "Find term using expression text 1", "func": "findTerms", "mode": "split", "text": "打", "options": "default" }, { "name": "Find term using expression text 2", "func": "findTerms", "mode": "split", "text": "打つ", "options": "default" }, { "name": "Find term using expression text 3", "func": "findTerms", "mode": "split", "text": "打ち込む", "options": "default" }, { "name": "Find term using expression text 4", "func": "findTerms", "mode": "split", "text": "画像", "options": "default" }, { "name": "Find term using reading 1", "func": "findTerms", "mode": "split", "text": "だ", "options": "default" }, { "name": "Find term using reading 2", "func": "findTerms", "mode": "split", "text": "ダース", "options": "default" }, { "name": "Find term using reading 3", "func": "findTerms", "mode": "split", "text": "うつ", "options": "default" }, { "name": "Find term using reading 4", "func": "findTerms", "mode": "split", "text": "ぶつ", "options": "default" }, { "name": "Find term using reading 5", "func": "findTerms", "mode": "split", "text": "うちこむ", "options": "default" }, { "name": "Find term using reading 6", "func": "findTerms", "mode": "split", "text": "ぶちこむ", "options": "default" }, { "name": "Find term using reading 7", "func": "findTerms", "mode": "split", "text": "がぞう", "options": "default" }, { "name": "Missing term 1", "func": "findTerms", "mode": "split", "text": "為る", "options": "default" }, { "name": "Missing term 2", "func": "findTerms", "mode": "split", "text": "する", "options": "default" }, { "name": "Search using different modes - simple", "func": "findTerms", "mode": "simple", "text": "打ち込む", "options": "default" }, { "name": "Search using different modes - group", "func": "findTerms", "mode": "group", "text": "打ち込む", "options": "default" }, { "name": "Search using different modes - merge", "func": "findTerms", "mode": "merge", "text": "打ち込む", "options": "default" }, { "name": "Search using different modes - term", "func": "findTerms", "mode": "term", "text": "打ち込む", "options": "default" }, { "name": "Search inflected term", "func": "findTerms", "mode": "split", "text": "打ち込んでいませんでした", "options": "default" }, { "name": "Ignore text inside parentheses", "func": "findTerms", "mode": "split", "text": "打(う)ち込(こ)む", "options": [ "default", { "type": "terms", "removeNonJapaneseCharacters": false, "textReplacements": [ null, [ { "pattern": "\\(([^)]*)(?:\\))", "flags": "g", "replacement": "" } ] ] } ] }, { "name": "Remove parentheses around text", "func": "findTerms", "mode": "split", "text": "(打)(ち)(込)(む)", "options": [ "default", { "type": "terms", "removeNonJapaneseCharacters": false, "textReplacements": [ null, [ { "pattern": "\\(([^)]*)(?:\\))", "flags": "g", "replacement": "$1" } ] ] } ] }, { "name": "Test non-empty replacement", "func": "findTerms", "mode": "split", "text": "test", "options": [ "default", { "type": "terms", "removeNonJapaneseCharacters": false, "textReplacements": [ null, [ { "pattern": "test", "flags": "g", "replacement": "よみ" } ] ] } ] }, { "name": "Test non-empty replacement at end", "func": "findTerms", "mode": "split", "text": "つtest", "options": [ "default", { "type": "terms", "removeNonJapaneseCharacters": false, "textReplacements": [ null, [ { "pattern": "test", "flags": "g", "replacement": "よみ" } ] ] } ] }, { "name": "Test non-empty replacement at start", "func": "findTerms", "mode": "split", "text": "testました", "options": [ "default", { "type": "terms", "removeNonJapaneseCharacters": false, "textReplacements": [ null, [ { "pattern": "test", "flags": "g", "replacement": "よみ" } ] ] } ] }, { "name": "Search merged mode with non-primary definitions", "func": "findTerms", "mode": "merge", "text": "うちこむ", "options": "default" }, { "name": "Test pronunciations 1", "func": "findTerms", "mode": "split", "text": "お手前", "options": "default" }, { "name": "Test pronunciations 2", "func": "findTerms", "mode": "split", "text": "番号", "options": "default" }, { "name": "Test pronunciations 3", "func": "findTerms", "mode": "split", "text": "中腰", "options": "default" }, { "name": "Test pronunciations 4", "func": "findTerms", "mode": "split", "text": "所業", "options": "default" }, { "name": "Test pronunciations 5", "func": "findTerms", "mode": "split", "text": "土木工事", "options": "default" }, { "name": "Test pronunciations 6 - phonetic transcriptions", "func": "findTerms", "mode": "split", "text": "好き", "options": "default" }, { "name": "Structured content test", "func": "findTerms", "mode": "split", "text": "構造", "options": "default" }, { "name": "Test dictionary deinflection", "func": "findTerms", "mode": "split", "text": "のたもうた", "options": "default" }, { "name": "Test text preprocessors - convertNumericCharacters", "func": "findTerms", "mode": "split", "text": "39", "options": [ "default", { "type": "terms", "removeNonJapaneseCharacters": false } ] }, { "name": "Test text preprocessors - alphabeticWidthVariants 1", "func": "findTerms", "mode": "split", "text": "English", "options": [ "default", { "type": "terms", "removeNonJapaneseCharacters": false } ] }, { "name": "Test text preprocessors - alphabeticWidthVariants 2", "func": "findTerms", "mode": "split", "text": "USB", "options": [ "default", { "type": "terms", "removeNonJapaneseCharacters": false } ] }, { "name": "Test text preprocessors - alphabeticToHiragana", "func": "findTerms", "mode": "split", "text": "utsu", "options": [ "default", { "type": "terms", "removeNonJapaneseCharacters": false } ] }, { "name": "Test text preprocessors - convertKatakanaToHiragana", "func": "findTerms", "mode": "split", "text": "ウツ", "options": [ "default", { "type": "terms" } ] }, { "name": "Test text preprocessors - convertHiraganaToKatakana", "func": "findTerms", "mode": "split", "text": "てきすと", "options": [ "default", { "type": "terms" } ] }, { "name": "Test text preprocessors - convertHalfWidthCharacters, convertKatakanaToHiragana", "func": "findTerms", "mode": "split", "text": "ウツ", "options": [ "default", { "type": "terms" } ] }, { "name": "Test text preprocessors - collapseEmphaticSequences", "func": "findTerms", "mode": "split", "text": "すっっごーーい", "options": [ "default", { "type": "terms" } ] }, { "name": "Test text preprocessors - capitalizeFirstLetter", "func": "findTerms", "mode": "split", "text": "english", "options": [ "default", { "type": "terms", "language": "en", "removeNonJapaneseCharacters": false } ] }, { "name": "Test text preprocessors - decapitalize", "func": "findTerms", "mode": "split", "text": "LANGUAGE", "options": [ "default", { "type": "terms", "language": "en", "removeNonJapaneseCharacters": false } ] }, { "name": "Test text postprocessing", "func": "findTerms", "mode": "split", "text": "마시거나", "options": [ "default", { "type": "terms", "language": "ko", "removeNonJapaneseCharacters": false } ] }, { "name": "Test search resolution - word", "func": "findTerms", "mode": "split", "text": "english example", "options": [ "default", { "type": "terms", "language": "en", "removeNonJapaneseCharacters": false, "searchResolution": "word" } ] }, { "name": "Find terms using primary reading 1", "func": "findTerms", "mode": "split", "text": "自重", "options": [ "default", { "type": "terms", "primaryReading": "じちょう" } ] }, { "name": "Find terms using primary reading 2", "func": "findTerms", "mode": "split", "text": "自重", "options": [ "default", { "type": "terms", "primaryReading": "じじゅう" } ] } ]}