Analyzing Rap Lyrics Using Python
summary
Counts profanity to approximate sexism using a scraped Rap Genius corpus of 2700 songs, gathered for 32 artists by dumping HTML with a Firefox plugin to dump HTML since Ajax pagination blocks simple requests. Parsing uses BeautifulSoup and Pattern plus regex to extract lyrics and count the b‑word; result shows an average two b-words per song, surprising low rates for Jay‑Z and Kanye and very high rates for Little John. A proximity n‑gram test for sexist+violent co‑occurrence is underway.
AI-written summary · about
chapters (11)
- 0:00Start
- 0:08WARNING
- 3:50WEST COAST
- 6:34DIRTY SOUTH
- 10:2599 PROBLEMS, AUTOSCROLL IS FIRST ONE
- 13:15TURNING HTML INTO LYRICS
- 14:04USING PATTERN
- 15:05BEST RAPPERS: 1 PER SONG
- 24:28IN DEFENSE OF SLANG
- 25:56BIGGIE TOP 20
- 26:11EMINEM TOP 20
related talks
27mPythonic Metal
25mDIY Data Visualization in JavaScript while Stanning BTS
23mIdentifying Repetitive Songs using LZ Compression
30mAre we singing sillier?
18mBuilding a Gendered Dictionary
15mTalk Less, Graph More: NLP, Networks and Hamilton Musical
41mDo Angry People Have Poor Grammar?
01h 51mNatural Language Processing in Python
