Lyrics Processing

Programming Module

Collect 20 text files, each with the lyrics to your twenty favourite songs. Then write a program to determine the top most frequent word in the songs. Do not include in your list words any "stop" words. Here is where you can find a list of common stop words for English: http://www.textfixer.com/resources/common-english-words.txt. Your songs can be in any language, just make sure to eliminate the list of stop words for the language of the songs.

Recommended approach to implement the program:

  1. Read the lyrics from a file and save them to a string list.
    • Read one word at a time.
    • If it is not a stop word, add it to list.
    • Return the list of words
  2. Sort the list.
  3. Count repeats while keeping track of most repeated word.