def load_wordlist(filename):
    """
    filename: string, the path of a file to be read in containing the list of
    every word to be used for the spellchecker
    returns: list of strings, a list of every string contained in the
    file, stripped of newlines
    """
    with(open(filename, 'r')) as f:
        content = [x.strip('\n') for x in f.readlines()]
    # content is now a list of every word in words.txt
    print("Loaded " + str(len(content)) + " words")
    return content