本文へ移動

Jisho辞書

JMdictの単語を読み、表記、英語の意味、含まれる漢字、ローマ字から引け、必要な小さなチャンクだけを取得します。初期値はセーフモードで、各語義にはJMdictの印が付き、「フィルターなし」も選べます。2,999字の漢字の学年、JLPTレベル、読み、意味、形の似た漢字の組も収め、表ごとに独立したエントリポイントがあります。

「Jisho」は「辞書」のローマ字表記です。日本語の単語と漢字を収めています。 名前について(英語)

目次

リファレンス

表を読む関数

import { … } from "@johnmorrisdotca/jisho";

最小化と gzip 圧縮をしたサイズは 0.9 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

Jisho: Japanese kanji as data. The school grades, the JLPT levels, the readings and meanings and the pairs that look alike are each an entry point of their own, so a page loads only what it reads; this entry holds the types and the plain functions that read them, and no data.

エクスポート

名前種類概要
ELEMENTARY_GRADES定数The grades taught in Japanese elementary school: 1,026 kanji, the kyōiku kanji.
gradeOf関数Which grade a kanji is taught in.
GradeTable型The shape of GRADES, from @johnmorrisdotca/jisho/grades.
JLPT_LEVELS定数Every JLPT level, the easiest first.
JlptLevel型A JLPT level, N5 the easiest.
JlptTable型The shape of JLPT, from @johnmorrisdotca/jisho/jlpt.
JOYO_GRADES定数The grades that make up the jōyō kanji, the 2,136 for everyday use.
Kanji型One kanji in full.
kanjiIn関数The kanji in a piece of text, once each, in the order they first appear.
kanjiOfGrade関数The kanji of one grade.
kanjiOfLevel関数The kanji of one JLPT level, not counting the levels below it.
levelOf関数Which JLPT level's list holds a kanji.
LookAlike型A kanji that looks like another, and how much.
LookAlikeOptions型How far lookAlikes goes.
lookAlikes関数The kanji most like one kanji, the closest first.
PackedKanji型The shape of KANJI, from @johnmorrisdotca/jisho/kanji.
PackedLookAlikes型The shape of LOOK_ALIKE, from @johnmorrisdotca/jisho/look-alike.
readKanji関数Reads the stored table into plain rows.
SCHOOL_GRADES定数Every school grade, in order.
SchoolGrade型A school grade as KANJIDIC2 numbers it: 1 to 6 are elementary school, 8 is the rest of the jōyō kanji, taught in secondary school, 9 is the kanji allowed in names (jinmeiyō), 10 is a jinmeiyō variant of a jōyō kanji.
searchKanji関数The kanji that hold a piece of text: the character itself, a reading or a meaning, in English or French, ignoring case.
VERSION定数The package's version.

ソースを見るGitHub で編集@johnmorrisdotca/jisho 2.11.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。