A basic spell checker was designed which uses edit-distance and phonetic similarities to correct mispelled words in a given sentence, with the help of unigram and bigram probabilities. The complete code for this assignment can be found in code.zip.
Accuracy of spell checker on hi-spell1 file = 55.13 % (output)
Accuracy of aspell on hi-spell1 file = 44 % (aspellOutput)
The spell checker was also tested on a hindi wikipedia page, whose results can be viewed in this output file.