similarity

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

Compute Jaccard index. |A ∩ B| / |A ∪ B|.

Parameters

first

the first string to compare.

second

the second string to compare.