Text this: Adaptation in stochastic environments