misspell

Some functions that introduce random typographical errors in provided text.


License
GPL-3.0
Install
pip install misspell==0.6

Documentation

PyPI version GitHub license

misspell

Some functions that introduce random typographical errors in provided text.

make one typo:

from misspell import make_typo

make_typo('test')  # tedt, tesw etc...

make typos in 50% of the characters:

from misspell import make_typos
make_typos('Hello, world!', percent=50)  # 'Jell9, woelf!', 'Hdllo, sorld!' etc...