spell_corrector

Port of Peter Norvig's spelling corrector http://norvig.com/spell-correct.html

Usage

import 'package:spell_corrector/spell_corrector.dart';
main() {
      var sourceData = "spelling spelunking";
      var corrector = new SpellCorrector(sourceData);
      print(corrector.correction("speling")); // prints "spelling"
}

Command line interface

run pub global activate spell_corrector to activate:

$ spell_corrector speling
$ spelling

Libraries

spell_corrector