Skip to main content
izak

philosophy word counts

Top 20 Word Occurance in...

These web pages are generated using Python.

You can view the python code at the bottom of this page ↓

The data source Here

This started as a project to find the mode of the words in Hegel's Phenomenology of Spirit.

I realized I could generalize it to the whole dataset. It got out of hand, but I retamed it.

My Python CsvFigs class uses this flow:

CSV --> Pandas DataFrame --> Plotly GraphObject --> text file

For the DataFrame, I use the collections module from the Python standard library to quickly get the counts for each word from the list of sentence strings.

Then, the imported NLTK module determines whether one of the top 20 occuring words is a noun or a verb to color the bar red in Plotly.

Visit the collection at philosophyplot.github.io, or preview below.

Python code