@leonsilicon/tbcl
v0.0.2
Published
Taiwan Benchmarks for the Chinese Language (TBCL) word list as JSON.
Readme
@leonsilicon/tbcl
The Taiwan Benchmarks for the Chinese Language (TBCL) word list, packaged as JSON for use in Node.js and the browser.
The data is a list of 3,100 traditional Chinese characters, each with its TBCL level (1–7) and corresponding written/spoken frequency counts.
Installation
npm install @leonsilicon/tbclUsage
import tbcl from "@leonsilicon/tbcl";
// Each entry is [id, traditional, level, wFreq, sFreq]
console.log(tbcl[0]);
// => [1, "的", 1, 40289, 43113]Or import the raw JSON directly:
import tbcl from "@leonsilicon/tbcl/tbcl.json" with { type: "json" };Data format
Each entry is an array of five values:
| Index | Field | Type | Description |
| ----- | ------------- | -------- | -------------------------------------- |
| 0 | id | number | 1-based index |
| 1 | traditional | string | Traditional Chinese character |
| 2 | level | number | TBCL level (1–7) |
| 3 | wFreq | number | Written-corpus frequency |
| 4 | sFreq | number | Spoken-corpus frequency |
The original CSV is also shipped at @leonsilicon/tbcl/tbcl.csv.
Building from source
bun scripts/build.tsThis parses data/tbcl.csv and writes tbcl.json at the package root.
License
MIT
