Class SuggestWord


  • public final class SuggestWord
    extends java.lang.Object
    SuggestWord, used in suggestSimilar method in SpellChecker class.

    Default sort is first by score, then by frequency.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      int freq
      The freq of the word
      float score
      the score of the word
      java.lang.String string
      the suggested word
    • Constructor Summary

      Constructors 
      Constructor Description
      SuggestWord()
      Creates a new empty suggestion with null text.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • score

        public float score
        the score of the word
      • freq

        public int freq
        The freq of the word
      • string

        public java.lang.String string
        the suggested word
    • Constructor Detail

      • SuggestWord

        public SuggestWord()
        Creates a new empty suggestion with null text.