1.2.0 • Published 5 years ago

fast-markov v1.2.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

fast-markov

Quick and easy Markov chain generator for NodeJS (The first functional build is 1.2.0. Please do not download a version earlier than that.)

Markov chain generator for creating similar but not identical phrases.

To use this library, simply require the module and use require(...).generate("") as a function, with the only arguments being the name of a file full of training data sentences, seperated by newlines.

You may need a large amount of training data for the module to pick up on intonation, vowel and consonant rules, etcetera. This module is relatively fast compared to other chain generators, but will still take some time.

Example of usage:

const markov = require("fast-markov")
var generated = markov.generate("../bData.txt");
generated
	.then((res) => { console.log(res) })
	.catch((err) => { console.error(err) });
// bData contains the bee movie script
// console: humm, honey.
1.2.0

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago