Grammar tuning