Match the phrases to a category