Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fair is foul, and foul is fair
branch: master

This branch is 3 commits ahead of thoughtbot:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.rspec
Gemfile
Gemfile.lock
README.md
macbeth_analyzer.rb
output.md

README.md

Shakespeare Analyzer

The Shakespeare Analyzer downloads and parses the XML-encoded version of Macbeth, found here: http://www.ibiblio.org/xml/examples/shakespeare/macbeth.xml

Sample usage/output (using made-up numbers):

$ ruby macbeth_analyzer.rb
  543 Macbeth
  345 Banquo
  220 Duncan
  (etc.)

TODO

  • Find a way to attribute lines for "ALL" to each speaker on the stage.
Something went wrong with that request. Please try again.