我正在使用Raspell
中的包功能utils
来拼写检查我的文本。此外,我正在尝试为 Aspell 检测到的不正确单词提取正确的单词。但是 Aspell 建议对一些不正确的词使用冒犯性的词。我不要那个。我如何阻止 Aspell 这样做?有没有办法只使用 R 从 Aspell 字典中删除某些单词?这就是我使用 Aspell 的方式。
spelling_mistakes <- aspell(file_location2,"Rd", control = c("--master=en_US"),
program = aspell_location)
incorrect_words_list <- spelling_mistakes[, 1]
correct_words_for_incorrect_words <- spelling_mistakes[, 5]