Skip to content

Ayushd172005/Chatbot-using-Rule-Based-NLP-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Rule-Based Chatbot using NLP (Python)

A rule-based chatbot developed using Python and Natural Language Processing (NLP) techniques.
This project demonstrates core NLP fundamentals such as tokenization, regular expressions, and pattern matching, making it ideal for beginners exploring conversational AI.


πŸ“Œ Project Overview

The Rule-Based Chatbot simulates human-like conversation by matching user inputs with predefined rules using regular expressions.
Unlike machine-learning chatbots, this system relies on deterministic logic, making it fast, interpretable, and lightweight.

This project is designed to showcase NLP foundations and text processing skills in a simple yet effective way.


πŸš€ Features

  • πŸ’¬ Interactive command-line chatbot
  • πŸ”€ Tokenization of user input using NLP
  • πŸ” Regex-based intent matching
  • ⚑ Instant responses with predefined rules
  • ❌ No machine learning required
  • 🧠 Easy to extend with new rules and responses

πŸ› οΈ Tech Stack

  • Python 3
  • NLTK – Tokenization
  • Regular Expressions (re) – Pattern matching
  • Command Line Interface (CLI)

🧠 NLP Concepts Implemented

  • Text preprocessing
  • Tokenization using nltk.word_tokenize
  • Rule-based intent recognition
  • Regular expression matching
  • Conversational flow control

πŸ‘€ Author

Ayush D Aspiring Data Scientist & Machine Learning Engineer πŸ“§ ayushd172005@gmail.com

πŸ”— GitHub: https://github.com/Ayushd172005

πŸ“‚ Project Structure

πŸ“¦ Rule-Based-Chatbot
 ┣ πŸ“œ chatbot.py          # Main chatbot logic
 β”— πŸ“œ README.md           # Project documentation

About

Rule-Based NLP Chatbot is an AI-powered chatbot application that uses Natural Language Processing and predefined conversational rules to understand user queries and generate automated responses. The project demonstrates core NLP concepts such as text preprocessing, keyword matching, and intent-based interaction for creating simple conversation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages