def is_uppercase_word(word_token):
    return len(word_token) > 1 and \
           sum(c.lower() != c for c in word_token) == len(word_token)
dataset/ETHPy150Open wiki-ai/revscoring/revscoring/features/wikitext/datasources/tokenized.py/is_uppercase_word/original