Chapter 4 text analyzer