Skip to content

saleymaiga/Ruby-Assignment-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Ruby-Assignment-2

Create a program to analyze a large block of text and report back on the frequency of each word in the text.

1- Start by sorting the text into a hash where each word is a key with the word’s value being the amount of times it has been used in the block: for instance {the: 10, john: 1, of: 15}

2 -Once you’ve created this hash, return the word that has been used the most

3- When you’re done, encapsulate your script inside of a method that can analyze any block of text fed to it

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages