Text this: Progressive active inference method of protocol state machine