summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xreadme.md20
1 files changed, 18 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index 1091d65..3c2beef 100755
--- a/readme.md
+++ b/readme.md
@@ -45,14 +45,30 @@ Output (note the exception of integers, rather than doubles, being returned):
__Jaro Metric:__
```scala
-println(HammingMetric.compare("dwayne", "duane"))
-println(HammingMetric.compare("jones", "johnson"))
+println(JaroMetric.compare("dwayne", "duane"))
+println(JaroMetric.compare("jones", "johnson"))
+println(JaroMetric.compare("fvie", "ten"))
```
Output:
```shell
0.8222222222222223
0.7904761904761904
+0
+```
+
+__Jaro-Winkler Metric:__
+```scala
+println(JaroWinklerMetric.compare("dwayne", "duane"))
+println(JaroWinklerMetric.compare("jones", "johnson"))
+println(JaroWinklerMetric.compare("fvie", "ten"))
+```
+
+Output:
+```shell
+0.8400000000000001
+0.8323809523809523
+0
```
## Testing