Back to LanguageTool Homepage - Privacy - Imprint

Word containing letter

Hi,
I have written below java code to find if the word has spelling mistake . Input the tool is “tst1” .Tools does not flag this as spelling error . What i observed that word containing letters, is unable to be detected by the tool . Please suggest if there is a way around .

            JLanguageTool langTool = new JLanguageTool(new AmericanEnglish());

	    @SuppressWarnings("unchecked")
		java.util.List<RuleMatch> matches = null;
		try {
			matches = langTool.check("tst1");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

Have you tried fsa.dict.speller.ignore-numbers as documented at http://wiki.languagetool.org/hunspell-support?

1 Like

Thank you . Its worked fine . Appreciate your timely help .