highlights mistakes in texts and corrects them.
you'll have to download the program from here and have spellchecking mood (optional).
tqdm
(installing by pip)
- use
--help
or-h
for help. - use
--input
or-in
for choosing file to be corrected (make sure that it is located in the directory where the spellchecker is). if you don't wanna use this option you can write the text on your own below inenter your text:
line (optional). - use
--output
or-out
for choosing the name of file where you'd like to be written the corrected text for you. you are able to not use this option and to get the wonderful corrected text below, on the console (optional). - use
--lang
or-l
for choosing language or creating dictionary from your text.eng
(for choosing English)rus
(for choosing Russian)- (
test_eng
andtest_rus
are for developers)
- use
--created
for choosing your file for creating new dictionary. done!
message says that chellcheck is correctly complited, im truly happy if you saw it :)
!warning! try to not leave the field
--lang
or--create
empty. that is the only way, program can check you words.
python main.py --input file_name.txt --output file_name.txt --lang eng
python main.py --input file_name.txt --lang eng
python main.py --output file_name.txt --create file_name.txt
python main.py --lang eng
python main.py --create file_name.txt
main.py
launchingspellcheck.py
spellcheckingtrie_distance.py
algorithm of Levenshtein Distance + bor triedict_loader.py
loading dictionarydict_creator.py
creating dictionarytest_spellchecker.py
testing program
- parsing arguments with
sys.stdin
- Xenia Evdokimova (xxeniaev)