I am using the qdap package in R to do a spell check. I run the below code and gives an output like this
which_misspelled("I use a 50Gb broadband connection")
> 4 5
which_misspelled() function contains the argument
dictionary = which defaults to qdapDictionaries::GradyAugmented. If your input of words isn't present in there, it will be considered misspelled.
If you want for example the word
"gb" to be recognized as correct spelling, you should define a new
library(qdap) dict <- c(qdapDictionaries::GradyAugmented, "gb") which_misspelled("I use a 50Gb broadband connection", dictionary = dict) # 5 #"broadband"