Well, that would also mean that if
men is among
the words to match, you'd count it twice if a word like
amendment appears in the text. Is that what you
want, because your description talks about words, but
your code just matches any (non-overlapping) substrings.
Abigail