Build a Real-Time Spelling Corrector in Python | NLP + GUI Project

 Demo :


Click Video πŸ‘‡πŸ‘‡πŸ‘‡

















Features:

  • Embed your YouTube Short

  • Include source code or GitHub link

  • Explain how TextBlob works for NLP

  • Add screenshots or demo GIF

  • Internal links to your previous GUI projects

  • Include a “Copy & Paste” code box for beginner


Code :


import tkinter as tk

from tkinter import ttk

from textblob import TextBlob


# Function to check spelling

def check_spelling():

    text = input_text.get("1.0", tk.END)

    blob = TextBlob(text)

    corrected = blob.correct()

    output_text.config(state='normal')

    output_text.delete("1.0", tk.END)

    output_text.insert(tk.END, str(corrected))

    output_text.config(state='disabled')


# GUI Window

root = tk.Tk()

root.title("Fuzzu Real-Time Spelling Checker - FuzzuTech")

root.geometry("600x400")

root.config(bg="#1e1e1e")


# Title

ttk.Label(root, text="πŸ” Type Here:", foreground="white", background="#1e1e1e", font=("Segoe UI", 12)).pack(pady=5)


# Input

input_text = tk.Text(root, height=8, width=60, font=("Segoe UI", 11), bg="#2c2c2c", fg="white", insertbackground="white")

input_text.pack(pady=5)


# Check Button

ttk.Button(root, text="Check Spelling", command=check_spelling).pack(pady=10)


# Output

ttk.Label(root, text="✅ Corrected Text:", foreground="white", background="#1e1e1e", font=("Segoe UI", 12)).pack(pady=5)


# ❗ Fix here

output_text = tk.Text(root, height=6, width=60, font=("Segoe UI", 11), bg="#1c1c1c", fg="lightgreen", state='disabled')

output_text.pack()


root.mainloop()

Comments

Popular posts from this blog

πŸš€ Simple Login & Registration System in Python Tkinter πŸ“±

πŸš€ Create a Python Screen Recorder with Audio (Complete Code)

πŸ“‘ Fuzzu Packet Sniffer – Python GUI for Real-Time IP Monitoring | Tkinter + Scapy