implement available_phrases
revise available_phrases
write test codes for phrase_extract.py