def plagiarism_check(sonnet):
    for line in sonnet[:]:
        if any(line == vw[i:i+len(line)] for i in xrange(len(vw) - len(line) + 1)):
            sonnet.remove(line)
        else:
            pass
    return sonnet
dataset/ETHPy150Open rossgoodwin/sonnetizer/sonnetizer_n.py/plagiarism_check/original