Text this: A variational approach to structural analysis /