change text_type --> public_type
add public_func
update file words_clear.py