import codecs


def is_nationality(test):
    """Test if a word is a nationality adjective"""

    with codecs.open("nationalities.txt", "r", "utf-8") as f:
        nationalities = list(map(lambda x: x.strip().lower().split(',')[0], f.readlines()))

    # First check the list. If not guess.
    if test in nationalities:
        return True
    else:
        return False