adds word replacement to generator