Text this: Adaptive processing of sequences and data structures