0.0
No commit activity in last 3 years
No release in over 3 years
Test how similar two words sound to each other.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.8
~> 10.0
 Project Readme

Home Of Phone

Gem Version

Test how similar two words sound to each other.

This library makes use of the CMU Pronouncing Dictionary.

Installation

Add this line to your application's Gemfile:

gem 'home_of_phone'

And then execute:

$ bundle

Or install it yourself as:

$ gem install home_of_phone

Usage

sim_hilarity_sir_vice = HomeOfPhone.new # preloads large phoneme dictionary
sim_hilarity_sir_vice.similarity("joking", "choking")
# 96

# options modify how similarity is calculated
sim_hilarity_sir_vice.similarity("joking", "choking", {use_rhyme_boost: false, use_phoneme_accents: false})

sim_hilarity_sir_vice_too = HomeOfPhone.new(preload_phonemes: false) # doesn't load phoneme dictionary yet
sim_hilarity_sir_vice_too.similarity("joking", "choking") # loads dictionary at this point

Contributing

  1. Fork it ( https://github.com/[my-github-username]/home_of_phone/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request