1. A computer-implemented method, comprising: obtaining a script document comprising script elements; assessing a layout of the script document, the layout comprising 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, the preliminary identification indicating for each respective script element a type of script element from among a plurality of different types of script elements; and assessing the plurality of the script elements using a finite state machine to determine an accuracy of the preliminary identification, the finite state machine comprising 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 the predefined model being configured to specify a predefined plurality of allowed transitions between the states such that 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 the script document, the plurality of the script elements being assessed by at least: applying the finite state machine to a sequence of the plurality of script elements of the script document to determine whether the sequence of the plurality of 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, indicating that the preliminary identification of the script element is incorrect or changing the preliminary identification of the script element.