Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
jaypaliwal1212 wants to merge 3 commits into python-geeks:main from jaypaliwal1212:main
Closed

Added spelling corrector script #71

jaypaliwal1212 wants to merge 3 commits into python-geeks:main from jaypaliwal1212:main

Conversation

@jaypaliwal1212
Copy link
Contributor

@jaypaliwal1212 jaypaliwal1212 commented Oct 9, 2020

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.

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
Copy link
Contributor

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@github-actions github-actions[bot] github-actions[bot] left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /