added get_frequent_word and get_frequent_phrase function