diff --git a/projects/Spell_checker/README.md b/projects/Spell_checker/README.md new file mode 100644 index 000000000..50b49590f --- /dev/null +++ b/projects/Spell_checker/README.md @@ -0,0 +1,25 @@ +# Script Title + +Here, you can input any word and check if it is having a correct spelling or not. + +### Prerequisites + +First thing which you need to install is textblob library + +>pip install textblob + +You need to run this command in your terminal or your ide terminal. + +If you are using Jupyter Notebook you need to use the below command + +>import sys + +>!{sys.executable} -m pip install textblob + +### How to run the script + +You can first install the textblob library and then you can run the python script. + +## *Author Name* + +[Hariom1509](https://github.com/Hariom1509) diff --git a/projects/Spell_checker/spell_checker.py b/projects/Spell_checker/spell_checker.py new file mode 100644 index 000000000..a9dd8d964 --- /dev/null +++ b/projects/Spell_checker/spell_checker.py @@ -0,0 +1,12 @@ +from textblob import TextBlob # importing textblob library + +t = 1 +while t: + a = input("Enter the word to be checked:- ") # incorrect spelling + print("original text: "+str(a)) #printing original text + + b = TextBlob(a) #correcting the text + + # prints the corrected spelling + print("corrected text: "+str(b.correct())) + t = int(input("Try Again? 1 : 0 "))

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