barrust / pyspellchecker

Pure Python Spell Checking http://pyspellchecker.readthedocs.io/en/latest/
MIT License
694 stars 101 forks source link

Fix typos by introducing whitespaces #74

Open littlewine opened 3 years ago

littlewine commented 3 years ago

Is there a way (or workaround) to correct mistakes (typos) also by introducing whitespaces?

eg. "yes specificallyshows [...]" -> "yes specifically shows"

I guess it could be somewhat more complicated, since you have to match with two words, split accordingly, etc.

barrust commented 3 years ago

You are correct that it would be more complicated but possible. It may make more sense for that to be outside the library itself and more of an as needed solution. If you come up with a method and think it would be a good addition to the library, I accept Pull Requests!