| Crates.io | engish |
| lib.rs | engish |
| version | 0.3.9 |
| created_at | 2022-08-24 14:47:54.08526+00 |
| updated_at | 2025-12-09 19:57:35.116645+00 |
| description | A language utility for sampling and building words. |
| homepage | |
| repository | https://github.com/fishykins/engish/ |
| max_upload_size | |
| id | 651664 |
| size | 120,176 |
A strongly opinionated crate that supports messing around with language (in ways you probably shouldn't).
This project provides functionality for procedurally building pseudo words, as well as basic dictionary sampling. Nouns, Verbs and Adjectives are defined and constructable, with grammatical rules available for changing tense, pluralizing etc. Due to the nature of "rules" and the English language, you should not use this for anything that falls outside the remit of "silly".
The only data that comes with this crate is for letter frequencies- if you want to build a dictionary then you need to provide your own data sets.
As with most rust crates, this can be imported to a project using crates.io. Follow the link for more infomation.
First, add engish to your Cargo.toml. To use the word builders, you'll need to enable the builders feature.
[dependencies]
engish = { version = "0.3", features = ["builders"] }
(Note: check crates.io for the latest version number.)
Here is an example of how to generate a pseudo-word using the PropperNounBuilder:
use engish::prelude::*;
fn main() {
// Build a new 'propper' noun with a length between 5 and 10 characters.
let noun = PropperNounBuilder::new()
.build();
println!("Generated proper noun: {}", noun);
}
[builders] - adds functionality for word building.
Licensed under either of
at your option.
Contributions are both welcome and appreciated!
Contributions in any form (issues, pull requests, etc.) to this project must adhere to Rust's Code of Conduct.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Caspar Green - caspar.m.green@gmail.com
Project Link: https://github.com/fishykins/engish