Text this: Nonlinear filtering and optimal phase tracking