Reference · Look words up by reading, written form, English meaning, kanji or romaji
Wordtype
One word as a lookup gives it.
Import it
import type { Word } from "@johnmorrisdotca/jisho/words";
Definition
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;
};
Members
| Name | Type | Description |
|---|---|---|
written | string | 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. |
reading | string | How it is read, in the kana JMdict writes it in (katakana for a loanword). |
forms | readonly string[] | Every written form, the commonest first; none for a word with no kanji. |
meaning | string | A short English meaning, up to two senses, cut at a whole gloss: "god, deity, divinity; god-tier". |
senses | readonly Sense[] | Its first four senses, each with its marks and glosses. The meaning is made from these. |
kinds | string | 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. |
common | boolean | Whether JMdict marks it as a common word. |
rank | number | 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. |
priority | readonly string[] | The priority tags JMdict gives it, as JMdict writes them ( |
id (optional) | number | undefined | The number JMdict gives its entry ( |
Examples
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);paperWhat it prints (run when this page was built)