A simple Python-based spelling correction project developed for BhashaTHON. It uses basic string similarity to suggest the most likely correct sentence for a given misspelled one.
Spelling_Correction/
βββ main.py # Main logic for correction
βββ Problems.txt # File with misspelled sentences
βββ artificial.train.tgt # File with correct reference sentences
βββ english_eval.corrected.txt # Output: corrected results
βββ requirements.txt # Dependencies
βββ README.md # Project documentation
- Takes misspelled sentences from
Problems.txt
. - Compares each with the reference list from
artificial.train.tgt
. - Finds the closest match using string similarity (Levenshtein-like approach via
difflib
). - Saves the corrected sentences to
english_eval.corrected.txt
.
- Python 3.x
- pip
git clone https://github.com/Ladanividhi/Misspelling-Correction.git
cd Misspelling-Correction
pip install -r requirements.txt
python main.py
The output will be saved to english_eval.corrected.txt.
- OS: Windows / Linux / macOS
- Python: 3.x
- Libraries:
rapidfuzz
or built-indifflib
(depending on usage)
You can find a demo walkthrough of the project in the included video file: Video.mp4
.
- Ladani Vidhi
- Dhyey Shah
- Palak Kanjiya
- Parth Chandegara
This project showcases a straightforward yet impactful method for correcting misspelled sentences using Python's string similarity tools. It is designed to be lightweight, easy to implement, and a great starting point for those exploring the world of natural language processing.
Thank you for taking the time to explore our project. We appreciate your interest and support.
β Team Code Crafters