1. a method for identifying a table of contents in a document, the method: comprising: extracting text fragments from the document; identifying (i) a substantially contiguous group of text fragments as table of content entries and (ii) a different group of text fragments as linked text fragments linked with corresponding table of content entries; and during the identifying, reducing a number of text fragments that are candidates for identification as linked text fragments based on at least one reduction criterion.