What is text analysis and how does it work?