def get_split_ind(seq, N):
sLen = <NUM_LIT:0><EOL>for (word, ind) in zip(seq, list(range(len(seq)))):<EOL><INDENT>sLen += len(word) + <NUM_LIT:1>  <EOL>if sLen>=N: return ind<EOL><DEDENT>return len(seq)<EOL>
*seq* is a list of words.  Return the index into seq such that::

    len(' '.join(seq[:ind])<=N