summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorRocky Madden <git@rockymadden.com>2012-11-14 15:54:19 -0700
committerRocky Madden <git@rockymadden.com>2012-11-14 15:54:19 -0700
commit73f92cba9918a8aea2d784cff94c5dbade5cbbbd (patch)
tree73bf16f623785c819f5426f073a51eb2cb5e4c9a /readme.md
parent76d10e362e3d830136dcfc4714f67bc7eff5f581 (diff)
downloadstringmetric-73f92cba9918a8aea2d784cff94c5dbade5cbbbd.tar.gz
stringmetric-73f92cba9918a8aea2d784cff94c5dbade5cbbbd.tar.bz2
stringmetric-73f92cba9918a8aea2d784cff94c5dbade5cbbbd.zip
Fixed code example import bug.
Diffstat (limited to 'readme.md')
-rwxr-xr-xreadme.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/readme.md b/readme.md
index 62037df..5fcf93c 100755
--- a/readme.md
+++ b/readme.md
@@ -2,7 +2,7 @@
A small library of string metrics and phonetic algorithms implemented in Scala. Each metric and algorithm has a CLI.
* __Phonetic metrics__ determine if two arguments sound the same phonetically.
-* __Phonetic algorithms__ provide a means to determine the phonetic representation of the argument passed. All phonetic metrics have a standalone algorithm counterpart.
+* __Phonetic algorithms__ provide a means to determine the phonetic representation of the argument passed. All phonetic metrics have an algorithm counterpart.
* __Similarity metrics__ determine the distance or coefficient between two arguments.
* __Similarity algorithms__ provide a means to access underlying similarity metric functionality, when applicable. An example is the N-Gram algorithm, which provides a means to get n-grams for a given argument with a specific n.
* __Filters__, which can optionally be applied to metrics and algorithms, clean up arguments prior to evaluation. Filtering rules can easily be combined via trait stacking.
@@ -72,8 +72,7 @@ if (distance >= 0.9) println("It's likely you're a match!")
Basic example with single filter.
```scala
-import org.hashtree.stringmetric.StringFilterDelegate
-import org.hashtree.stringmetric.filter.AsciiLetterCaseStringFilter
+import org.hashtree.stringmetric.filter.{ AsciiLetterCaseStringFilter, StringFilterDelegate }
import org.hashtree.stringmetric.similarity.JaroWinklerMetric
val distance = JaroWinklerMetric.compare("string1", "string2")