def plagiarism_syn_replace(sonnet):
    for i in range(len(sonnet)):
        if any(sonnet[i] == vw[j:j+len(sonnet[i])] for j in xrange(len(sonnet[i]) + 1 - len(vw))):
            sonnet[i] = line_syn_replace(sonnet[i])
        else:
            pass
    return sonnet
dataset/ETHPy150Open rossgoodwin/sonnetizer/sonnetizer_n.py/plagiarism_syn_replace/swapped operands of `-`