This Python program keeps a running count of each word in a given text and exports the result to a .csv file containing two columns: unique words and their numerical frequency. This program was utilized in a study to help determine current popular topics in the academic journal Progress in Physical Geography
. An example of the .csv result is shown below with the source code afterwards.
Input example text to be analyzed:
This is text that could be given to the word frequency analyzer script. The script will filter out all information other than complete words, then count each word by the number of times they appear. The output table will show each unique word with its frequency count.
Output example .csv file (sorted):