/** * * @deprecated use getContext() instead as per the WordTokenizer * interface specification. * @return the final text. */ public String getFinalText() { return getContext(); }
public String spellCorrect(String text) { StringWordTokenizer swt = new StringWordTokenizer(text); spellChecker.checkSpelling(swt); return swt.getContext(); }
/** * Checks the text string. * <p> * Returns the corrected string. * * @param text The text that need to be spelled checked * @return The text after spell checking * @deprecated use checkSpelling(WordTokenizer) */ public String checkString(String text) { StringWordTokenizer tokens = new StringWordTokenizer(text); checkSpelling(tokens); return tokens.getContext(); }