Text this: Predictive functional control in autonomous underwater vehicles