implements phrase_extract