1. A computer-implemented method comprising: examining a document represented in a markup language to identify acronyms contained therein, wherein the examining comprises: performing a first stage comprising: parsing the document using a markup language parser to identify a text node; identifying an acronym in the text node; and performing a second stage after the first stage, the second stage comprising: transforming the document represented in the markup language into plain text by removing markup language tags from the document; identifying a further acronym in the plain text, the further acronym being in addition to the acronym identified in the first stage; retrieving portions of the document for the respective identified acronyms, wherein each of the portions is located within the document proximate the respective one of the identified acronyms; determining one or more expansions of each of the identified acronyms based on the corresponding retrieved document portion; determining a ranking for each expansion based on attributes of the document; and selecting expansions for the identified acronyms using the determined rankings.