Skip to content

SpellCheck is a spelling checking and correction module in Python built using Fuzzywuzzy string matching module.

Notifications You must be signed in to change notification settings

pragnakalp/spellcheck-using-dictionary-in-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dictionary based spell checking in Python

SpellCheck is a spelling checking and correction module in Python built using Fuzzywuzzy string matching module.

Steps to get started

  1. Create your own dictionary of word

  2. Import the spellcheck module in your script
    from spellcheck import SpellCheck

  3. Initialize the spellcheck object in your code
    spell_check = SpellCheck('words.txt')

  4. Set the string to be checked
    string_to_be_checked = "Gujrt Delh Vodadra"
    spell_check.check(string_to_be_checked)

  5. Use the object to get suggested words or corrected string
    print(spell_check.suggestions())
    print(spell_check.correct())

Change the fuzzy matching percentage in the spellcheck.py file to suite your need.

Do suggest for any improvement.

Developed by Pragnakalp

About

SpellCheck is a spelling checking and correction module in Python built using Fuzzywuzzy string matching module.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages