Text this: A Basis for Statistical Theory and Quantum Theory