class_docstr: Suggests corrections based on the content of a sorted list of strings.
class_docstr_tok: ["Suggests","corrections","based","on","the","content","of","a","sorted","list","of","strings","."]
code: def _suggestions(self, text, maxdist, prefix):
      from whoosh.automata.lev import levenshtein_automaton
      from whoosh.automata.fsa import find_all_matches
  
      seen = set()
      for mxd in xrange(1, maxdist + 1):
          dfa = levenshtein_automaton(text, mxd, prefix).to_dfa()
          sk = self.Skipper(self.wordlist)
          for sug in find_all_matches(dfa, sk):
              if sug not in seen:
                  seen.add(sug)
                  yield (0 - mxd), sug
  
imports: from bisect import bisect_left
  from heapq import heappush, heapreplace
  from whoosh import highlight
  from whoosh.compat import iteritems, xrange
label_desc: Use image node_id 2 for calling the ListCorrector obj's underlying member method code with example usage: obj._suggestions(text, maxdist, prefix) without return types