In addition, we fire features on repeated words and part-of-speech tags in order to capture the fact that the repair is typically a partial copy of the reparandum, with possibly a word or two switched out.
we fire features on the distance to any duplicate words or parts-of-speech in a window around the current token, conjoined with the  word identity itself or its POS tag (see the Duplicate box in Figure 2).