Approaches to analyzing a text