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 · Look words up by reading, written form, English meaning, kanji or romaji

ReadTokentype

One piece of a text that readText cut out: a word of the dictionary, a stretch of Japanese no word was found for, or something that is not Japanese (spaces, punctuation, Latin letters, digits), which is kept so that the pieces put together are the text.

Import it

import type { ReadToken } from "@johnmorrisdotca/jisho/words";

Definition

type ReadToken = {
    readonly text: string;
    readonly kind: "word" | "unknown" | "other";
    readonly word: Word | null;
    readonly form: string;
    readonly path: readonly string[];
    readonly furigana: readonly FuriganaPart[];
    readonly reading: string;
    readonly meaning: string;
    readonly level: JlptLevel | null;
    readonly kanji: readonly KanjiFact[];
    readonly alternatives: readonly InflectedWord[];
};

Members

NameTypeDescription
textstring

The piece as the text writes it.

kind"word" | "unknown" | "other"

word was found in the dictionary, unknown is Japanese that nothing was found for, other is not Japanese.

wordWord | null

The dictionary word, for a word; otherwise null.

formstring

The dictionary form as it was looked up, spelled as the text spells it: 食べる for 食べなかった; the text itself when it is not conjugated.

pathreadonly string[]

What was done to the dictionary form to make the text, innermost first (["negative", "past"]); empty when it was not conjugated.

furiganareadonly FuriganaPart[]

The text in pieces with the kana that read each kanji: the furigana, which put together is text. Kana alone for a word with no kanji.

readingstring

The whole text read in hiragana, for a word; empty otherwise.

meaningstring

The word's short English meaning, for a word; empty otherwise.

levelJlptLevel | null

The hardest JLPT level among its kanji. Jisho has levels for kanji and none for words, so a word of no kanji, or none on a list, has null.

kanjireadonly KanjiFact[]

The kanji in it, each with its school grade and JLPT level.

alternativesreadonly InflectedWord[]

Other words the same text could be, the next commonest first, for a text that is more than one word (日本 is にほん and にっぽん).

Examples

import type { ReadToken } from "@johnmorrisdotca/jisho/words";

const kind = (token: ReadToken) => token.kind;
console.log(typeof kind);
function

What it prints (run when this page was built)

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