I seriously doubt this can be automated in any way. Recognizing sentences and parsing their meaning goes far beyond simple scripting and into artificial intelligence.
Take, for instance, a text written in first person:
It was a dark night, I could hardly see her face, and I wondered what she thought.
It has no quotes, it includes "I" and it ends with "she thougt"...
|