Class PossibilityIterator

  • All Implemented Interfaces:

    public class PossibilityIterator
    extends Object
    implements Iterator<PossibilityIterator.RankedSpellPossibility>
    Given a list of possible Spelling Corrections for multiple mis-spelled words in a query, This iterator returns Possible Correction combinations ordered by reasonable probability that such a combination will return actual hits if re-queried. This implementation simply ranks the Possible Combinations by the sum of their component ranks.