Added classify-keyword function.