Skip to content

Remove words and leave behind punctuation. Plot the results. Inspired by Clive Thompson's tool.

License

Notifications You must be signed in to change notification settings

nikomccarty/punctuation-tracker-2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

punctuation-tracker-2.0

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.

Instructions

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.

About

Remove words and leave behind punctuation. Plot the results. Inspired by Clive Thompson's tool.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published