Home

Awesome

levenshtein(1)

Build

Vladimir Levenshtein’s edit distance algorithm<sup>1</sup> as a UNIX command. There’s also a C library: levenshtein(3), and a JavaScript version.

Installation

With CLib:

$ clib install wooorm/levenshtein

Or Git clone, and then:

$ make install

Usage

  Usage: levenshtein <words...>

  Levenshtein algorithm CLI

  Options:

    -h, --help           output usage information
    -v, --version        output version number

  Usage:

  # output distance
  $ levenshtein sitting kitten
  # 3

License

MIT © Titus Wormer