Overview

Two pragrams are written for project 1 of Knowledge Technologies:
1. nh_spellcheck.py  (Spellcheck using NeighbourHood search)
2. trie_spellcheck.py (Spellcheck using trie data structure)

These programs take two arguments: the file to be spellchecked and the dictionary file.

Example:
If the file to be checked is "enron-skilling.txt" and the dictionary is "words.txt", 
then you can run the first program as:
$ python nh_spellcheck.py eron-skilling.txt words.txt

Similarly, you can run the second program as:
$ python trie_spellcheck.py eron-skilling.txt words.txt

Remember to put the files in the same directory where the python code is, otherwise you'd need to provide the full path to the files.

*** Note ***
The nh_spellcheck.py takes forever to spellcheck the entire enron-skilling.txt.
I ran it for six hours and it still didn't finish. So I cut the first 1000 lines
of enron-skilling.txt and named it enron-skilling-part.txt. It took about 15 minutes
to spellcheck enron-skilling-part.txt.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.