for error in errors:
    print('%s error for: %s **%s**' % (error.type, error.precontext, error.
        string))
print('some suggestions: %s' % (', '.join(error.suggestions),))
How to check whether a sentence is correct (simple grammar check in Python)?