Rules, language and energy