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.
- 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
- Loads C programming topics from
dict.txt. - Loads the corresponding explanations from
mean.txt. - Accepts a question or topic from the user.
- Converts the input to lowercase.
- Splits the input into individual words.
- Removes common words that are not useful for matching.
- Checks for an exact topic match.
- If an exact match is not found, searches for a similar topic.
- Displays the explanation when a suitable topic is found.
- Asks for confirmation when the suggested match is uncertain.
- Provides random topic suggestions when no suitable match is found.
C-Programming-Chatbot/
│
├── Chatbot2.C
├── dict.txt
├── mean.txt
└── README.md