ReadWordtype
A word and its reading in hiragana: what buildKanjiTest takes a list of, and what kanjiAsWord makes.
Import it
import type { ReadWord } from "@johnmorrisdotca/hikidashi/align";
Also exported from: @johnmorrisdotca/hikidashi
Definition
type ReadWord = {
word: string;
reading: string;
};
Members
| Name | Type | Description |
|---|---|---|
word | string | The word as it is written, with at least one kanji. |
reading | string | How it is read, in hiragana (katakana is read the same). |
Examples
import { buildKanjiTest, type ReadWord } from "@johnmorrisdotca/hikidashi/align";
const words: ReadWord[] = [{ word: "水", reading: "みず" }, { word: "食べる", reading: "たべる" }];
console.log(buildKanjiTest(words, { seed: 1, count: 1 }).writing.map((question) => question.word));[ '水' ]What it prints (run when this page was built)