This repository contains a Markov Text Generator implemented in Node.js.
For Programming from A to Z at ITP/NYU and based on Allison Parrish's RWET examples
index.js
: The entry point of the application where text is fed into the Markov Generator and generated text is printed.markov.js
: Contains theMarkovGenerator
class responsible for the creation of ngrams and generation of new text.itp.txt
: A sample text file that serves as the input to the Markov Generator.
After cloning the repository and navigating to the project directory, run:
npm install
npm start