added struct word_type and fixed searchsentence_struc issue