Skip to content

Implemented the Wagner-Fischer algorithm for fun :)

Notifications You must be signed in to change notification settings

samlevine03/spellcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpellCheck

This Python project is designed as a learning exercise to implement the Wagner-Fischer algorithm for word validation and suggesting corrections for misspelled words. It's important to note that this project does not utilize the advanced techniques found in modern spellcheckers, such as neural networks and statistical models that take into account contextual information and typists' common errors. So you may find that some of it's results are unintuitive or not quite what you were expecting!

Features

  • Validates words against a dictionary.
  • Suggests corrections for misspellings.
  • Configurable dictionary size in settings.py.
  • Configurable suggestion threshold in settings.py.

Setup

  • Requires Python 3.
  • Files: dictionary.py, settings.py, words.txt.

Usage

  • Run python3 main.py.
  • Input a word to check or get suggestions.

Example

$ python3 main.py
Enter a word: spellign
Did you mean:
spelling

Contributing

Contributions are welcome. Please fork and submit pull requests.

About

Implemented the Wagner-Fischer algorithm for fun :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages