1. A method comprising: accessing a first data object and a second data object of a data structure representing electronic content, the second data object being associated with the first data object; selecting, based on first content included in the first data object, a grammar rule included in a grammar, the grammar rule including a grammar rule item; based on second content included in the second data object, selecting the grammar rule item included in the grammar rule; and based on the second content and the grammar rule item, generating a portion of a textual representation of the electronic content.