surekha
(surekha)
February 12, 2019, 7:20am
1
I have gone through this link to find out solution but I could not understand.
http://wiki.languagetool.org/hunspell-support
I did not understand where do I need to add these properties in my project. I am doing it in java with maven.
Please post some code snippet. I am new to language tool. So, I could not understand from document.
Please help me. I am looking forward for solution.
surekha
(surekha)
February 12, 2019, 9:10am
2
I tried this but not working.
for (Rule rule : langTool.getAllActiveRules()) {
if (!(rule instanceof SpellingCheckRule)) {
langTool.disableRule(rule.getId());
}
if (rule instanceof SpellingCheckRule)
{
((SpellingCheckRule)rule).setConvertsCase(true);
System.out.println(((SpellingCheckRule)rule).isConvertsCase()); //returns true
}
}
Example failed words: BLue, THis, rosetta (actual word in dictionary is Rosetta)
Please help me.
surekha
(surekha)
February 13, 2019, 3:17am
3
Hi
This is very important for me. I have been waiting for solution. Please help me to solve this.
@Yakov @dnaber