/ improve writing generator

improve writing generator