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

findInflectedfunction

Looks a text up as it is written or as a conjugated form: 食べなかった finds 食べる, with the path "negative, past". It loads the text and the dictionary forms its ending could come from (a few pieces, about 25 kB gzipped each, where a plain lookup costs one or two), and keeps those that are the kind of word the ending needs. See inflectedOf for the details, and deinflect for the endings.

Import it

import { findInflected } from "@johnmorrisdotca/jisho/words";

Definition

function findInflected(text: string, options?: Omit<LoadWordsOptions, "previous" | "inflected">): Promise<InflectedWord[]>

Parameters

NameTypeDescription
textstring

A reading or a written form, conjugated or not.

options (optional)Omit<LoadWordsOptions, "previous" | "inflected">

The mode, the lists and romaji, as for loadWords.

Returns

Promise<InflectedWord[]>

The words with their paths, the text's own first.

Examples

import { findInflected } from "@johnmorrisdotca/jisho/words";

const found = await findInflected("食べなかった");
console.log(found[0]?.word.written, found[0]?.path.join(", ")); // 食べる negative, past
食べる negative, past

What it prints (run when this page was built)

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