Skip to content

claptimes5/levenshtein_spell_suggester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Levenshtein Spelling Suggester

Spelling suggester implementation that uses word closeness comparison and word frequencies to suggest fixes to misspelled words.

Input:

  • frequent_words.csv - Contains list of common words and thier frequencies
  • misspelled.csv - Contains list of misspelled words

Output:

  • suggestions.txt - Spelling suggestions in the format: * <misspelled query>: <array of suggestions>

    Example: * basicly: ["basil","basic","easily","basically"]

Run

  • Uses NPM

var file = require('./spellingSuggestor.js'); file.spellingSuggestor.init();

Tests

Requires the following modules:

  • 'mocha'
  • 'chai'
  • 'fs'

Then run mocha.

Attributions

About

Quick test of Levenshtein algorithm to find closest word match

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published