<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _kill_word(text, pos):
 """ Kill from pos to the end of the current word, or if between words, to the end of the next word. Word boundaries are the same as those used by _forward_word. """

    text, end_pos = _forward_word(text, pos)
    return text[:pos] + text[end_pos:], pos