Trigram
Compute the similarity of two strings based on the trigram (n-gram) method
Installation
Add this line to your application's Gemfile:
gem 'trigram'
And then execute:
$ bundle
Or install it yourself as:
$ gem install trigram
Usage
Trigram.compare 'he is genius', 'he is very genius'
Credits
Contributing
- Fork it ( https://github.com/milk1000cc/trigram/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request