| Crates.io | human-names |
| lib.rs | human-names |
| version | 0.1.1 |
| created_at | 2025-12-07 04:09:33.61484+00 |
| updated_at | 2025-12-07 04:23:42.304361+00 |
| description | A random generator for human first and last names |
| homepage | |
| repository | https://github.com/giraffekey/human-names |
| max_upload_size | |
| id | 1971116 |
| size | 495,561 |
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.