isNearDuplicate function

bool isNearDuplicate(
  1. String a,
  2. String b, {
  3. double threshold = 0.85,
})

Returns true if a and b are near-duplicates (cosine similarity >= threshold).

Implementation

bool isNearDuplicate(String a, String b, {double threshold = 0.85}) =>
    textSimilarity(a, b) >= threshold;