Text this: A theory of stress and accent