markovmaker

a jquery plugin to generate markov-chain based text


Keywords
jquery-plugin
Install
bower install markovmaker

Documentation

markovmaker

Generate output text in the style of the input text. Uses Markov chains to generate sentences of a minimum length.

Getting Started

Download the production version or the development version.

In your web page:

<script src="jquery.js"></script>
<script src="dist/markovmaker.min.js"></script>
<script>
jQuery(function($) {
    var markovSentence =   $.markovmaker('input text', {punctuation: '!'}); //"input text!" 
});
</script>

##Installation

bower install markovmaker

Documentation

// Static method default options.
  $.markovmaker.options = {
    punctuation: '.',
    min_length : 2,
    punctuation_marks: /\.|\;|\?|\:|\n/,
    word_splitter: /\s/
  };

Examples

JSFiddle example

Release History

(Nothing yet)