package basics.string;
public interface StringMatcher
{
/**
 * Computes the edit distance of two strings.
 * @param a
 * @param b
 * @return
 */
int distance(String a, String b);

/**
 * Calculates the degreed of similarity using distance and length of the strings.
 * @param a
 * @param b
 * @return value between 0 and 1
 */
double likeness(String a, String b);

/**
 * Calculates the degreed of similarity using distance and length of the strings. and checks if this
 * is higher or equals a threashold value.
 * @param a
 * @param b
 * @param treadshold, value between 0 and 1
 * @return true or false
 */
boolean hasLikeness(String a, String b, double treshold);
}
