- Clone the repository
- Join to the correct path of the clone
- Install requirements.txt
- Use
python ./src/app.py
to execute program
I made a python program with a user interface made with tkinter. This program allows to correct the user through an entered word, if the user enters hell
it will appear words similar to hell
like hello
for example.
- Python
- Tkinter
- textblob
https://www.diegolibonati.com.ar/#/project/67
spellingchecker.mp4
The load_values()
method will have the variables word_spelling_list
which will be a list where the possible words that the user referred to are stored, word
will be the variable in which the content of the word that the user typed is obtained and spelling_get
will be a list in which all possible words will be stored as a tuple:
def load_values(
self
) -> None:
word_spelling_list = []
word = self.word_entry.get()
if not word:
return self.final_words.set('There are not words load')
spelling_get = Word(word).spellcheck()
if spelling_get:
for tupla in spelling_get:
for word in tupla:
if isinstance(word, str):
word_spelling_list.append(word)
else:
return self.final_words.set(f'Possible words: {spelling_get[0][0]}')
return self.final_words.set(f'Possible words: {" ".join(word_spelling_list)}')