Skip to content

Analysis of Billboard Top 100 song lyrics in the US from 1958 - 2021. Sentiment analysis and lexical diversity analysis.

Notifications You must be signed in to change notification settings

louismagowan/lyrics_analysis

Repository files navigation

Contributors Forks Stargazers Issues LinkedIn

Song Lyrics Over Time: Lexical Diversity and Sentiment Analysis in R

Using Quanteda, IBM Tone Analyzer and ggplot2 to analyse top 100 song lyrics in the US from 1958.

Data Studio Dashboard · Request Feature · Report Bug

Table of Contents
  1. About The Project
  2. Getting Started
  3. Roadmap
  4. Contact
  5. Acknowledgments

About The Project

Uses lyrics from Billboard Top 100 songs from 1958 in the US to do sentiment and lexical diversity analysis. Aims to determine if/how song lyrics have changed over time. Lexical diversity analysis is conducted using the Quanteda package, with the TTR and Maas measures.

Sentiment analysis run using IBM's tone analyser.

Songs appear to have become less joyful, angrier and simpler.

To analyse / play about with the data yourself, please check out the Data Studio dashboard.

(back to top)

Built With

(back to top)

Getting Started

Make sure you've done this setup before you try to run the code yourself.

Prerequisites

Install Quanteda packages in R environment.

  • R

    install.packages("quanteda")
    install.packages("quanteda.textstats")
    install.packages("quanteda.textmodels")
  • IBM Cloud Account Create a free IBM Cloud Account and use the $200 USD credit they give you to create a Tone Analyzer instance, if you want to run the sentiment analysis yourself. IBM Tone Analyzer

(back to top)

Roadmap

  • Genre-level analysis
  • Analysis of more songs, top 100 in other countries
    • Country-level comparison

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Contact

LinkedIn- Louis Magowan

Project Link: https://github.com/louismagowan/lyrics_analysis

(back to top)

Acknowledgments

(back to top)

About

Analysis of Billboard Top 100 song lyrics in the US from 1958 - 2021. Sentiment analysis and lexical diversity analysis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages