vickumar1981 / stringdistance

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..
https://vickumar1981.github.io/stringdistance/api/com/github/vickumar1981/stringdistance/index.html
Other
78 stars 15 forks source link

1.2.0 wip #44

Closed vickumar1981 closed 4 years ago

vickumar1981 commented 4 years ago

All underlying implementations under the impl package now use a generic Array[T] (except for sound/phonetic algorithms, which are specific to String. The String implementations use .toCharArray to convert the string into an array of Char.

ArrayDistance classes are provided for both Scala and Java (under the util package).

To use a generic class, for Scala and Kotlin, the class will have to be able to use the == operator for comparisons. This can be done easily using a case class or a data class, respectively. For Java, the class will need to override the .equals method.

Will be included in 1.2.0 release, but will be included in the 1.2.0-SNAPSHOT once merged.

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 172


Files with Coverage Reduction New Missed Lines %
src/main/scala/com/github/vickumar1981/stringdistance/package.scala 1 96.88%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 164: 0.09%
Covered Lines: 274
Relevant Lines: 276

💛 - Coveralls