would anyone know code to do this
i have a file story.txt
on a script i want to enter any number 1 to x
x is the amount of words in the file
i will then be told the most frequently occuring x word phrase in the file and how many times that phrase occured
"this is a this is a test."
if i enter 1
if i enter 2
this is (2)
is a (2)
a this (1)
a test (1)
note the numbers in brackets always equals
number_of_words_in_file - desired_phrase_size + 1
is this too obscure?