def dump_misspelling_list(self):
    """Returns a list of misspelled words and corrections."""
    results = []
    for bad_word in sorted(self._misspelling_dict.keys()):
      for correction in self._misspelling_dict[bad_word]:
        results.append([bad_word, correction])
    return results
def dump_misspelling_list ( self ) : results = [ ] for bad_word in sorted ( self . _misspelling_dict . keys ( ) ) : for correction in self . _misspelling_dict [ bad_word ] : results . append ( [ bad_word , correction ] ) return results
Returns a list of misspelled words and corrections.