Techniques for analyzing literary texts