1. A method for determining segments in a document, comprising: when the document is in a common representation format that supports discovery of internal structure of the document, parsing the document, by a parser implemented by a computer, to provide a document model; and analyzing the document model, by a structure analyzer implemented by the computer and in communication with the parser, based on at least one structure-dependent function to provide a plurality of segments.