1.2.3 • Published 4 years ago

markov-generator v1.2.3

Weekly downloads
100
License
ISC
Repository
github
Last release
4 years ago

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.

1.2.3

4 years ago

1.2.2

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago