dart_spell 0.1.1

  • README.md
  • Installing
  • Versions
  • 30


A simple spell checker implementation in Dart. For now it only finds the single words from a given dictionary. Algorithm is different than Peter Norvig's implementation (http://norvig.com/spell-correct.html). This implementation is more complicated but probably much faster (finds several thousands matches in a second). It uses dynamic decoding over a simple trie generated from the dictionary. System finds words with a distance to the input. Deletions, insertions, substitutions and transpositions are supported.

import 'package:dart_spell/dart_spell.dart';

// optional distance parameter. Default is 1.0
var checker = new SingleWordSpellChecker(distance:1.0);

var dictionary = ["apple", "apples", "pear", "ear"];

List<Result> matches = checker.find("apple");

[apple:0.0, apples:1.0]


  • Add less substitution penalty for near keys in keyboard layout.
  • Add language model support so that it gives more logical suggestions.
  • Add multi word spell suggestion with space and out of vocabulary word handling.

Change List

0.1.1 Dart 1.0 clean-up.
0.1.0 Initial release

1. Depend on it

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

  dart_spell: "^0.1.1"

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 packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:dart_spell/dart_spell.dart';
Version Uploaded Documentation Archive
0.1.1 Nov 8, 2013 Go to the documentation of dart_spell 0.1.1 Download dart_spell 0.1.1 archive
0.1.0 Jul 30, 2013 Go to the documentation of dart_spell 0.1.0 Download dart_spell 0.1.0 archive


This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Jan 21, 2018
  • Dart: 2.0.0-dev.15.0
  • pana: 0.10.0


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


Detected platforms: Flutter, web, other

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


  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • 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.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use dart_spell.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=0.8.10+6 <2.0.0
Dev dependencies
unittest >=0.9.0 <0.10.0