I am developing a chat bot with Node.Js. I am trying to find efficient way to parsing sentence.what do you think about humanity-> ba bla bla.what do you think about cats->I love catsRight now I am using the intersection technique, but I don't think it's efficient:var sentence = sentence.split(,)var inters = intersectionOfArrays(sentence, [what, do, you, think, about])if(inters.length >= 3) { //we have common words     keyword = extractionOfarrays(sentence,[what, do, you, think, about]) // get question word (humanity, cats etc)    if(keyword == cats)        responseToServer(I love cats)    if(keyword == humanity)        responseToServer(bla bla bla)}Is this technique bad? I want to answer thousands of questions so I need to know what is the best method for doing some AI magic.
Parsing sentences to create a chat bot
javascript;parsing;node.js