Skip to content

A program that checks spelling of given word, if wrong then recommends words.

License

Notifications You must be signed in to change notification settings

anudeex/Spell-Corrector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spell Corrector

Background

It is a program in which for a given string it checks if the spelling provided is correct or not, if not then it recommends words. We use the concepts of levenshtein distance(Edit Distance) to consider possible recommended words for the given string. Trie data structure is used for storing words with count of how many times word was found in the text file(big.txt) used. Idea was taken from Peter Norvig's article(How to Write a Spelling Corrector) and understanding of some C++ aspects of implementation from here.

Getting Started and Deployment

Just download the whole repository in zip format ,unzip it. Then double click the 'Spell Corrector.exe'. It will open a console where on screen instructions are provided.

screenshot 31

Prerequisites

Concepts

  • Trie Data Structure.

  • Levenshtein distance for strings.

  • C++.

Software and Tools

  • Any C++ IDE (I used DevC++)

  • Any Code Editor (I used Sublime Text3)

Installing

Download all the files of repository. Create a project in IDE and add the files('main.cpp','spell_corrector.h' and 'spell_corrector.cpp') to the project. Then build and run the project.

Screenshot of my IDE:-

screenshot 33

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to me.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone who's code was used
  • Inspiration
  • Peter Norvig link
  • grandpriest link
  • felipefarinon link