-
Notifications
You must be signed in to change notification settings - Fork 605
Spell corrector #91
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
Spell corrector #91
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!! 🎉 @SaiSrichandra for making your first PR. We will review the changes soon and merge finally.😊 Do give a star ⭐ meanwhile if you like this project.
Thanks for your contribution @SaiSrichandra. Leave a star ⭐ on repo if you enjoy that :)
@all-contributors please add @SaiSrichandra for code
I've put up a pull request to add @SaiSrichandra! 🎉
Pull Request Template
script name - SpellCorrector.py
What have you Changed
Added the Spell Corrector script for correcting spelling errors
what you changed in the codebase.write here
from textblob import TextBlob
import sys
def spell_correct(text):
spell = TextBlob(text)
after_correction = spell.correct()
return after_correction
def main():
after_correction = ""
for text in map(spell_correct, sys.argv[1:]):
after_correction += str(text) + ' '
print(after_correction)
if name == 'main':
main()
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.