random-zh-name

Crates.iorandom-zh-name
lib.rsrandom-zh-name
version0.1.0
created_at2025-06-21 13:22:23.476971+00
updated_at2025-06-21 13:22:23.476971+00
descriptionA Rust command-line tool for generating random Chinese names with customizable options.
homepage
repositoryhttps://github.com/WantenMN/random-zh-name.git
max_upload_size
id1720817
size20,721
Wanten (WantenMN)

documentation

README

random-zh-name

A Rust command-line tool for generating random Chinese names with customizable options.

Features

  • Generate multiple Chinese names at once
  • Specify a particular surname
  • Control the length of first names
  • Option to use simpler (Level 1) Chinese characters

Installation

Ensure you have Rust and Cargo installed. Then, install the crate binary:

cargo install random-zh-name

Usage

Run the binary with various options to generate random Chinese names:

random-zh-name [OPTIONS]

Options

  • -c, --count <NUMBER>: Number of names to generate (default: 1)
  • -s, --surname <SURNAME>: Specific surname to use
  • -l, --length <LENGTH>: Length of the first name in characters
  • --simple: Generate simpler names using only Level 1 characters
  • -h, --help: Display help information
  • -V, --version: Display version information

Examples

Generate a single random name:

random-zh-name
# ["飘杳"]

Generate 5 random names:

random-zh-name --count 5
# ["倍璎", "盟恪呷形", "旨轿鹭", "庆梗镠", "忆弓"]

Generate 3 names with a specific surname "李" and 2-character first names:

random-zh-name -c 3 -s 李 -l 2
# ["李核孺", "李飓龛", "李诜钼"]

Generate simpler names using only Level 1 characters:

random-zh-name --count 10 --simple
# ["第呐有", "敛番", "别观哺泛", "嘉循", "扒拉吕", "梁讳", "每瘫", "寒机挂述", "婴刑", "像越免"]

License

This project is licensed under the MIT License.

Commit count: 0

cargo fmt