Analysis and Comparison of Texts