fuzzy Matching
fun <T> fuzzyMatching(items: Collection<T>, toStringFunction: ToStringFunction<T>, query: String): Collection<FuzzyResult<T>>(source)
Sorts the item with fuzzing matching, the OptionData.MAX_CHOICES most relevant results should appear at the top
This algorithm is the same as fuzzyMatchingWithContinuity, except it doesn't check for a prefix
Return
A collection of results with the scores of each item
Parameters
items
The items to sort
to String Function
The function to transform an item into a String
query
The query to match items against