Skip to content

Commit c11de7f

Browse files
committed
one more use-case
1 parent 94c6f76 commit c11de7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[ [github.com](https://github.com/life4/textdistance.rs) ]
44
[ [docs.rs](https://docs.rs/textdistance/) ]
5-
[ [crates.io](crates.io/crates/textdistance) ]
5+
[ [crates.io](https://crates.io/crates/textdistance) ]
66

77
Rust library with lots of different algorithms to compare how similar two sequences are.
88

@@ -148,6 +148,7 @@ If you go with edit-based, the next thing is to decide what kind of changes you
148148

149149
There are some use cases:
150150

151+
+ `DamerauLevenshtein` with some optimizations is [used in cargo](https://github.com/rust-lang/cargo/blob/master/src/cargo/util/edit_distance.rs) to correct typos in command names.
151152
+ `Jaro` is included in the Elixir standard library ([String.jaro_distance](https://hexdocs.pm/elixir/1.12/String.html#jaro_distance/2)). It is used by the compiler and by mix (cargo for Elixir) to provide the "did you mean?" functionality for typos in module or command names.
152153
+ `RatcliffObershelp` variation is included in the Python standard library ([difflib.SequenceMatcher](https://docs.python.org/3/library/difflib.html#difflib.SequenceMatcher)).
153154

0 commit comments

Comments
 (0)