public class FuzzyStringMatcher extends Object
| Modifier and Type | Method and Description |
|---|---|
static float |
getMatchRate(String string1,
String string2)
Calculates the match rate, a value between 0 and 1, proportional
to the rate the two strings match (1 is exact match).
|
static int |
getMismatch(String string1,
String string2)
Calculates the mismatch between two strings.
|
static String |
normalizeString(String str)
Creates normalized title.
|
public static int getMismatch(String string1, String string2)
string1 - first stringstring2 - second stringpublic static float getMatchRate(String string1, String string2)
string1 - first stringstring2 - second stringpublic static String normalizeString(String str)
str - The original title.MMBase 1.9-SNAPSHOT - ${javadoctimestamp}