A random text generator using Markov chains.
Implemented in Rust for this blog post.
- Install Rust and Cargo
- Clone this repo and cd into it
- Run
cargo build --release
- Copy target/release/markov to somewhere on your path
markov [OPTIONS] <CORPUS>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-s, --sentences <SENTENCES> Sets how many sentences to generate
-w, --words <WORDS> Sets how many words to generate
ARGS:
<CORPUS> Sets the text corpus to use
See LICENSE.txt