Additional Language Features
Semantic grammar enables additional features that help users:
What is the lentgh of Kennedy? = lengthBecause we know from the grammar that a <ship-prop> is expected, the list of possible ship properties can be used as input to a spelling corrector algorithm to automatically correct the input.
What is the length of Kennedy? speed = What is the speed of Kennedy?If the input can be parsed as a part of the previous parse tree, the rest of the input can be filled in.