code: public boolean match(String word) {
          int flags = 0;
          if (ignoreCase) {
              flags = flags | Pattern.CASE_INSENSITIVE;
          }
          return Pattern.compile(pattern, flags).matcher(word).find();
      }
docs: Does the given word match?
  
  @param word The word
  @return True if it matches the inflection pattern