Hmm, when there's a sentence (or more than one) that include "I", sans quotes of any types this might not be so hard. The program would have to check it against the entire paragraph though to ensure it is not part of a conversation.
Also, if a sentence ends in something like "...s/he/<character name> thought.", and again that sentence is not detected within quotes, chances are it could be internal dialogue.
A harder one to catch is this sort of situation: ...That's the sixth servent he's sent screaming so far today., where that was the end of some internal dialogue. There may or may not be preceding internal dialogue with that, but I doubt it would be so simple for an automatic script or program to catch.
|