ropensci/hunspell

Add words?

maelle opened this issue · 5 comments

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.

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.

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.

Oops maybe it should stay open, sorry.

FYI the hunspell_find function has been renamed to hunspell in the new release ;)

Forgot to respond to this issue. The dictionary() function now has an `add_words parameter.