public function setMinWordLength($length)
{
if (!is_int($length) || $length < 1) {
throw new \InvalidArgumentException('Expected positive integer');
}
$this->setOptionValue(self::OPTION_MIN_WORD_LENGTH, $length);
$this->setParameter(self::PARAMETER_WORD_CACHE, null);
$this->minWordLength = null;
$this->maxWordLength = null;
return $this;
}