simple-markov

    1.0.2 • Public • Published

    simple-markov NPM version Build Status Dependency Status Coverage percentage

    Generate text using a Markov chain

    Installation

    $ npm install --save simple-markov

    Usage

    var SimpleMarkov = require('simple-markov');
     
    var markov = new SimpleMarkov(3, 'I really like markov chains. They make generating text very hilarious.');
    markov.learn('We can keep making it learn, too.');
     
    console.log(markov.generateText(100));

    License

    MIT © Brian Simon

    Install

    npm i simple-markov

    DownloadsWeekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • bsssshhhhhhh