Add words?
maelle opened this issue · 5 comments
maelle commented
I'm wondering how one could easily add words to the dictionary. For instance in the texts I'll use hunspell with, I can find the Indian English word "tiffin" which does exist but hun_check returns FALSE.
Or maybe this issue is related to #3 and I should try and find an Indian English dictionary.
jeroen commented
You could use the ignore
argument for this:
hunspell_find("Tiffin is an Indian English word for a light midday meal", ignore = "tiffin")
I'll look into using custom dictionaries for the next release.
maelle commented
Ok thank you very much, and then
hunspell_find("Tiffin is an Indian English word for a light midday meal. I like eating dal", ignore = c("tiffin", "dal"))
for many words.
maelle commented
Oops maybe it should stay open, sorry.
jeroen commented
FYI the hunspell_find
function has been renamed to hunspell
in the new release ;)
jeroen commented
Forgot to respond to this issue. The dictionary()
function now has an `add_words parameter.