similarity

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

Similarity is computed as 2 * |A ∩ B| / (|A| + |B|).

Parameters

first

The first string to compare.

second

The second string to compare.