Skip to the content

Bushu部首

Choose the parts you can see in a kanji, intersect their matches, and add a radical picker to your page.

Bushu is the Japanese word 部首 for a kanji radical. About the name

Contents

Reference · Radical intersection and display forms

RadicalGrouptype

The radicals that share a stroke count, as the grid of a picker draws them.

Import it

import type { RadicalGroup } from "@johnmorrisdotca/bushu";

Definition

type RadicalGroup = {
    strokes: number;
    radicals: string[];
};

Members

NameTypeDescription
strokesnumber
radicalsstring[]

Examples

import { RADKFILE } from "@johnmorrisdotca/bushu/radkfile";
import type { RadicalGroup } from "@johnmorrisdotca/bushu";
import { radicalGroups } from "@johnmorrisdotca/bushu";

const radicals = RADKFILE.radicals;
const value: RadicalGroup = radicalGroups(radicals)[0];
console.log(value);
{ strokes: 1, radicals: [ '一', '|', '丶', 'ノ', '乙', '亅' ] }

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/bushu 1.1.0.