KanjiDifficultySource型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What your dictionary knows about a kanji, which kanjiCost turns into a cost. KANJIDIC2 holds both fields.
インポート
import type { KanjiDifficultySource } from "@johnmorrisdotca/hikidashi/difficulty";
ほかのエクスポート元: @johnmorrisdotca/hikidashi
定義
type KanjiDifficultySource = {
grade: number | null;
frequencyRank: number | null;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
grade | number | null | The school grade: 1 to 6 for elementary, 8 for the rest of the jōyō kanji, 9 and 10 for name kanji (KANJIDIC2's numbering). Null when ungraded. |
frequencyRank | number | null | How common the kanji is, 1 being the most common. Null when not ranked. |
例
import { kanjiCost, type KanjiDifficultySource } from "@johnmorrisdotca/hikidashi/difficulty";
const water: KanjiDifficultySource = { grade: 1, frequencyRank: 223 };
console.log(kanjiCost(water));1出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。