levenshtein 1.0.2 copy "levenshtein: ^1.0.2" to clipboard
levenshtein: ^1.0.2 copied to clipboard

Dart 1 only

An implementation of the Levenshtein distance algorithm

Levenshtein #

This little library implements the Levenshtein distance between two strings, as described here.

Example #

import 'package:levenshtein/levenshtein.dart';

void main() {
  int distance = levenshtein('hello world', 'bye world', caseSensitive: true);
  print(distance);
}

License #

I'm releasing the code into the public domain. See LICENSE for more information.

0
likes
25
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

An implementation of the Levenshtein distance algorithm

Homepage

License

Unlicense (license)

Dependencies

unittest

More

Packages that depend on levenshtein