This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JaroWinklerScore { | |
/** | |
* Applies the Jaro-Winkler distance algorithm to the given strings, providing information about the | |
* similarity of them. | |
* | |
* @param s1 The first string that gets compared. May be <code>null</node> or empty. | |
* @param s2 The second string that gets compared. May be <code>null</node> or empty. | |
* @return The Jaro-Winkler score (between 0.0 and 1.0), with a higher value indicating larger similarity. | |
* | |
* @author Thomas Trojer <[email protected]> |