Grammar consolidates redundant clause endings