Fair is foul, and foul is fair
Ruby
Pull request Compare This branch is 3 commits ahead of thoughtbot:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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.