Skip to content
1 min read · 51 words

Variable: stringSimilarityTool

ts
const stringSimilarityTool: Tool<SpooledArtifact>;

Report the Levenshtein edit distance and a similarity percentage between two strings.

Remarks

Useful for fuzzy matching. The percentage is (1 - distance / max(len_a, len_b)) * 100, with a human-readable label appended (identical / very similar / similar / somewhat similar / different / very different).