def load_words(path):
    """
    Load a list of words from a text file.

    Args:
        path - path to a file containing line separated words
    Returns
        List of strings

    """
    with open(path, 'r') as fh:
        words = [w.strip() for w in fh.readlines()]
        if len(words) == 0:
            raise EOFError("No text found in file")
        return words