summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorRocky Madden <git@rockymadden.com>2013-01-23 14:43:20 -0700
committerRocky Madden <git@rockymadden.com>2013-01-23 14:43:20 -0700
commit0b07e2dcc37bf82e038b3036c929b635adefb0d5 (patch)
tree1e00aa7d068ec773dcf09d0c70b63b9da5d0106b /readme.md
parent73ce75fa7fc89ca2d4b012dd6a4af6119fb32426 (diff)
downloadstringmetric-0b07e2dcc37bf82e038b3036c929b635adefb0d5.tar.gz
stringmetric-0b07e2dcc37bf82e038b3036c929b635adefb0d5.tar.bz2
stringmetric-0b07e2dcc37bf82e038b3036c929b635adefb0d5.zip
Added information about implicits.
Diffstat (limited to 'readme.md')
-rwxr-xr-xreadme.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/readme.md b/readme.md
index df457b1..4e4e23f 100755
--- a/readme.md
+++ b/readme.md
@@ -90,7 +90,7 @@ Output: _(Note the exception of integers, rather than doubles, being returned.)_
2
```
-__N-Gram Metric:__ _(Note you must specify the size of the n-gram you wish to use.)_
+__N-Gram Metric:__ _(Note you must specify the size of the n-gram you wish to use. This can be done implicitly.)_
```scala
println(NGramMetric.compare("night", "nacht")(1))
println(NGramMetric.compare("night", "nacht")(2))
@@ -104,7 +104,7 @@ Output:
0.5
```
-__N-Gram Algorithm:__ _(Note you must specify the size of the n-gram you wish to use.)_
+__N-Gram Algorithm:__ _(Note you must specify the size of the n-gram you wish to use. This can be done implicitly.)_
```scala
println(NGramAlgorithm.compute("abcdefghijklmnopqrstuvwxyz")(1))
println(NGramAlgorithm.compute("abcdefghijklmnopqrstuvwxyz")(2))
@@ -130,7 +130,7 @@ Output:
0.6666666666666666
```
-__Weighted Levenshtein Metric:__ _(Note you must specify the weight of each operation. Delete, insert, and then substitute.)_
+__Weighted Levenshtein Metric:__ _(Note you must specify the weight of each operation. Delete, insert, and then substitute. This can be done implicitly.)_
```scala
println(WeightedLevenshteinMetric.compare("book", "back")(10, 0.1, 1))
println(WeightedLevenshteinMetric.compare("hosp", "hospital")(10, 0.1, 1))