KanjiTesttype
A test: words to write in kanji from their readings, then different words to read. Made by buildKanjiTest.
Import it
import type { KanjiTest } from "@johnmorrisdotca/hikidashi/align";
Also exported from: @johnmorrisdotca/hikidashi
Definition
type KanjiTest = {
writing: KanjiTestQuestion[];
reading: KanjiTestQuestion[];
};
Members
| Name | Type | Description |
|---|---|---|
writing | KanjiTestQuestion[] | |
reading | KanjiTestQuestion[] |
Examples
import { buildKanjiTest, type KanjiTest } from "@johnmorrisdotca/hikidashi/align";
const test: KanjiTest = buildKanjiTest([{ word: "水", reading: "みず" }, { word: "火", reading: "ひ" }], { seed: 9, count: 1 });
console.log(test.writing.length, test.reading.length, test.writing[0]?.word !== test.reading[0]?.word);1 1 trueWhat it prints (run when this page was built)