folgerhs: Toolset for Folger Shakespeare Library's XML annotated plays

[ gpl, library, program, text ] [ Propose Tags ] [ Report a vulnerability ]

Toolset for Folger Shakespeare Library's XML annotated plays


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.3.0.1, 0.3.0.2
Dependencies array, base (>=4.7 && <5), containers, folgerhs, gloss, optparse-applicative, xml [details]
License GPL-3.0-only
Copyright 2017 Uma Zalakain
Author Uma Zalakain
Maintainer uma@gisa-elkartea.org
Category Text
Home page https://github.com/SU-LOSP/folgerhs#readme
Source repo head: git clone https://github.com/SU-LOSP/folgerhs
Uploaded by umazalakain at 2018-01-25T17:02:37Z
Distributions NixOS:0.3.0.2
Executables folgerhs
Downloads 2699 total (17 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-01-25 [all 1 reports]

Readme for folgerhs-0.3.0.2

[back to package description]

This library parses the TEI-encoded Shakespeare plays published by the Folger Shakespeare Library. It also demonstrates different use cases for stage data by providing some example applications.

You can download individual plays here and the complete set here.

The toolset can be installed using cabal or stack:

cabal install folgerhs
stack install folgerhs

Once installed, it can be used as a library (documentation needs yet to be written) or as an application.

Stage animation

The current speaker is surrounded by a white border, arrows going up represent characters leaving the stage, arrows going down represent characters entering it. The animation can be stopped using the space bar, you can advance it by using the right arrow and rewind it using the left one.

$ folgerhs animate TN.xml

Part of Twelfth Night

Per-line character presence

With characters as columns and lines as rows, a line-by-line breakdown of speakers and characters on stage.

$ folgerhs presence R2.xml --without-unnamed | head -n 2
Act.Scene.Line,RichardII,Gaunt,HenryIV,Mowbray,DuchessOfGloucester,LordMarshal,Aumerle,Green,Bagot,Bushy,York,Queen,Ross,Willoughby,Northumberland,Hotspur,Berkeley,Salisbury,WelshCaptain,BishopOfCarlisle,Scroop,Gardener,Fitzwater,Surrey,AbbotOfWestminster,DuchessOfYork,Exton,Groom,Jailer
1.1.1,Speaker,Present,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent,Absent

Per-character speech ratio

$ folgerhs speakers Rom.xml | head -n 5
19.38%   Romeo
14.03%   Juliet
10.70%   Nurse
7.49%    Benvolio
7.37%    Mercutio