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 dictionary forms a conjugated word could come from

deinflectfunction

The dictionary forms a written word could be conjugated from, with the path from each to the word: the endings are taken off one at a time, outermost first, as a learner does, so 食べなかった is the past of 食べない, which is the negative of 食べる. This only proposes, from endings alone, so it also proposes forms that are no word (食べなかう); the dictionary says which are real, by the kind of word each must be. findInflected and inflectedOf ask it. A form is proposed once, by the shortest path that reaches it. Nothing here fetches, and it never throws.

Import it

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

Also exported from: @johnmorrisdotca/jisho/words

Definition

function deinflect(text: string): Deinflection[]

Parameters

NameTypeDescription
textstring

A written word, made plain (normalizeText): kana, or kana and kanji.

Returns

Deinflection[]

The proposals, shortest path first, none for a word no ending fits.

Examples

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

console.log(deinflect("食べなかった").filter((one) => one.base === "食べる")); // [{ base: "食べる", kind: "i", path: ["negative", "past"] }]
[ { base: '食べる', kind: 'i', path: [ 'negative', 'past' ] } ]

What it prints (run when this page was built)

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