Spelling correction with Naive Bayes approach
-
Get a word from users input
-
Search word in the collection or Bag of words
-
If word is found, just return the same word otherwise
A. Generate a list of close and probable words by
i. single letter deletion ii. single letter insertion iii. single letter replacement iv. swap of two letters
B. Get frequency of each probable word from the bag of words
C. Return most frequent probable word as spell correct word