def generate_sonnet(starting_words):
    sonnet = []
    lx = generate_line(starting_words)
    sonnet.append(lx)
    if "natural" in rhyme_scheme:
        rs = rhyme_scheme.split('_')
        line_count = int(rs[1])
    else:
        line_count = len(rhyme_scheme)
    for i in range(line_count-1):
        ly = generate_line(lx[-2:])
        sonnet.append(ly)
        lx = ly
    return sonnet
dataset/ETHPy150Open rossgoodwin/sonnetizer/sonnetizer_n.py/generate_sonnet/original