add function to populate CategoryWord