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