did_you_mean 1.0.1 did_you_mean: ^1.0.1 copied to clipboard
a dart port of didyoumean, but use faster levenshtein algorithm.
did_you_mean #
a dart port of didyoumean. but via levenshtein algorithm.
Usage #
import 'package:did_you_mean/did_you_mean.dart';
var input = 'résumé';
var list = ['resume', 'resumé'];
var matched = didYouMean(input, list);
print('the best matched is $matched'); // the best matched is resumé
License #
MIT License.