gabble 0.2.0

Library crate for generating random pseudo-words
Documentation
  • Coverage
  • 72.73%
    8 out of 11 items documented2 out of 2 items with examples
  • Size
  • Source code size: 16.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 5.41 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 23s Average build duration of successful builds.
  • all releases: 20s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • trueleo/gabble
    2 3 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • trueleo

gabble

Library crate for generating pseudo-word.

Example

use rand::{thread_rng, Rng};
let mut rng = thread_rng();

// `Gab` gives gibberish of some moderate length
use gabble::Gab;
let word: Gab = rng.gen();
println!("{} might be answer to life", word);

// `GabLength` gives gibberish of minimum N length
use gabble::GabLength;
let word: GabLength<14> = rng.gen();
println!("{} is a long word", word);

Top words

  • ilaincy
  • gruimsab
  • graoness
  • duieyaior

Words are generated by combining vowel-consonant syllables. If you want words that closely resembles regular english then look for some library that uses markov chain.