def word_is_valid(word, min_word_length, max_word_length):
    """Checker for word validity.

    Args:
        word: Processed word from DeReWo text file
        min_word_length: Minimum length per word
        max_word_length: Maximum length per word

    Returns:
        True if word is valid, False otherwise
    """
    # passwords must suit international keyboard layouts,
    # so discard words with special characters including 'ß', 'ä' etc.
    if not word.isalnum():
        return False

    # word length must be in boundary
    if not min_word_length <= len(word) <= max_word_length:  # noqa: WPS508
        return False

    return True