summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorRocky Madden <git@rockymadden.com>2013-01-23 14:31:35 -0700
committerRocky Madden <git@rockymadden.com>2013-01-23 14:31:35 -0700
commite71c079bedab710292302011b12a5bdb8dee9292 (patch)
tree01d821538272417a1860fe77eb664d94761e1529 /readme.md
parentc67cc5ff3ec98b877596e0bdfb6adc32bf1b89de (diff)
downloadstringmetric-e71c079bedab710292302011b12a5bdb8dee9292.tar.gz
stringmetric-e71c079bedab710292302011b12a5bdb8dee9292.tar.bz2
stringmetric-e71c079bedab710292302011b12a5bdb8dee9292.zip
Added refined Soundex examples.
Diffstat (limited to 'readme.md')
-rwxr-xr-xreadme.md26
1 files changed, 25 insertions, 1 deletions
diff --git a/readme.md b/readme.md
index 255f7fd..5f97dde 100755
--- a/readme.md
+++ b/readme.md
@@ -198,7 +198,7 @@ nnat
__Refined NYSIIS Metric:__
```scala
println(RefinedNysiisMetric.compare("ham", "hum"))
-println(RefinedNysiisMetric.compare("dumb", "gum")
+println(RefinedNysiisMetric.compare("dumb", "gum"))
```
Output:
@@ -219,6 +219,30 @@ mcantas
wastarlad
```
+__Refined Soundex Metric:__
+```scala
+println(RefinedSoundexMetric.compare("robert", "rupert"))
+println(RefinedSoundexMetric.compare("robert", "rubin"))
+```
+
+Output:
+```
+true
+false
+```
+
+__Refined Soundex Algorithm:__
+```scala
+println(RefinedSoundexAlgorithm.compute("hairs"))
+println(RefinedSoundexAlgorithm.compute("lambert"))
+```
+
+Output:
+```
+h093
+l7081096
+```
+
## Todo
* SmithWaterman
* MongeElkan