Processes text and returns an array of keywords