text_algorithm