Text this: Structural modelling and optimization