2.2.0 • Published 10 years ago

markoff v2.2.0

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

markoff

Markov Chaining

Example

var Markov = require("markoff");
var mark = new Markov();

[
  "the quick brown fox jumps",
  "be quick now",
  "now is the time for all good men"
].forEach(function(sentence) {
  mark.addTokens(sentence.split(/\s+/g));
});

console.log(mark.chain(4).join(' '));
// might print something like "be quick brown fox" or "the quick now is"

Docs

var mark = new Markov(options)

// TODO. State what the module does.

Installation

npm install markoff

Tests

npm test

Contributors

  • Joshua T Corbin

MIT Licenced

2.2.0

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago