finding repeated phrases in the text.
The text of a chapter will average about 10,000 words, however, I could
reduce the size of the files if it is better to do so.
So the idea is to search through a string and find repeats of any 3 or 4 word group.
So if the author has repeated the phrase "then I went" 6 times in the text, then this would be found and highlighted.
I am not sure where to start with this :o
Maybe it is best to start by converting the string into an array of all the words?
Expand|Select|Wrap|Line Numbers
- $word_list = explode(" ", $text);
The other thing I want to provide is a list of all the words used ( maybe I will exclude words like and, the, a, etc) and the number of times they are used.
Any good ideas on how I should proceed ?
Thanks