Text this: A Modular Calculus for the Average Cost of Data Structuring