Rewrite Rule

In linguistics, a rewrite rule for natural language (phrase structure rule, analog of production rules in formal grammars) in generative grammar is a rule of the form A → X where A is a syntactic category label, such as noun phrase or sentence, and X is a sequence of such labels and/or morphemes, expressing the fact that A can be replaced by X in generating the constituent structure of a sentence.

Example:

S → NP VP
Which means: Sentence consists of Noun Phrase followed by Verb Phrase.

Rewrite rules underlie rewriting systems; there are many different varieties of rewriting systems that are commonly studied.

Read more about Rewrite Rule:  See Also

Famous quotes containing the word rule:

    Fatalism, whose solving word in all crises of behavior is “All striving is vain,” will never reign supreme, for the impulse to take life strivingly is indestructible in the race. Moral creeds which speak to that impulse will be widely successful in spite of inconsistency, vagueness, and shadowy determination of expectancy. Man needs a rule for his will, and will invent one if one be not given him.
    William James (1842–1910)