View Source FuzzyCompare.SortedChunks (fuzzy_compare v1.1.0)
In order to match strings whose order might be the only thing separating them the sorted chunks metric is applied. This strategy splits the strings on spaces, sorts the list of strings, joins them together again, and then compares them by applying the Jaro-Winkler distance metric.
Examples
iex> FuzzyCompare.SortedChunks.standard_similarity("Oscar-Claude Monet", "Monet, Claude")
0.8958333333333334
iex> FuzzyCompare.SortedChunks.substring_similarity("Oscar-Claude Monet", "Monet, Claude")
1.0