README.md in string-similarity-1.0.1 vs README.md in string-similarity-1.1.0

- old
+ new

@@ -44,9 +44,18 @@ # => 1.0 # or call on a string directly 'string'.cosine_similarity_to 'strong' # => 0.8333333333333335 + + +# Same for Levenshtein: +String::Similarity.levenshtein_distance('kitten', 'sitting') # or ... +'kitten'.levenshtein_distance_to('sitting') +# => 3 +String::Similarity.levenshtein('foo', 'far') # or ... +'far'.levenshtein_similarity_to('foo') +# => 0.5 ``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.