I have 10 text files, in each file i have a chapter from a book, i want to find the pair of words that appear the most of the time together in a line i.e:
chapter1:
hello world good boy green sun
good green boy sun world hello
chapter2:
chapter3:
.....etc
Output wanted for chapter1:
hello world (alphabet order)