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

radicalGroupsfunction

The grid: the radicals in stroke-count order, grouped by the count, in the order they were given within a count.

Import it

import { radicalGroups } from "@johnmorrisdotca/bushu";

Definition

function radicalGroups(radicals: readonly Radical[]): RadicalGroup[]

Parameters

NameTypeDescription
radicalsreadonly Radical[]

The native radical entries; these inputs are read without mutation.

Returns

RadicalGroup[]

The grid: the radicals in stroke-count order, grouped by the count, in the order they were given within a count.

Examples

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

const radicals = RADKFILE.radicals;
console.log(radicalGroups(radicals).slice(0,2).map(group=>[group.strokes,group.radicals.length]));
[ [ 1, 6 ], [ 2, 31 ] ]

What it prints (run when this page was built)

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