automated grammar fusion