edit_distance 0.3.0

  • README.md
  • Installing
  • Versions
  • 73


Build Status

Implementation of string distance algorithms.


Edit distances algorithms for fuzzy matching. Specifically, this library provides:


Levenshtein d = new Levenshtein();
print(d.distance('witch', 'kitsch')); // 2



  • Add Jaccard and CombinedJaccard.


  • Turn on strong mode
  • Fix a bug: JaroWinkler mistakenly used / operator where ~/ is required.


  • Add JaroWinkler and LongestCommonSubsequence.
  • Add NormalizedStringDistance whose normalizedDistance method returns a similarity between 0.0 (exact same) and 1.0 (completely different).


  • Initial version

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  edit_distance: "^0.3.0"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:edit_distance/edit_distance.dart';
Version Uploaded Documentation Archive
0.3.0 Nov 13, 2016 Go to the documentation of edit_distance 0.3.0 Download edit_distance 0.3.0 archive
0.2.1 Nov 3, 2016 Go to the documentation of edit_distance 0.2.1 Download edit_distance 0.2.1 archive
0.2.0 Oct 4, 2016 Go to the documentation of edit_distance 0.2.0 Download edit_distance 0.2.0 archive
0.1.0 Sep 28, 2016 Go to the documentation of edit_distance 0.1.0 Download edit_distance 0.1.0 archive


We analyzed this package on Jun 12, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.60.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
69 / 100
Code health derived from static analysis. [more]
100 / 100
Reflects how tidy and up-to-date the package is. [more]
42 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:edit_distance/edit_distance.dart.


  • Package is getting outdated.

    The package was released 82 weeks ago.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 hint.

    Run dartfmt to format lib/src/base.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
quiver_iterables ^1.0.0 1.0.1
Transitive dependencies
meta 1.1.5
Dev dependencies
test >=0.12.0 <0.13.0