LexiFix: Real-Time Spell-Checking Application
LexiFix is a C++-based real-time spell-checking application that uses advanced algorithms for efficient and accurate typo detection and correction. It integrates the Damerau-Levenshtein distance and n-gram modeling to suggest context-aware corrections for misspelled words.
π Key Features
- Real-Time Spell Correction: Instantly detects and corrects typos with high accuracy.
- Advanced Algorithms: Utilizes Damerau-Levenshtein and n-gram models for error detection and contextual suggestions.
- Efficient Design: Optimized for performance with minimal resource consumption.
- C++
- Damerau-Levenshtein Algorithm
- N-gram Modeling
- Core Spell Checker: Detects and corrects typos using the Damerau-Levenshtein algorithm.
- N-gram Model: Enhances suggestion accuracy by analyzing word probabilities in context.
- Input Text: Users provide text for analysis.
- Error Detection: The system identifies typos using Damerau-Levenshtein distance.
- Suggestions: Generates corrections using n-gram probabilities for context-aware suggestions.
/LexiFix
β
βββ /src # Source files
β βββ main.cpp # Main program
β βββ spellcheck.cpp # Spell-checking logic
β βββ ngram.cpp # N-gram modeling
β
βββ /include # Header files
β βββ spellcheck.h # Header for spell-checking logic
β
βββ /data # Dataset or dictionary
β βββ dictionary.txt # Word dictionary for corrections
β
βββ README.md # Project documentation
-
Clone the repository:
git clone https://github.com/your-username/LexiFix.git
-
Navigate to the project folder:
cd LexiFix -
Compile the code:
g++ -o lexifix src/main.cpp src/spellcheck.cpp src/ngram.cpp
-
Run the program:
./lexifix
-
Enter text to check for spelling errors.
Feel free to open an issue or submit a pull request if you want to contribute to this project.
This project is licensed under the MIT License - see the LICENSE file for details.