WeightedLevenshtein

Implementation of Levenshtein that allows to define different weights for different character substitutions.

Parameters

weights

the strategy to determine character operations weights.

Constructors

Link copied to clipboard
constructor(weights: OperationsWeights)

Functions

Link copied to clipboard
fun distance(first: CharSequence, second: CharSequence, limit: Double = Double.MAX_VALUE): Double