I am currently using hunspell_check() function in hunspell package in R to classify words as correct or incorrect. But the dictionary it uses is case sensitive.
Is there a way to specify case insensitivity if I have to continue using the same package? Or is there any other package in R which I can use?
Based on this issue , it looks like using toupper
is a workaround. Eg:
g <- c("albany", "Albany", "ALBANY")
hunspell_check(g)
[1] FALSE TRUE FALSE
hunspell_check(toupper(g))
[1] TRUE TRUE TRUE
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.