go-spell-checker

command module
v0.0.0-...-84f32c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 5 Imported by: 0

README

Spelling Corrector

You can run the script by using the command go run script.go.

Credits

This algorithm's originally written in Python by Peter Norvig, transcripted to Go Lang by Yi Wang and adapted by me.

The list of common misspellings is powered by Wikipedia and also adapted by me.

Results

I got a total of 1303 errors and 2816 successful cases (68.36611% success) in 175 seconds of processing.

Future Work

In order to make the script run faster, it would be interesting to use something like BK-Trees or Trie, instead of iterating through a plain text file.

In order to improve the successful cases ratio, we could fill our dictionary files with new words. We could take context into consideration, as well. Problems like Expect yearm->year but got years can only be solved with context.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL