Improve a grammar