Project

rhymes

0.0
No commit activity in last 3 years
No release in over 3 years
Lookup perfect and identical rhymes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
 Project Readme

<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"]