ex_text v0.1.0 ExText.WhiteSimilarity

Summary

Functions

Returns Simon White similarity between two strings

Functions

similarity(str1, str2)

Returns Simon White similarity between two strings.

The similarity between two strings s1 and s2 is twice the number of character pairs that are common to both strings divided by the sum of the number of character pairs in the two strings.

http://www.catalysoft.com/articles/StrikeAMatch.html

Examples

iex> ExText.WhiteSimilarity.similarity("Healed", "Sealed")
0.8