Inspiration

I was inspired by androids and artificial intelligences from science fiction shows and movies.

What it does

While SPIRIT cannot reply yet, it can begin to guess the basic moods of the user by their word choice. As the user interacts more with the system, it's knowledge of which words apply to different basic moods will increase and help better determine the user's mood.

How I built it

SPIRIT was coded in Python. I had spent some time the week before beginning to code thinking about what functions would be needed to help SPIRIT find the user's mood and respond in kind.

Challenges I ran into

I ran into an issue briefly where a word was copied into the file of words relating to sadness hundreds of times, causing the program not to work. Once that file was replaced and the code that had caused that error initially was fixed, it was only a matter of fixing a few syntax errors.

Accomplishments that I'm proud of

I'm proud of the fact that SPIRIT can find the percentage of words that relate to a certain mood and copy the appropriate words into a separate file, where it can access them the next time it starts.

What I learned

I learned how the best ways to troubleshoot are when encountering errors in your code.

What's next for SPIRIT

I plan to continue with my goal to make SPIRIT understand which words belong in different parts of a sentence and be able to respond with the same mood as that of the user.

NOTE: For "Try it Out section", when the link is pressed, it will bring you to a file tree. SPIRIT is inside the chatbot folder, near the top.

Built With

Share this project:

Updates