Rewrite rule
From Wikipedia, the free encyclopedia
For rewriting rule in a formal grammar, see Production (computer science). For the use of "rewrite rules" in web servers, see rewrite engine.
| This article does not cite any references or sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. (December 2009) |
In linguistics, a rewrite rule for natural language (phrase structure rule, analog of production 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.
[edit] See also
| This linguistics article is a stub. You can help Wikipedia by expanding it. |