/**
 * redpen: a text inspection tool
 * Copyright (c) 2014-2015 Recruit Technologies Co., Ltd. and contributors
 * (see CONTRIBUTORS.md)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cc.redpen.validator.sentence;

import cc.redpen.RedPenException;
import cc.redpen.model.Sentence;
import cc.redpen.validator.Validator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Validate input sentences contain more characters more than specified.
 */
final public class SentenceLengthValidator extends Validator {
    /**
     * Default maximum length of sentences.
     */
    @SuppressWarnings("WeakerAccess")
    public static final int DEFAULT_MAX_LENGTH = 30;
    private static final Logger LOG =
            LoggerFactory.getLogger(SentenceLengthValidator.class);
    private int maxLength = DEFAULT_MAX_LENGTH;

    @Override
    public void validate(Sentence sentence) {
        if (sentence.getContent().length() > maxLength) {
            addLocalizedError(sentence, sentence.getContent().length(), maxLength);
        }
    }

    @Override
    protected void init() throws RedPenException {
        this.maxLength = getConfigAttributeAsInt("max_len", DEFAULT_MAX_LENGTH);
    }

    /**
     * Set maximum length of sentence.
     *
     * @param maxLength max limit of sentence length
     */
    protected void setLengthLimit(int maxLength) {
        this.setMaxLength(maxLength);
    }

    protected void setMaxLength(int max) {
        this.maxLength = max;
    }

    @Override
    public String toString() {
        return "SentenceLengthValidator{" +
                "maxLength=" + maxLength +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SentenceLengthValidator that = (SentenceLengthValidator) o;

        return maxLength == that.maxLength;

    }

    @Override
    public int hashCode() {
        return maxLength;
    }
}

/**
 * redpen: a text inspection tool
 * Copyright (c) 2014-2015 Recruit Technologies Co., Ltd. and contributors
 * (see CONTRIBUTORS.md)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cc.redpen.validator.sentence;

import cc.redpen.RedPenException;
import cc.redpen.model.Sentence;
import cc.redpen.validator.Validator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Validate input sentences contain more characters more than specified.
 */
final public class SentenceLengthValidator extends Validator {
    /**
     * Default maximum length of sentences.
     */
    @SuppressWarnings("WeakerAccess")
    public static final int DEFAULT_MAX_LENGTH = 120;
    private static final Logger LOG =
            LoggerFactory.getLogger(SentenceLengthValidator.class);
    private int maxLength = DEFAULT_MAX_LENGTH;

    @Override
    public void validate(Sentence sentence) {
        if (sentence.getContent().length() > maxLength) {
            addLocalizedError(sentence, sentence.getContent().length(), maxLength);
        }
    }

    @Override
    protected void init() throws RedPenException {
        this.maxLength = getConfigAttributeAsInt("max_len", DEFAULT_MAX_LENGTH);
    }

    /**
     * Set maximum length of sentence.
     *
     * @param maxLength max limit of sentence length
     */
    protected void setLengthLimit(int maxLength) {
        this.setMaxLength(maxLength);
    }

    protected void setMaxLength(int max) {
        this.maxLength = max;
    }

    @Override
    public String toString() {
        return "SentenceLengthValidator{" +
                "maxLength=" + maxLength +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SentenceLengthValidator that = (SentenceLengthValidator) o;

        return maxLength == that.maxLength;

    }

    @Override
    public int hashCode() {
        return maxLength;
    }
}

Change default max_len from 30 to 100