def preserve_case(token):
    if token.doc.is_tagged is False:
        raise ValueError('token is not POS-tagged')
    return token.tag_ in {'NNP', 'NNPS'} or is_acronym(token.text)
Returns True if `token` is a proper noun or acronym, False otherwise.
dataset/ETHPy150Open chartbeat-labs/textacy/textacy/spacy_utils.py/preserve_case