From 521ebea1fa797519f43f4401b5b1b8ec2d5d55a4 Mon Sep 17 00:00:00 2001 From: Rocky Madden Date: Sun, 29 Dec 2013 15:24:07 -0700 Subject: Updated version to 0.26.0. --- readme.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 325eb02..119fd90 100755 --- a/readme.md +++ b/readme.md @@ -37,14 +37,14 @@ The project is available on the [Maven Central Repository](http://search.maven.o __Simple Build Tool:__ ```scala -libraryDependencies += "com.rockymadden.stringmetric" % "stringmetric-core" % "0.25.3" +libraryDependencies += "com.rockymadden.stringmetric" % "stringmetric-core" % "0.26.0" ``` --- __Gradle:__ ```groovy -compile 'com.rockymadden.stringmetric:stringmetric-core:0.25.3' +compile 'com.rockymadden.stringmetric:stringmetric-core:0.26.0' ``` --- @@ -54,7 +54,7 @@ __Maven:__ com.rockymadden.stringmetric stringmetric-core - 0.25.3 + 0.26.0 ``` @@ -122,7 +122,7 @@ LevenshteinMetric.compare("cake", "drake") // 2 --- -__N-Gram Metric:__ +__N-Gram Metric:__ ```scala NGramMetric(1).compare("night", "nacht") // 0.6 NGramMetric(2).compare("night", "nacht") // 0.25 @@ -132,7 +132,7 @@ NGramMetric(2).compare("context", "contact") // 0.5 --- -__Overlap Metric:__ +__Overlap Metric:__ ```scala OverlapMetric(1).compare("night", "nacht") // 0.6 OverlapMetric(1).compare("context", "contact") // 0.7142857142857143 @@ -149,7 +149,7 @@ RatcliffObershelpMetric.compare("pennsylvania", "pencilvaneya") // 0.66666666666 --- -__Weighted Levenshtein Metric:__ +__Weighted Levenshtein Metric:__ ```scala WeightedLevenshteinMetric(10, 0.1, 1).compare("book", "back") // 2 WeightedLevenshteinMetric(10, 0.1, 1).compare("hosp", "hospital") // 0.4 @@ -277,7 +277,7 @@ val composedTransform = (StringTransform.filterAlpha andThen StringTransform.fil Make your own: ```scala // StringTransform is a type alias for (Array[Char] => Array[Char]) -val myTransform: StringTransform = (ca) => ca.filter(_ == 'x') +val myTransform: StringTransform = (ca) => ca.filter(_ == 'x') (MetaphoneAlgorithm withTransform myTransform).compute("abc123") (MetaphoneMetric withTransform myTransform).compare("abc123", "abc456") -- cgit v1.2.3