Skip to the content

Jisho辞書

The words of JMdict looked up by reading, written form, English meaning, a kanji in them or romaji, in small pieces fetched as needed, safe by default or unfiltered with every sense's marks, and the school grades, JLPT levels, readings, meanings and look-alike pairs of 2,999 kanji, each table an entry point of its own.

Jisho is the Japanese word 辞書 for a dictionary: this one holds Japanese words and kanji. About the name

Contents

Reference · The functions that read the tables

gradeOffunction

Which grade a kanji is taught in.

Import it

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

Definition

function gradeOf(table: GradeTable, kanji: string): SchoolGrade | null

Parameters

NameTypeDescription
tableGradeTable

GRADES, from @johnmorrisdotca/jisho/grades.

kanjistring

One kanji.

Returns

SchoolGrade | null

The grade, or null when KANJIDIC2 gives the kanji none (it is outside the jōyō and jinmeiyō kanji), or when the text is not exactly one character: an empty text and a text of two kanji are not any kanji's grade.

Examples

import { gradeOf } from "@johnmorrisdotca/jisho";
import { GRADES } from "@johnmorrisdotca/jisho/grades";

console.log(gradeOf(GRADES, "日"), gradeOf(GRADES, "鬱"), gradeOf(GRADES, "龘")); // 1 8 null
1 8 null

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jisho 2.11.0.