edit_distance 0.4.1 copy "edit_distance: ^0.4.1" to clipboard
edit_distance: ^0.4.1 copied to clipboard

Implementation of string distance algorithms for advanced text comparison.

example/edit_distance_example.dart

// Copyright (c) 2016, Kwang Yul Seo. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:edit_distance/edit_distance.dart';

void main() {
  Levenshtein d = new Levenshtein();
  print(d.distance('witch', 'kitsch')); // 2
  print(d.normalizedDistance('witch', 'kitsch')); // 0.3333333333333333
}
27
likes
40
pub points
85%
popularity

Publisher

unverified uploader

Implementation of string distance algorithms for advanced text comparison.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

More

Packages that depend on edit_distance