{"repo":"filyp/autocorrect","free":true,"listed":false,"github":"https://github.com/filyp/autocorrect","clone":"git clone https://github.com/filyp/autocorrect.git","description":"Spelling corrector in python","language":"Python","stars":499,"topics":["autocorrection","spelling","spellchecker","levenshtein-distance","python","english","polish","turkish","ukrainian","russian"],"license":"LGPL-3.0","category":"dev-tools","readme_excerpt":"Autocorrect Spelling corrector in python. Currently supports English, Polish, Turkish, Russian, Ukrainian, Czech, Portuguese, Greek, Italian, Vietnamese, French and Spanish, but you can easily add new languages. Based on: https://github.com/phatpiglet/autocorrect and Peter Norvig's spelling corrector. Installation Examples Autocorrect full sentences: Use other languages: Get multiple correction candidates for a single word: The numbers are frequencies of a word, so the higher, the better. Speed As you see, for some words correction can take 200ms. If speed is important for your use case (e.g. chatbot) you may want to use option 'fast': Now, the correction should always work in microseconds, but words with double typos (like 'consiousnes') won't be corrected. OCR When cleaning up OCR, replacements are the large majority of errors. If this is the case, you may want to use the option 'only replacements': Custom word sets If you wish to use your own set of words for autocorrection, you can pass an nlp data argument: Where your word frequency dict is a dictionary which maps words to their average frequencies in your text. If you want to change the default word set only a bit, you can just edit spell.nlp data parameter, after spell was initialized. Adding new languages A simpler but untested way - wordfreq It should be possible to get word frequencies from the wordfreq package. You should be able to provide this word frequency data to autocorrector through nlp data parameter. You w","default_branch":null,"files":null,"tree":[],"storefront":"/r/filyp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/filyp/autocorrect/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}