Skip to content

Conversation

@jaypaliwal1212
Copy link
Contributor

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)

  • This issue was assigned to me.
  • One Change in one Pull Request
  • My file is in proper folder (Name of folder should be in lowercase with no space in between)
  • I am following clean code and Documentation and my code is well linted with flake8.
  • I have added README.md and requirements.txt with my script

If issue was not assigned to you Please don't make a PR. It will marked as invalid.

Copy link
Contributor

@github-actions github-actions bot left a 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.

@pawangeek
Copy link
Contributor

Hey @jaypaliwal1212, kindly check linting issues

@pawangeek pawangeek linked an issue Oct 9, 2020 that may be closed by this pull request
2 tasks
@pawangeek
Copy link
Contributor

hey @jaypaliwal1212 can you please enable linting in code (flake8 here)

@jaypaliwal1212
Copy link
Contributor Author

hey @jaypaliwal1212 can you please enable linting in code (flake8 here)

On it

@pawangeek pawangeek removed a link to an issue Oct 10, 2020
2 tasks
@pawangeek pawangeek closed this Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants