Grammer is needed everywhere From writing a letter, email, essay or article. Good Grammer with a correct word spoken help you to communicate clearly and help you to put a good impression on others. So as a programmer we always want to do things with code. So in this post i will give you a brief introduction with example gingerit python module which help you correct spelling with python.
gingerit python module?
The GINGERIT PYTHON module is a grammar correction and verification tool for Python without any additional installation steps.
Installation of gingerit python module?
the installation process for the gingerit python module is quite simple as it is an open source project and all you need to do is download it from github and then run the setup.py file.
Download from above link; You will get the file gingerit.py Copy the gingerit.py to your desk top and edit it automatically
How to use gingerit python?
We will be using a simple grammar checker program, it uses the Gingerit Package to detect grammatical errors and correct them. Here is an example code where we will gonna use gingerit package to build a simple grammar checker program. where I will pass a sentence with misspelled words and incorrect grammar. Make sure you create a main.py file In same path or folder where gingerit.py file which i have provided you.
Output
Conclusion
gengerit package has been not updated for a while by the person who has created it due to which if you install gengerit from pip it will show error and HTML code due to Cloudflare protection on API. so i have fixed that issue and shared that with the new genreit.py file so download it from above link. Make sure you put the gengerit.py file in the same path or folder where you test your code.
0 Comments