code: public static boolean containsWord(final String text, final String word) {
  
      if (text == null || word == null) {
        return false;
      }
      if (text.contains(word)) {
        Matcher matcher = matchText(text);
        for (; matcher.find();) {
          String matchedWord = matcher.group(0);
          if (matchedWord.equals(word)) {
            return true;
          }
        }
      }
      return false;
    }
docs: Returns true if given text contains given word; false otherwise.
  
  @param text string text to be tested.
  @param word string word to be tested.
  @return true if given text contains given word; false otherwise.