That's a fun bit. Someone did this with sentiment analysis on texts and clustering. They looked at how sentiment changed during the book (the curve) and then they clustered them to identify 6-12 archetypical story "curves".
There's a link to it from the actual article.