Skip to content

itsdawnbois/markov-text-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Markov Text - NodeJS

This project is aimed to make generate text via Markov Chains, it takes the input (alice_oz.txt) and trains with it to generate text based on it, you can read more about the Markov Chain on Rosetta Code the algorithm I used is based on what is there.

You also can place other inputs to see what is the results, It just need to be a text file, the big the better.

Requirements

  • Node JS (the latest recommended one will work just fine)

How to run

node index.js - Will generate a 100 words paragraph

Inside of index.js you can change generatingSize to change the size of the paragraph

You can also change the text file name inside there.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors