Text this: Inverse reinforcement learning for discrete-time nonlinear systems