Shakespeare Plays
Every Shakespeare play in one free CSV download: 39 plays across the First Folio's three genres (17 comedies, 11 tragedies, 11 histories by test), one row per play, from Wikipedia's Shakespeare bibliography with text metrics computed fresh from the public-domain Moby complete works at MIT. Rows carry the genre, the year-written range, the first publication with a First_Folio_Debut flag (Macbeth yes, Hamlet no with its 1603 bad quarto, and an honest NA where the source leaves the cell empty), a performance note and a clipped synopsis, then the computed numbers: total dialogue words (Hamlet is the longest play by test at over 30,000), numbered verse lines, distinct speaking roles, and the largest role with word count and share of the play. Hamlet the role carries 39 percent of Hamlet the play, and Iago out-talks Othello in his own tragedy, both by test; comedies run measurably shorter than tragedies and histories. The Two Noble Kinsmen and Edward III sit outside the Moby corpus and carry NA text columns honestly. Open to analysis of genre word budgets, role concentration, and the arc of a playwright's career. Ten acceptance tests, one enforcing the 25 percent fill rule on every column.
39 rows
1 file
last pulled 2026-11-12
Where would you start?
Pick a question, or ask your own and
answer it; publish what you find as an insight. The same question
can carry many insights from different angles.
- Which plays have the largest casts relative to length?
- How do word counts differ across comedies, histories, and tragedies?
- Which plays give their title characters the most or least lines?
Shakespeare Plays
39 rows × 15 columns
PlayGenreYear_Written_StartYear_Written_EndFirst_PublicationFirst_Folio_DebutPerformance_NoteSynopsisTotal_WordsTotal_LinesSpeaking_RolesLargest_RoleLargest_Role_WordsLargest_Role_PctPlay_URL
What is the Shakespeare Plays dataset?
Every Shakespeare play in one free CSV download: 39 plays across the First Folio's three genres (17 comedies, 11 tragedies, 11 histories by test), one row per play, from Wikipedia's Shakespeare bibliography with text metrics computed fresh from the public-domain Moby complete works at MIT. Rows carry the genre, the year-written range, the first publication with a First_Folio_Debut flag (Macbeth yes, Hamlet no with its 1603 bad quarto, and an honest NA where the source leaves the cell empty), a performance note and a clipped synopsis, then the computed numbers: total dialogue words (Hamlet is the longest play by test at over 30,000), numbered verse lines, distinct speaking roles, and the largest role with word count and share of the play. Hamlet the role carries 39 percent of Hamlet the play, and Iago out-talks Othello in his own tragedy, both by test; comedies run measurably shorter than tragedies and histories. The Two Noble Kinsmen and Edward III sit outside the Moby corpus and carry NA text columns honestly. Open to analysis of genre word budgets, role concentration, and the arc of a playwright's career. Ten acceptance tests, one enforcing the 25 percent fill rule on every column.
How big is the Shakespeare Plays dataset?
39 rows in one CSV file, with 15 columns in total: Play, Genre, Year_Written_Start, Year_Written_End, First_Publication, First_Folio_Debut, Performance_Note, Synopsis, Total_Words, Total_Lines, Speaking_Roles, Largest_Role, Largest_Role_Words, Largest_Role_Pct, Play_URL.
Where does the data come from?
It is built by programmatically scraping en.wikipedia.org, last pulled on 2026-11-12. Datasets are versioned; older versions stay downloadable.
Is the dataset free to download?
Yes. Every CodeSights dataset is completely free as a CSV download; a free account is all it takes. Anyone can preview the data without signing in.
Can I see the code that built this dataset?
Yes. The exact Python scraper that built it is viewable on the dataset page by any signed-in member, so every number is reproducible.
Can the data contain errors?
Automated scraping leaves room for error and the underlying sources change over time, so no version is guaranteed accurate or complete. If a number matters, verify it against the original source.
Browse every free dataset on CodeSights