Python functions to analyze bodies of text.