A fuzzy matching string distance library for Scala and Java that includes Levenshtein distance, Jaro distance, Jaro-Winkler distance, Dice coefficient, N-Gram similarity, Cosine similarity, Jaccard similarity, Longest common subsequence, Hamming distance, and more..
Provide a more general interface that works with Array[T] where T is an arbitrary type.
String is the specific case of an Array[Char], and most of the underlying implementations can still work with more generalized vectors.
The implicits packages and the main classes can still convert to the underlying implementation using .toCharArray
The implicits packages should also provide conversions from String to Array[Char] and back.
Can introduce an ArrayDistance class with Java wrapper in util.ArrayDistance to complement the String classes, and extend the implementations to Array[T].
Provide a more general interface that works with
Array[T]
whereT
is an arbitrary type.String is the specific case of an
Array[Char]
, and most of the underlying implementations can still work with more generalized vectors.The
implicits
packages and the main classes can still convert to the underlying implementation using.toCharArray
The
implicits
packages should also provide conversions fromString
toArray[Char]
and back.Can introduce an
ArrayDistance
class with Java wrapper inutil.ArrayDistance
to complement theString
classes, and extend the implementations toArray[T]
.