Git Product home page Git Product logo

spell-check's Introduction

Spell-Check

Given an erroneous word, this method considers all the words in the standard dictionary that are at a fixed Levenshtein Distance (commonly known as edit distance) from the erroneous word.

Here for a given word we find all the words in the standard dictionary that are a fixed edit distance away from the given query (erroneous) word. This method takes care of all the candidate words that are ≤ 2 edit distance away from the query word. Following are the steps taken to achieve the task:

  1. A simple edit to a word such as deletion (remove one letter), a transposition (swap two adjacent letters), a replacement (change one letter to another) or an insertion (add a letter) is implemented in the edits1 function

  2. I did again similar edit in the edits2 function and I compare the resultant words with the existing words in the dictionary Here I have considered big.txt as my corpus which is an EBook of The Adventures of Sherlock Holmes by Sir Arthur Conan Doyle consisting 1.1M words (Norvig’s big.txt)

  3. After successful generation of the possible candidates for the misspelled word, I need to rank them. After converting the words into vector form, cosine similarity is implemented to find the closest three candidates and are suggested to the user.

spell-check's People

Contributors

nikita2397 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.