Hello,


I have this program where the user finds plays the game to find combinations - now what I need the computer to do is have the answers so that when the user clicks on a combination the computer will know whether or not it is a combination?

Now what I mean by combination is:
Example:

I have a whole database of words/sentences.
All I need the computer to do is tell me how many times each word appear with the other word in the same line of text (.txt file)

So lets say I have a sentence like this:
Jake and Alexa went to the movies.
Sam and Alexa are siblings to Jake
---------------------------------------
So "Alexa and Jake" appeared in the same sentence 2 times
Except I need it to get all the other words also and tell me how many times they appear together in 2 word combinations.
Can this even be done?

Thank you for any suggestions info or code!
Stilekid007