Reference · Radical index and provenance
RADKFILEconstant
THE RADICALS AND THEIR KANJI, from RADKFILE. Written by scripts/build-data.mjs, never edited by hand; the monthly
refresh (.github/workflows/radkfile-refresh.yml) runs the script again.
RADKFILE and KRADFILE are the property of the Electronic Dictionary Research and Development Group (EDRDG), used under the Creative Commons Attribution-ShareAlike 4.0 licence and the Group's conditions: https://www.edrdg.org/edrdg/licence.html. This data is derived from them and is under the same licence (see NOTICE.md).
253 radicals, in the file's own order (fewest strokes first), each with its stroke count as RADKFILE writes it
and every kanji that holds it; 6355 kanji in all (the JIS X 0208 set). A radical with no character of its own is keyed by a kanji that
holds the shape (汁 for 氵): radicalForm says the shape. KRADFILE, which lists the same thing kanji by kanji, was checked to
agree with RADKFILE on every one of the 6355 kanji before this was written. unicode is the character EDRDG means by a stand-in,
from KRADFILE's header.
Import it
import { RADKFILE } from "@johnmorrisdotca/bushu/radkfile";
Definition
const RADKFILE: { sources: Record<"radkfile" | "kradfile", { name: string; url: string; fileDate: string | null; sha256: string; retrieved: string; }>; radicals: readonly Radical[]; unicode: Readonly<Record<string, string>>; }
Members
| Name | Type | Description |
|---|---|---|
sources | Record<"radkfile" | "kradfile", { name: string; url: string; fileDate: string | null; sha256: string; retrieved: string; }> | What this was made from: each file's address, SHA-256 (of the file as served, gzipped) and the date this was made, and the date the file gives itself. |
radicals | readonly Radical[] | |
unicode | Readonly<Record<string, string>> |
Examples
import { RADKFILE } from "@johnmorrisdotca/bushu/radkfile";
const radicals = RADKFILE.radicals;
console.log(RADKFILE.radicals.length);253What it prints (run when this page was built)