I am trying to work on JLanguageTool spell checker. I need to do purely spelling checking. When I searched for spell checkers in java I got this tool and this is very good.
I developed spell checker using
Both are working fine but languagetool is heavy when I convert my project as jar but it is very fast compare to language-en.
language-en is purely checking for spelling issue but languagetool checking special cases like {TEST_WORD} even I selected SpellingCheckRule.
language-en is doing what exactly I want but execusion is slower than languagetool
What is the reason. Do I need to add any other dependancies?
Please help me.
The first few uses will take a bit time, so you should check more than just a few words. If you need to check single words and re-create all the LT objects for every word, it will not be fast.
Yeah. I noticed that it is taking time for first few uses by adding timer. I did not mean to say it is slow but compare to languageTool jar it is taking bit more time even logic, apis are same.
`00 min, 01 sec , 1865 millis
Possible spelling mistake found at 83: util
00 min, 00 sec , 426 millis
Possible spelling mistake found at 86: xlf
Possible spelling mistake found at 86: ProjectName
Possible spelling mistake found at 86: jdaABakdjkAFD
Possible spelling mistake found at 86: fkjad
I need one more help. Spell check is failing on these type of words ${ProjectName}.
Should I use regex to ignore these type of strings or any apis available to ignore them?
I saw addIgnoreTokens , acceptPhrases apis but I can not hardcode values. I want to do it like ${.*}
Hi
Is there any api to ignore special characters like _, $ etc? Spell check is failing on special characters.
My aim is, file can contain anything but spell check should only pick if it has alphabets. This will make my life more easy.