Skip to content

Markov Chain-based text generator. Trying out Markov Chain for fun using a well known exercise.

Notifications You must be signed in to change notification settings

plartoo/markov_chain_text_generator_ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Generator

A random text generator using an underlying Markov chain model.

Usage

To generate text using seed data from the input file:

ruby generate.rb source/frankenstein.txt

which will generate a Markov chain from the input text and produce a randomly generated sentence:

Nearly all that I quitted your triumph over which ran through the cause of the hue of the reverse of the permission to bid a superior to speak.

About

Markov Chain-based text generator. Trying out Markov Chain for fun using a well known exercise.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages