change interface name from getCategories to categories to better align with the nltk categories method