distance

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

The distance between two strings is defined as the L1 norm of the difference of their profiles (the number of occurence of each k-shingle).

Parameters

first

the first string to compare.

second

the second string to compare.