Returns true if a and b are near-duplicates (cosine similarity >= threshold).
a
b
threshold
bool isNearDuplicate(String a, String b, {double threshold = 0.85}) => textSimilarity(a, b) >= threshold;