YOUR LUCKY NUMBER CALCULATOR

WEB DESIGN / INTERACTION

A voice-activated interaction based on Annyang library for JavaScript.
The website can transfer a voice input by the users (how they are feeling today) into a numeric value (the lucky number). Demo video shows several stages including the input stage, output stage, error stage, etc.
The code itself is pretty simple and straightforward. I would like to explore the process of code trying to understand people’s emotion through pre-determined functions designed and written into it. Though knowing that the code is not capable of aligning each word to its meaning (even so, do the user really mean happy when they say the word “happy”? How can code detect subtle emotions when users say the word in different tones?), the action of attempting to do so itself is already a meaningful discussion. What is true emotion? What is attempted emotion? Can attempted emotion be “correct”? Or at least, how close can they be? When they are not attempting in the way that we think they should, what does that mean to be told by some lines of code that my happiness equal to the generated value?