/// <summary> /// Calculate the Jaro-Winkler Similarity metric for two strings. /// </summary> /// <param name="source"></param> /// <param name="target"></param> /// <returns></returns> public static double JaroWinkler(this string source, string target) { double result = 0; var jw = new JaroWinkler(); result = jw.GetDistance(source, target); jw = null; return(result); }
/// <summary> /// Calculate the Jaro-Winkler Similarity metric for two strings. /// </summary> /// <param name="source"></param> /// <param name="target"></param> /// <returns></returns> public static double JaroWinkler(this string source, string target) { double result = 0; var jw = new JaroWinkler(); result = jw.GetDistance(source, target); jw = null; return result; }