helper method to get all keywords of a given type for matching