added basic text analysis