shakespeare: Structure and Tools for Text Analysis of Shakespeare's Plays

Description Details Author(s) References

Description

This package contains classes and functions to support text analysis of Shakespeare's plays. The package is based on the XML encoding of the plays created by Jon Bosak and available, for example, from http://www.ibiblio.org/xml/examples/shakespeare/.

Details

The package also is an example of an interface from R to Python using the XR interface structure described in the book Extending R.

The structure and tools occupy a middle ground between the highly recursive format of XML and the unstructured text typically used in Python natural language tools. Functions and classes in the package “flatten” the XML structure to make analysis in R easier, while retaining structural information about acts, scenes and speakers.

Author(s)

John M. Chambers

References

Chambers, John M. (2016) Extending R, Chapman & Hall/CRC.


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