Grammar in Practice: A Foundation