本文へ移動

Jisho辞書

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

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

目次

リファレンス · 読み、表記、英語の意味、漢字、ローマ字から単語を引く

Word型

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

One word as a lookup gives it.

インポート

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

定義

type Word = {
    readonly written: string;
    readonly reading: string;
    readonly forms: readonly string[];
    readonly meaning: string;
    readonly senses: readonly Sense[];
    readonly kinds: string;
    readonly common: boolean;
    readonly rank: number;
    readonly priority: readonly string[];
    readonly id?: number;
};

メンバー

名前型説明
writtenstring

The way to show it: the form you looked up, else its commonest written form, else the reading when it has no kanji or is usually written in kana.

readingstring

How it is read, in the kana JMdict writes it in (katakana for a loanword).

formsreadonly string[]

Every written form, the commonest first; none for a word with no kanji.

meaningstring

A short English meaning, up to two senses, cut at a whole gloss: "god, deity, divinity; god-tier".

sensesreadonly Sense[]

Its first four senses, each with its marks and glosses. The meaning is made from these.

kindsstring

The kinds of word it is, as letters: g godan, i ichidan, a i-adjective, n na-adjective, s suru, k kuru. Empty for any other.

commonboolean

Whether JMdict marks it as a common word.

ranknumber

How common it is, lower being commoner: 1 to 24,000 for a word JMdict gives a priority, and 100,000 for one it does not.

priorityreadonly string[]

The priority tags JMdict gives it, as JMdict writes them (news1, ichi1, spec2, gai1, nf05…); none for a word it does not rank.

id (省略可)number | undefined

The number JMdict gives its entry (ent_seq), which loadEntry takes to fetch the whole entry. Absent from a word you made yourself.

例

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

const word: Word = { written: "紙", reading: "かみ", forms: ["紙"], meaning: "paper", senses: [{ marks: [], glosses: ["paper"] }], kinds: "", common: true, rank: 1250, priority: ["news1", "ichi1", "nf03"] };
console.log(word.meaning);
paper

出力(このページを作ったときに実行した結果)

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

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