Rule based Question Type classification system in Node.js