Speaker interactions in Hamlet
hamlet.Rd
Speaker interactions in Shakespeare's Hamlet. Two characters are recorded as interacting if one speaks directly after another within a scene of the play. X speaking after Y is counted the same as Y speaking after X. Data has been extracted from the XML version of the New Folger Library Edition of Hamlet (a conflated text of the play) following a method demonstrated in Karsdorp et al.'s Humanities Data Analysis.
Format
hamlet
A data frame with 140 rows and 5 columns
- s1
first speaker in interaction, alphabetically
- s2
second speaker in interaction, alphabetically
- act
act number of the play in which the pair appears
- scene
scene number of the play in which the pair appears
- turns
number of times either speaks after the other in that act and scene
Source
https://shakespeare.folger.edu/shakespeares-works/hamlet/download/. The New Folger Shakespeare is available under a CC-BY-NC 3.0 license. The algorithm for extracting interactions is based on Folgert Karsdorp et al., Humanities Data Analysis: Case Studies with Python (Princeton University Press, 2021), chap. 2.