edit_distance 0.4.1 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
}