1. A method of history tracking edits to an electronic document, wherein said electronic document is a speech-based document comprising one or more sections of text derived from speech dictated by a user, said method comprising: storing, in a data structure, at least one first speech attribute associated with a section of text in said speech-based document, said at least one first speech attribute comprising information related to a first edit performed within said section of text, wherein the data structure comprises a tree-result representation; detecting a second edit being performed within said section of text; and updating the data structure to include information related to said second edit detected within said section of text, wherein updating the data structure comprises adding at least one second speech attribute to the tree result representation, wherein the at least one second speech attribute is related to the second edit detected within said section of text.