-
Notifications
You must be signed in to change notification settings - Fork 606
Added spelling corrector script #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congratulations!! 🎉 @jaypaliwal1212 for making your first PR. We will review the changes soon and merge finally.😊 Do give a star ⭐ meanwhile if you like this project.
Hey @jaypaliwal1212, kindly check linting issues
hey @jaypaliwal1212 can you please enable linting in code (flake8 here)
hey @jaypaliwal1212 can you please enable linting in code (flake8 here)
On it
Pull Request Template
script name - spell_corrector.py
What have you Changed - added a script to correct spellings from a selected text file
what you changed in the codebase.write here
from textblob import TextBlob
from tkinter import *
from tkinter import filedialog
gui=Tk()
gui.filename = filedialog.askopenfilename(initialdir = "/",title = "Select file",filetypes = (("txt files",".txt"),("all files",".*")))
f=open(gui.filename,'r')
s=[]
for i in f:
s.append(i)
f.close()
for i in range(len(s)):
s[i]=TextBlob(s[i])
s[i]=s[i].correct()
f=open(gui.filename,'w')
for i in range(len(s)):
s[i]=str(s[i])
f.write(s[i])
f.close()
Issue no.(must) - #38
Self Check(Tick After Making pull Request)
If issue was not assigned to you Please don't make a PR. It will marked as invalid.