edit grammar in sets