in reply to Re^2: Most frequent words in Gone with the Wind, help!
in thread Most frequent words in Gone with the Wind, help!

Actually Corion asked a few things, like identifying the book source, for example: http://gutenberg.net.au/plusfifty-a-m.html#mitchellm

And extracting 2 parts, like for example:

Scarlett turned away from Mammy with studied nonchalance, thankful tha +t her face had been unnoticed in Mammy's preoccupation with the matte +r of the shawl. "No, I want to sit here and watch the sunset. It's so pretty. You run +get my shawl. Please, Mammy, and I'll sit here till Pa comes home."

As you can see, Spoken text starts and ends with normal double quotes (where you can sometimes also have other quotation marks).

Now take your course material, and write up a simple loop around these 2 paragraphs (that you put into a text file).

Once you have a loop, post it here, and we can give some ideas on how to improve the loop. Good luck!

EDIT (addendum)

I will be honest here: Unless you find a source that is like a screen play (a says: "..." b says: "...") it will be extremely hard to identify WHO is saying something, as that has a few rules. Last person that does an action is the one that is talking, unless, the "quoted text" is followed by the word said. However, this next example falls totally outside that:

Mammy waddled back into the hall and Scarlett heard her call softly up + the stairwell to the upstairs maid.

Guess who is the next one to talk? Right, Mammy... So in order to have it right, you will need lexical analysis (for which there are perl modules, but I think too complex for beginners?)

screenplay... hint hint...