isNearDuplicate function
Returns true if a and b are near-duplicates (cosine similarity >= threshold).
Audited: 2026-06-12 11:26 EDT
Implementation
bool isNearDuplicate(String a, String b, {double threshold = 0.85}) =>
textSimilarity(a, b) >= threshold;