Nefarious Plastic Mannequins

    markov-generator

    1.2.3 • Public • Published

    markov-generator

    npm version Build Status JavaScript Style Guide Known Vulnerabilities

    A simple ES6 class for generating text using Markov chains. This should result in text that is similar in content and context to the supplied text sample, but (ideally) unique in concept.

    Quickstart

    const MarkovGen = require('markov-generator');
     
    let markov = new MarkovGen({
      input: ['array of sentences', 'to base the chains on', 'should go here'],
      minLength: 10
    });
     
    let sentence = markov.makeChain();
    console.log(sentence);

    Contributing

    Fork the repo, clone your fork, commit changes to the master branch, then open a pull request. Node v6+ is required.

    Install

    npm i markov-generator

    DownloadsWeekly Downloads

    41

    Version

    1.2.3

    License

    ISC

    Unpacked Size

    7.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar