cleanup text analyzer