Rooting out word repetitions