Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rachel-tanhao/spellchecker
A Java application identifying spelling errors and suggesting replacements.
https://github.com/rachel-tanhao/spellchecker
Last synced: 7 days ago
JSON representation
A Java application identifying spelling errors and suggesting replacements.
- Host: GitHub
- URL: https://github.com/rachel-tanhao/spellchecker
- Owner: rachel-tanhao
- Created: 2023-11-09T19:34:20.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-14T18:56:27.000Z (about 1 year ago)
- Last Synced: 2024-11-08T15:12:08.652Z (2 months ago)
- Language: Java
- Homepage:
- Size: 1.58 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SpellMaster: Java Spell Checker
## Overview
SpellMaster is a simple Java application for spell checking and correction. It's designed to be user-friendly and flexible, allowing users to upload their preferred dictionary and check spelling in their text files. With simple interface, SpellMaster not only identifies errors but also suggests the best replacements, making your writing flawless.## Features
- **Dynamic File Input**: Users can select dictionary and text files at runtime.
- **Interactive Correction**: Offers suggestions for misspelled words, enabling user-driven corrections.
- **Advanced Word Recommendations**: Employs similarity metrics and commonality percentages for optimal word replacements.
- **Efficient Output Management**: Uses the `Printer` class for real-time, append-mode output file writing.
- **Comprehensive Test Suite**: Guarantees reliability with extensive testing.## Components
- `SpellChecker.java`: Core class for spell checking and user interaction.
- `WordRecommender.java`: Suggests words using similarity and commonality metrics.
- `Printer.java`: Handles efficient output file operations.
- `Util.java`: Manages user-interaction prompts.
- `engDictionary.txt`: Example dictionary file.
- `sampleInput1.txt`: Example text file for spell checking.
- Test Classes: Include `SpellCheckerRunner.java`, `PrinterTest.java`, `WordRecommenderTest.java`, and more.## Getting Started
### Prerequisites
- Java Runtime Environment (JRE) and Java Development Kit (JDK).### Usage
Launch the application and Run `SpellCheckerRunner.java`. You will be prompted to input the dictionary and text file names. The application will then perform spell checking, identifying misspelled words and offers suggestions. Users can select a suggestion, accept the misspelling, or input a new word. Corrected text is saved in an output file, named after the input file with "_chk" added.## Contact
- Hao Tan: [[email protected]](mailto:[email protected])
- Lisa Ling: [[email protected]](mailto:[email protected])