NOTE: this package is not compatible with Elm 0.19.1
This is library for performing fuzzy string matching.
Perform fuzzy matching between a List String (needle) and another List String (hay). The order of the arguments are significant. Lower score is better. Each element in the Lists represents one "word".
let query = "/usr/lcoa/bin/sh" target = "/usr/local/bin/sh" sep = "/" in Fuzzy.match (String.split query) (String.split hay) == 2.001 Fuzzy.match ["test"] ["test]" == 0 Fuzzy.match ["tst"] ["test"] == 0.001 List.sortBy (\hay -> Fuzzy.match ["hrdevi"] [hay]) ["screen", "disk", "harddrive", "keyboard", "mouse", "computer"] == ["harddrive","disk","screen","mouse","keyboard","computer"]
Perform fuzzy matching between a List String (needle) and another List String (hay). The order of the arguments are significant. Lower score is better. Each element in the Lists represents one "word".