distance

fun distance(first: String, second: String): Double

Distance metric based on Longest Common Subsequence, computed as 1 - |LCS(first, second)| / max(|first|, |second|).

Parameters

first

the first string to compare.

second

the second string to compare.