text analysis class