def is_proper_noun(node):
    """
    There are two types of proper nouns: the singular "NNP" and the plural
    "NNPS". This function checks whether a node's tag is either of these.
    """
    return node.label() == 'NNP' or node.label() == 'NNPS'