terms function

Extract most likely terms