LinuxCommandLibrary

lev_comp

calculates Levenshtein distance between strings

TLDR

Compare strings

$ lev_comp "[string1]" "[string2]"
copy
Show distance
$ lev_comp -d "[string1]" "[string2]"
copy
Case insensitive
$ lev_comp -i "[String1]" "[string2]"
copy

SYNOPSIS

lev_comp [options] string1 string2

DESCRIPTION

lev_comp calculates Levenshtein distance between strings. The distance measures edit operations needed.
The tool compares string similarity. Lower distance means more similar strings.

PARAMETERS

STRING1 STRING2

Strings to compare.
-d
Show Levenshtein distance.
-i
Case insensitive.
--help
Display help information.

CAVEATS

Specific implementation. May not be widely available. Simple edit distance.

HISTORY

lev_comp implements Levenshtein distance, named after Vladimir Levenshtein who defined the metric in 1965.

SEE ALSO

diff(1), cmp(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community