This script lets you count literal repetition of words in a text.
-
Copy this code to a python editor or pull this repo from GitHub
-
Copy your text into Notepad (or similar) and save as a *.txt file
-
In the first few lines input the correct parameters for:
- filename: the name of the *.txt file (or the full path if the file is in a different folder than this script)
- phrase_length: the number of words in a row to check for
- threshold_count: the minimum number of times that the phrase has to occur to be part of the output
-
Run the code
-
Open the resulting *.csv file in Excel (or similar) and sort by column B