Let’s understate the import of this blog by asking one question: What is grammar? Simply and redundantly put – grammar is how language works.
One simplistic rule of thumb I like to use: Are your ducks in a row? If they are, then, presumably, logic is at work. At least some sort of logic.