Text this: Some Formal Considerations on the Generation of Hierarchically Structured Expressions