1. A computer-implemented method, comprising: performing, by one or more computers: obtaining a script document comprising script elements; assessing a layout of the script document, wherein the layout comprises a physical location of the script elements within the script document. determining a preliminary identification of a plurality of the script elements based at least in part on the physical location of the script elements within the script document, wherein the preliminary identification indicates for each of the plurality of the script elements a type of script element from among a plurality of different types of script elements; and assessing each of the plurality of the script elements using a finite state machine to determine an accuracy of the preliminary identification, wherein the finite state machine comprises a predefined model having a predefined plurality of states each representing a different script element identifier for a different one of the plurality of different types of script elements, and wherein the model further specifies a predefined plurality of allowed transitions between the states such that for all of the plurality of different types of script elements the model defines which of the plurality of different types of script elements are allowed to immediately precede each particular type of script element and which of the plurality of different types of script elements are allowed to immediately follow each particular type of script element in a script document, wherein said assessing the plurality of the script elements using the finite state machine comprises: applying the finite state machine to a sequence of the preliminarily identified script elements of the script document to determined whether the sequence of preliminarily identified script elements follows the allowed transitions defined in the finite state machine; and for one or more of the plurality of the script elements determined to not follow the allowed transitions defined in the finite state machine, indicate that the preliminary identification of the script element is incorrect or change the preliminary identification of the script element.