code: public void setStringPosException(
            String token, boolean regExp, boolean inflected,
            boolean negation, boolean scopeNext, boolean scopePrevious,
            String posToken, boolean posRegExp, boolean posNegation, Boolean caseSensitivity) {
      PatternToken exception = new PatternToken(token, caseSensitivity == null ? caseSensitive : caseSensitivity, regExp, inflected);
      exception.setNegation(negation);
      exception.setPosToken(new PosToken(posToken, posRegExp, posNegation));
      exception.exceptionValidNext = scopeNext;
      setException(exception, scopePrevious);
    }
docs: Sets a string and/or pos exception for matching tokens.
  @param token The string in the exception.
  @param regExp True if the string is specified as a regular expression.
  @param inflected True if the string is a base form (lemma).
  @param negation True if the exception is negated.
  @param scopeNext True if the exception scope is next tokens.
  @param scopePrevious True if the exception should match only a single previous token.
  @param posToken The part of the speech tag in the exception.
  @param posRegExp True if the POS is specified as a regular expression.
  @param posNegation True if the POS exception is negated.
  @param caseSensitivity if null, use this element's setting for case sensitivity, otherwise the specified value
  @since 2.9