Open compare_word_by_text() for bsearch() in gen_IM_data.