def load_dictionary(file_name=None):
    """ Return a set of uppercase words from file, splitting on \\n."""
    dict_name = file_name or 'dictionary.txt'
    dict_words = set()
    with open(dict_name) as fo:
        for word in fo.read().split('\n'):
            dict_words.add(word.upper())
    return dict_words
