def gen_wordlist(wordfile):
    """Generates a list of words given a line-delimited wordfile."""
    # read text in
    with open(wordfile,"r") as fil:
        text=fil.read()
    # Split on lines but not spaces because of multiword phrases
    return text.split("\n")