This is based on language-check / languagetool. >>> from randomsentence import GrammarCorrector >>> corrector = GrammarCorrector() >>> corrector.correct('A sentence with a error in the Hitchhiker’s Guide tot he Galaxy') 'A sentence with an error in the Hitchhiker’s Guide to the ...