Encode a string with the PHONEM algorithm. This gem can be used for finding strings by their phonetic sound - optimized for the german language.
Add this line to your application's Gemfile:
gem 'phonem_encoder'
And then execute:
$ bundle
Or install it yourself as:
$ gem install phonem_encoder
Call phonetic_encode
on any string to get the phonetic code of the string.
"Müller".phonetic_code
This will output "mylr"
http://rubydoc.info/gems/phonem_encoder/frames
Questions or problems? Please post them on the issue tracker.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
This gem is created by Arndt Touby and is under the MIT License.