Reference · Example sentences of a word, with furigana and their credit
Exampletype
An example sentence of a word.
Import it
import type { Example } from "@johnmorrisdotca/jisho/examples";
Definition
type Example = {
readonly sense: number;
readonly japanese: string;
readonly furigana: readonly {
readonly text: string;
readonly reading?: string;
}[];
readonly english: string;
readonly level: "N5" | "N4" | "N3" | "N2" | "N1" | null;
readonly headword: string;
readonly credit: ExampleCredit;
};
Members
| Name | Type | Description |
|---|---|---|
sense | number | The number of the sense of the word it shows, as |
japanese | string | The sentence as Tatoeba has it. |
furigana | readonly { readonly text: string; readonly reading?: string; }[] | The sentence in pieces with the kana that read each kanji, which put together are |
english | string | The English translation. |
level | "N5" | "N4" | "N3" | "N2" | "N1" | null | The hardest JLPT level among its kanji (N5 for a sentence with none), or null when one of them is on no list. |
headword | string | The word as the sentence has it, which may be conjugated. |
credit | ExampleCredit | Who it is by. |
Examples
import type { Example } from "@johnmorrisdotca/jisho/examples";
const one: Example = { sense: 1, japanese: "犬が走る。", furigana: [{ text: "犬", reading: "いぬ" }, { text: "が" }], english: "A dog runs.", level: "N5", headword: "犬", credit: { id: 1, japanese: null, english: null } };
console.log(one.english);A dog runs.What it prints (run when this page was built)