<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def word_diff(a,b):
  'do diff on words but return character offsets'
  return translate_diff(a,rediff(splitpreserve(a),splitpreserve(b)))