An open API service indexing awesome lists of open source software.

https://github.com/wwi2196/spell-checker-application

This Java application implements a spell-checker. It maintains a lexicon of words and provides a method to check the spelling of input strings against this lexicon. The program accounts for common misspellings by considering character swaps, insertions, deletions, and replacements.
https://github.com/wwi2196/spell-checker-application

Last synced: 3 months ago
JSON representation

This Java application implements a spell-checker. It maintains a lexicon of words and provides a method to check the spelling of input strings against this lexicon. The program accounts for common misspellings by considering character swaps, insertions, deletions, and replacements.

Awesome Lists containing this project

README

        

# Spell-Checker Application

## Overview
This part of the assessment involves the implementation of a spell-checker application. The application stores a lexicon of words in a set and implements a method `spellChecker(a)` to perform spell checks on strings against the set of words.

## Functionalities
- `spellChecker(a)`: Checks the spelling of the string `a` against the lexicon `Y`. If `a` is in `Y`, it returns a list containing only `a`. Otherwise, it returns a list of words from `Y` that might be correct spellings of `a`.

## Error Handling
The program accounts for common misspellings by:
- Swapping adjacent characters in a word
- Inserting a single character between two adjacent characters
- Deleting a single character from a word
- Replacing a character in a word with another character