Skip to content

About

C programming chatbot using keyword matching, similarity-based suggestions, and file-based explanations.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

C Programming Chatbot

Project Overview

C Programming Chatbot is an academic project developed in C that provides explanations of common C programming concepts through an interactive command-line chatbot.

The chatbot uses a dictionary of C programming topics along with corresponding explanations stored in external text files. It can identify exact topic matches and provide suggestions when the user's input does not exactly match a topic.

Features

  • Interactive command-line chatbot
  • Provides explanations of C programming concepts
  • Keyword-based topic matching
  • Converts user input to lowercase
  • Splits input into individual words
  • Ignores common words during topic matching
  • Exact keyword matching
  • Similarity-based topic suggestions
  • Confirmation for uncertain topic matches
  • Random C topic suggestions when the input is not understood
  • File-based storage for topics and explanations
  • Continuous interaction until the user enters quit

How It Works

  1. Loads C programming topics from dict.txt.
  2. Loads the corresponding explanations from mean.txt.
  3. Accepts a question or topic from the user.
  4. Converts the input to lowercase.
  5. Splits the input into individual words.
  6. Removes common words that are not useful for matching.
  7. Checks for an exact topic match.
  8. If an exact match is not found, searches for a similar topic.
  9. Displays the explanation when a suitable topic is found.
  10. Asks for confirmation when the suggested match is uncertain.
  11. Provides random topic suggestions when no suitable match is found.

Project Files

C-Programming-Chatbot/
│
├── Chatbot2.C
├── dict.txt
├── mean.txt
└── README.md

About

C programming chatbot using keyword matching, similarity-based suggestions, and file-based explanations.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages