Skip to content

UncleGene/rhymes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<img src=“https://codeclimate.com/github/kalenkov/rhymes.png” />

Rhymes

Rhymes looks up perfect and identical rhymes using precompiled version of the Carnegie Mellon Pronouncing Dictionary.

Installation

gem install rhymes

Usage

ruby > require 'rhymes'
=> true
ruby > Rhymes.rhyme('ruby')
=> ["BOOBY", "DUBHI", "DUBY", "HRUBY", "KUBY", "LOOBY", "LUBY", "NEWBY", "RUBEY", "RUBI", "RUBIE", "SCOOBY", "TRUBEY", "TRUBY"]

Class method will load dictionary on each call. Use instance method to front-load the expense

ruby > require 'rhymes'
=> true
ruby > rhymes = Rhymes.new; rhymes.rhyme('ruby')
=> ["BOOBY", "DUBHI", "DUBY", "HRUBY", "KUBY", "LOOBY", "LUBY", "NEWBY", "RUBEY", "RUBI", "RUBIE", "SCOOBY", "TRUBEY", "TRUBY"]

About

Lookup perfect and identical rhymes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages