<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _remove_word(completer):
 """ Used to remove words from the completors """

    def inner(word: str):
        try:
            completer.words.remove(word)
        except Exception:
            pass
    return inner