Skip to content

Parses the words of a specified text file such that the number of occurrences of a word and the likelihood of a word's occurrence, as well as the occurrences and likelihood of each word which appears directly after that word, are calculated. Then writes a poem of x stanzas, y lines per stanza, and z words per line based on the aforementioned pop…

Notifications You must be signed in to change notification settings

AJoshSims/Poetry-Writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Poetry-Writer

Prints a poem whose composing words are determined by the frequency of words in a specified text file and the frequency at which they proceed certain other words in that file.

This program is run by calling the function named main from within make_poem.js. See the function header for main in make_poem.js for parameter details.

@author Joshua Sims @version 25 October 2016

About

Parses the words of a specified text file such that the number of occurrences of a word and the likelihood of a word's occurrence, as well as the occurrences and likelihood of each word which appears directly after that word, are calculated. Then writes a poem of x stanzas, y lines per stanza, and z words per line based on the aforementioned pop…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published