#chinese #nlp #sinograph #chinese-character

bin+lib yitizi

異體字查詢 Get variant Chinese characters

1 unstable release

0.1.0 May 16, 2024

#705 in Text processing

Download history 46/week @ 2024-05-10 85/week @ 2024-05-17 2/week @ 2024-05-24

133 downloads per month

CC0 license

84KB
50 lines

異體字 yitizi-rs

Based on the Python/JS version of nk2028/yitizi; check it to learn the design choices. This is a Rust version of the yitizi tool, building the json file with the cargo build script.

Get all variants (yitizi, 異體字) of a Chinese character (Sinograph)!

Installation

cargo add yitizi      # for the library
cargo install yitizi  # for the CLI

Usage

Library

println!("{:?}", yitizi::get(''));

CLI

異體字 yitizi-rs v0.1.0
查詢異體字!輸入 q 退出。(Query for variant Chinese characters! Input q to quit.)
>>> 你我他
'': {'', '', '', ''}, '': {}, '': {'', '', '', ''},

Dependencies

~350–760KB
~17K SLoC