def acceptable_word(word):
    """Checks conditions for acceptable word: length, stopword."""
    stopwords=[]
    accepted = bool(2 <= len(word) <= 40
        and word.lower() not in stopwords)
    return accepted