LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lev_comp

calculates Levenshtein distance between strings

TLDR

Compare two strings and show the distance
$ lev_comp "[string1]" "[string2]"
copy
Compare strings with detailed distance output
$ lev_comp -d "[string1]" "[string2]"
copy
Compare strings case-insensitively
$ lev_comp -i "[String1]" "[string2]"
copy

SYNOPSIS

lev_comp [options] string1 string2

DESCRIPTION

lev_comp calculates the Levenshtein distance between two strings. The distance represents the minimum number of single-character edit operations (insertions, deletions, or substitutions) needed to transform one string into the other.A lower distance means the strings are more similar. A distance of zero means the strings are identical.

PARAMETERS

STRING1 STRING2

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

CAVEATS

This is a niche utility and may not be available in standard package repositories. Only handles simple edit distance without support for weighted operations or transpositions.

HISTORY

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

SEE ALSO

diff(1), cmp(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid