Text this: A Modular Algorithm for Dynamic Design of Large-Scale Experiments