Skip to content

jarvis394/markov-catena

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markov-catena

String generator based on Markov process

Installation

npm install markov-catena

Simple example

import  from 'markov-catena'
// or const mс = require('markov-catena')

const generator = new .StringGenerator(['hello, world', 'world is mine'])

for (let _ in [...Array(5)]) console.log(generator.generateString())
// will generate something like:
//
// 'hello, world'
// 'world'
// 'hello, world is mine'
// 'world'
// 'hello, world' 

More examples can be found here

Features

  • Easy to use
  • Result validating (also built-in validators).
  • Result formatting (also built-in formatters). Example

Releases

No releases published

Packages

No packages published