Skip to main content
Version: v1.5.0

levenshtein

Function

levenshtein Levenshtein distance

Synopsis

levenshtein(a: string, b: string) -> int64

Description

The levenshtein function computes the Levenshtein distance between strings a and b.

Examples

echo '{a:"kitten",b:"sitting"}' | zq -z 'yield levenshtein(a, b)' -

=>

3