Skip to content

kbrsh/kov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kov

Markov chains made simple

Usage

var kov = require("kov");

var opts = {
  type: "sentence",
  min: 5,
  max: 10
}

// Put an array of sentences
var data = [];

console.log(kov(data, opts))

API

  • type - Takes two types: sentence, and word. This is the array type of data given (array of sentences or array of words), and the type of output given (sentence or word);
  • min - Takes an integer, the minimum required number of words/characters
  • max - Takes an integer, the maximum number of words/characters in generated text

About

Markov chains made simple

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published