distance

Compute the cosine distance between two string. Corresponds to 1.0 - similarity.

Parameters

first

first string to compare.

second

second string to compare.