in reply to Re^2: help with comparing two arrays of phrases
in thread help with comparing two arrays of phrases
You need to look closely at your code and consider carefully what you are doing. Your code in no way matches up with your description.
And you then test if each word in the first phrase contains the whole of the second phrase.
Do you realise that if you omitted those clauses, it would just loop to the next iteration anyway?
So what is their purpose?
The bottom line is, with the disparity between your written description and you code, and a bunch of redundant stuff in your code, I cannot work out what you are actually trying to achieve, so I cannot really suggest anything.
First decide and write down what you actually want to do; then try to write code that matches that description; and then, if it doesn't do what you want, come back and ask again.
|
|---|