1. A non-transitory computer readable medium encoded with program instructions which are executed by a computer to provide a method of generating internal citations for a formatted document, the instructions comprising the steps of: a) obtaining graphic representations of each page of the formatted document, wherein the formatted document is a patent document, b) optically recognizing characters on each page of the formatted document, and determining the position of the characters on each page, c) obtaining a separate and distinct text version of the formatted document from a source separate and distinct from the formatted document, d) parsing text from the text version, the parsed text being separate and distinct from the recognized characters, e) correlating the recognized characters with the parsed text to determine an internal citation for each sentence, wherein the internal citation identifies the document and a citation location inside the document where the corresponding sentence is found, and f) creating a data structure storing data determined in the correlating step, wherein the citation location comprises: i) an internal citation column number; and ii) an internal citation line number.