ml_fuzzy_matcher 0.0.1 copy "ml_fuzzy_matcher: ^0.0.1" to clipboard
ml_fuzzy_matcher: ^0.0.1 copied to clipboard

A Dart package for fuzzy string comparison using Levenshtein, Jaccard, and Cosine algorithms. Supports Turkish character normalization.

example/main.dart

import 'package:ml_fuzzy_matcher/ml_fuzzy_matcher.dart';

void main() {
  final matcher = FuzzyMatcher(
    algorithm: FuzzyAlgorithm.levenshtein,
    normalizeDiacritics: true,
  );

  final pairs = [
    ['çalışmak', 'calismak'],
    ['ışık', 'isik'],
    ['flutter', 'fluter'],
    ['developer', 'developr'],
    ['araba', 'ev'],
  ];

  for (final pair in pairs) {
    final score = matcher.compare(pair[0], pair[1]);
    print('Similarity between "${pair[0]}" and "${pair[1]}" → ${score.toStringAsFixed(2)}');
  }
}
1
likes
150
points
15
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Dart package for fuzzy string comparison using Levenshtein, Jaccard, and Cosine algorithms. Supports Turkish character normalization.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on ml_fuzzy_matcher