Crate markov_strings[][src]

A simplistic & configurable Markov chain text generator

Give it a vec of strings and generate random results. Works best with tweets, chat history, news headlines…

use markov_strings::*;

let data: Vec<InputData> = vec![/* a lot of data */];

Structs

ImportExport

Struct used to import and export data.

InputData

The input struct to build the markov-strings corpus.

Markov

The Markov chain generator

MarkovResult

Struct holding the generator’s results.

Enums

ErrorType

Struct for possible errors during the corpus building, or result generation.