filyp / autocorrect

Spelling corrector in python
GNU Lesser General Public License v3.0
459 stars 97 forks source link

Spell Check Multiple Languages Simultaneously in a Multi-lingual Setup #46

Closed blahiri closed 2 years ago

blahiri commented 2 years ago

Hi, I was wondering if autocorrect can utilize multiple languages simultaneously in a multi-lingual setup.

For example,

from autocorrect import Speller

spellcheck = Speller(lang='en', 'es', 'fr')

corrected_text = spellcheck(text)
filyp commented 2 years ago

This is not supported, but you could get something close by instantiating several spellers, each with a different language, and passing some sentence through all of them in sequence.