Skip to content

Conversation

@jaypaliwal1212
Copy link
Contributor

Pull Request Template

script name - spell_corrector.py

What have you Changed

what you changed in the codebase.write here
from textblob import TextBlob
from tkinter import Tk
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.

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

That's fine now @jaypaliwal1212

@pawangeek pawangeek merged commit 23a7016 into python-geeks:main Oct 10, 2020
@pawangeek pawangeek added the hacktoberfest-accepted Supporting completion of hacktober fest label Oct 10, 2020
@pawangeek
Copy link
Contributor

@all-contributors add @jaypaliwal1212 for code

@allcontributors
Copy link
Contributor

@pawangeek

I've put up a pull request to add @jaypaliwal1212! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted Supporting completion of hacktober fest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spell Corrector

2 participants