I understood that dictionary will be picked up based on this
Language lang = Languages.getLanguageForLocale(Locale.US); langTool = new JLanguageTool(lang);
but I have a doubt regarding dictionary words.
Spell checker is failing on words like
BLue. I feel these are valid words.
Why it is failing?
From your documentation I found this to ignore case but I did not understand where to add this for java(using maven).
<token negate=“yes” skip=“1” regexp=“yes”>(?iu)ten </token>
<token regexp=“yes”>one|two</token> </pattern>
Please help to solve these issues.