A spellchecker written for the command line, using nodejs
- Checks spelling of a file based on a dictionary
- Uses a Set to store dictionary words for fast lookup
- Outputs a list of misspelled words, including line number and column number
- Shows the inline context of each misspelled word
- Outputs a list of suggested words for each misspelled word
- Handles proper nouns and capitalized words
- Handles hypens and apostrophes
- Use streams to read in text files
Requires nodejs version 20.0.0 or higher
npm install
./spellchecker.js <path to dictionary> <path to file to check>
./spellchecker.js ./dictionary.txt ./test.txt
npm test