put in function to categorize phrases