The Calzone anomaly - Parks and Recreation by Tuan Pham

For those who have not watched "Parks and Recreation" the TV show, Ben, one of the main characters in the show, has an obsession with calzone (the food).

I obtained the transcripts of the show across all seasons from Springfield! Springfield! (https://www.springfieldspringfield.co.uk/) to count occurrences of the word "calzone", along with some other words that are related to other main characters' favorite food. For example, I also included "pancake" & "waffle" because they're Leslie's favorite, and "steak" & "beef" because Ron's obsessed with meat.

In the top panels of the visualization, I plotted the counts of these words across all seasons and episodes, with additional manual annotations of specific episodes in Inkscape.

To understand how unusual these words are, I also compared their relative frequency in the show to their baseline expected frequency (using https://github.com/rspeer/wordfreq).

The bar plot at the bottom suggests that "calzone" is unusually highly used in the show, more than 350 times more in the English language! Next in line is the word "waffle", around 60-70 times!

------------------------------------------------------------------------------------

The code is available here
- Repository: https://codeberg.org/penguinsfly/tv-mania/src/branch/main/pandr
- Jupyter notebook: https://penguinsfly.codeberg.page/tv-mania/pandr/food-words.html

Data at https://www.springfieldspringfield.co.uk/episode_scripts.php?tv-show=parks-and-recreation, scraped with https://codeberg.org/penguinsfly/springfield-scraper. Word frequency comparison is with https://github.com/rspeer/wordfreq.

Data visualized with:
- Seaborn
- Inkscape

#