A random text generator using Markov chains in Rust
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
Cargo.lock
Cargo.toml
LICENSE.txt
README.md
cat-of-bubastes.txt
corpus.txt
under-drakes-flag.txt

README.md

rusty-markov

A random text generator using Markov chains.

Implemented in Rust for this blog post.

Building

  1. Install Rust and Cargo
  2. Clone this repo and cd into it
  3. Run cargo build --release
  4. Copy target/release/markov to somewhere on your path

Usage

    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

License

See LICENSE.txt