human-names

Crates.iohuman-names
lib.rshuman-names
version0.1.1
created_at2025-12-07 04:09:33.61484+00
updated_at2025-12-07 04:23:42.304361+00
descriptionA random generator for human first and last names
homepage
repositoryhttps://github.com/giraffekey/human-names
max_upload_size
id1971116
size495,561
(giraffekey)

documentation

README

human-names

A small Rust crate for generating human first and last names.

Example:

use human_names::{Generator, Origin};

let mut rng = rand::rng();
let name = Generator::new()
    .by_origin(Origin::English)
    .only_first_names()
    .only_masculine()
    .finish(&mut rng)
    .unwrap();

println!("{}", name.text); // Will print an English Male first name e.g. Xander

Keep in mind this library can be hefty, as it includes an entire 470kb database of 37,039 unique names.

If you want to use the dataset separately, you can download it here.

Commit count: 0

cargo fmt