Text this: A mathematical perspective on hypothesis-driven model construction