Sha256: 2b606a09afb121c7a342d156dbd80d0f28d5c620fd3436080058939549b78bcc
Contents?: true
Size: 865 Bytes
Versions: 1
Compression:
Stored size: 865 Bytes
Contents
# Trigram [](https://travis-ci.org/milk1000cc/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 ```ruby Trigram.compare 'he is genius', 'he is very genius' # => 0.5625 ``` ## Credits - http://search.cpan.org/dist/String-Trigram/Trigram.pm - http://subtech.g.hatena.ne.jp/cho45/20071018/1192682009 ## Contributing 1. Fork it ( https://github.com/milk1000cc/trigram/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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trigram-0.0.1 | README.md |