def generate_line(prior_words):
    line = []
    sc = 0
    word_y = content_model.generate(1, prior_words)
    word_y = word_y[-1]
    line += [prior_words[-1], word_y]
    sc += sylcount(word_y)
    # maybe tweak this number...
    while sc < 10:
        word_z = content_model.generate(1, line[-2:])
        word_z = word_z[-1]
        line.append(word_z)
        sc += sylcount(word_z)
    return line[1:]
dataset/ETHPy150Open rossgoodwin/sonnetizer/sonnetizer_n.py/generate_line/original