Class SuggestItem

java.lang.Object
org.languagetool.rules.spelling.symspell.implementation.SuggestItem
All Implemented Interfaces:
Comparable<SuggestItem>, Comparator<SuggestItem>

public class SuggestItem extends Object implements Comparator<SuggestItem>, Comparable<SuggestItem>
  • Field Details

    • term

      public String term
      The suggested correctly spelled word.
    • distance

      public int distance
      Edit distance between searched for word and suggestion.
    • count

      public long count
      Frequency of suggestion in the dictionary (a measure of how common the word is).
  • Constructor Details

    • SuggestItem

      public SuggestItem(String term, int distance, long count)
      Create a new instance of SymSpell.SuggestItem. The suggested word. Edit distance from search word. Frequency of suggestion in dictionary.
  • Method Details