Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case-insensitive checking flag #22

Open
fritttr opened this issue Mar 19, 2017 · 1 comment
Open

Case-insensitive checking flag #22

fritttr opened this issue Mar 19, 2017 · 1 comment

Comments

@fritttr
Copy link

fritttr commented Mar 19, 2017

I'd like to be able to set a flag to ignore case in spell-checking. For example, with the flag set, all three of the below expressions would evaluate to TRUE.

This would be helpful when using some NLP tools, like tokenizers, which often force text to lower case. Frequently, after tokenizing, I want to exclude words that are not in the dictionary. My current workaround is to force everything to uppercase.

hunspell_check("I'll")
[1] TRUE
hunspell_check("i'll")
[1] FALSE
hunspell_check("I'LL")
[1] TRUE

@jeroen
Copy link
Member

jeroen commented Dec 14, 2018

I'm not sure if there is a way to do this in libhunspell. Is this possible in the C++ api @laszlonemeth ?

@fritttr your best bet is probably to tolower() your input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants