Objective: I have a document with many words. I need to figure out which words have spelling mistakes.
I have installed WordNet 3.0 for this.
With the below command, I can check if the word actually exists in the wordnet database but this needs me to specify the POS i.e. NOUN, PRONOUN,etc. which I might not know in advance
filter <- getTermFilter("ExactMatchFilter", "car", TRUE)
terms <- getIndexTerms("NOUN", 5, filter)
Please let me know a way to solve my problem in R
One approach:
or vectorized: