Fixed handling of grammar alternates

Signed-off-by: Collin Baker <chbaker0@gmail.com>