Text this: Rationality, foraging, and associative learning