Expand description
§random_word
The random_word
crate provides an efficient way to generate
random words. Included words can be filtered by length or
first character.
§Usage
You MUST enable a crate language feature. Crate language features are mandatory to reduce binary size. Example for English in Cargo.toml:
[dependencies]
random_word = { version = "0.5.0", features = ["en"] }
Supported Languages:
- English
- Spanish
- German
- French
- Japanese
- Russian
- Chinese
Enums§
- Lang
- ISO 639-1 language codes.
Functions§
- all
- Returns all words with the given language.
- all_len
- Returns all words with the given length and language.
- all_
starts_ with - Returns all words with the given starting character and language.
- get
- Returns a random word with the given language.
- get_len
- Returns a random word with the given length and language.
- get_
starts_ with - Returns a random word with the given starting character and language.