a few text analysis methods