Class StringDistance
java.lang.Object
org.getalp.dbnary.tools.StringDistance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringchangeSimple(String form, String operation, int c) static int[][]distanceMatrix(String s, String t, BiFunction<Character, Character, Integer> cost) static int[][]levenstein(String s, String t) static StringsuffixChange(String s, String t) return the suffixal change from s to t
-
Constructor Details
-
StringDistance
public StringDistance()
-
-
Method Details
-
suffixChange
return the suffixal change from s to t- Parameters:
s- the source String to be changedt- the target String result of the change- Returns:
- the change as a String of form -xxx+yyy where t = s where suffix xxx is stripped out and suffix yyy is appended to the resulting base
-
distanceMatrix
-
levenstein
-
changeSimple
-