For my purposes, the level of automation that you provided here was too risky - the words included the correct names, so I built a little more verification on the system.
I add fixes to the recording file later in the process.
I thought it would be useful for others, since the documentation is not enough for me.
for data_field in fields: checker.set_text(str(data_field)) for err in checker: print err.word print err.suggest() correct = raw_input("provide 0-index int of correct word or i to ignore, e to edit ") if correct == 'i': pass elif correct == 'e': suggest = raw_input("") err.replace(suggest) else: correct = int(correct) suggest = err.suggest()[correct] err.replace(suggest) corrected_text.append(checker.get_text())
source share