Play-class: A Class for the Python/XML Version of a Play

Description Fields

Description

The plays are parsed from the set of XML files into Python "ElementTree" objects. An R object from class "Play" has a proxy to the parsed play plus fields for the names of the personae and a proxy to a Python list of all the speeches.

Fields

parse

The Python parse of the XML file, proxy class for "ElementTree".

personae

Character vector of the descriptions of the personae in the play. Note that this comes from the play itself. The names of speakers usually match one of the personae in the grep() sense, but not always.

title

The character string title, as found in the XML representation.

speeches

Proxy for Python list (class "SpeechList") of all the speeches (each element an object of Python class "Speech"). This is precomputed when the "Play" object is initialized; the speeches list tends to be input to many of the interesting analyses. If you want to suppress precomputation, explicitly set the field to NULL.

key

The character string identifying the play in the table and also the name of the original XML file.


johnmchambers/shakespeare documentation built on May 19, 2019, 5:16 p.m.