mtext

0.0.2 • Public • Published

Usage

Once you've installed this package, you must procure training data for it. It trains really well on 10 KB+ files.

To start, construct a new markov chain:

const mtext = require("mtext")
const myChain = mtext("my cool text here")

Then, train the chain on the data you passed.

myChain.train()

Finally, generate text of any length:

// Generate text of 10000 words based of inputs
myChain.generateText(10000);

Readme

Keywords

Package Sidebar

Install

npm i mtext

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

3.92 kB

Total Files

3

Last publish

Collaborators

  • n8programs