Text this: Theory and analysis of structure