Remove words and leave behind punctuation. Count the average length of a text's sentences, plot it as a histogram, and receive other information. Inspired by Clive Thompson's tool.
This tool is similar to Thompson's, albeit with a few changes:
a) It automatically generates charts as an output, akin to this WIRED article.
b) It counts the number of words and the number of punctuations per sentence, and saves these data as an array.
c) Consolidates utility into a series of functions.
This is a command line tool, built with Python 3. Simply run app.py
from the command line and input a text to analyze. A paragraph from Joan Didion
and Moby Dick
are provided as test cases.