Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Autocorrect System

A simple Python-based autocorrect system using Levenshtein distance to suggest corrections for misspelled words.


Features

  • Checks if a word is spelled correctly
  • Suggests top 5 closest matches if the word is misspelled
  • Easy to use and extend

Installation

  1. Clone the repository:
git clone https://github.com/Manolis8/autocorrect-system.git
cd autocorrect-system

Install dependencies:

pip install python-Levenshtein

Usage

Run the program:

python autocorrect.py

Then type words to check their spelling. Type exit to quit.

Files

autocorrect.py: Main Python script for autocorrect functionality

nltk_words.csv: List of valid words used for spell checking

README.md: This documentation

Example Enter a word (or type 'exit' to quit): appl 'appl' is not spelled correctly. Did you mean: apple, apply, app, ample, April?

About

Autocorrect System – A lightweight Python autocorrect tool that checks word spelling and suggests the top 5 closest matches using Levenshtein distance. Perfect for learning about text processing, string similarity, and basic NLP concepts.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages