Explaining the language in Natural Language
We begin by defining the lexicon, or a list of terms that are permitted. The words are categorized into the lexical categories that dictionary users are familiar with: nouns, pronouns, and names to denote things; verbs to denote events; adjectives to modify nouns; adverbs to modify verbs; and function words: articles (such as the), prepositions (in), and conjunctions to modify verbs (and). A tiny vocabulary for the language
is shown below:
The terms RelPro, Prep, and Conj stand for relative pronoun, preposition, and conjunction, respectively. Each category’s probability adds up to one.
Each category ends with… to indicate that the category contains further terms. It is impossible to list all the terms for nouns, names, verbs, adjectives, and adverbs, even in theory. Not only do each class have tens of thousands of members, but new ones are continually being introduced, such as iPod or biodiesel. These five types of classes are referred to as open classes. With a little more effort, we could have listed all the terms in the categories of pronoun, relative pronoun, article, preposition, and conjunction. Closed courses are those that have a limited amount of words (a dozen or so). Closed classes evolve over millennia rather than months. “Thee” and “thou,” for example, were frequent pronouns in the 17th century, declined in the 19th, and are now only found in poetry and some regional dialects.
![Rendered by QuickLaTeX.com \begin{array}{lclll} \mathcal{E}_{0}: & S & \rightarrow & N P V P & {[0.90]} & \mathrm{I}+\text { feel a breeze } \\ & & \mid & S \operatorname{Conj} S & {[0.10]} & \text { I feel a breeze }+\text { and }+\text { It stinks } \\ \end{array}](https://web.archive.org/web/20220622171000im_/https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-b7baa7a9d1c12b63ac7b15908d05235c_l3.png)
![Rendered by QuickLaTeX.com \begin{array}{lll} \text { NP } & \rightarrow \text { Pronoun } & {[0.30] \text { I }} \\ & \mid \text { Name } & {[0.10] \text { John }} \\ & \text { Noun } & {[0.10] \text { pits }} \\ & \text { Article Noun } & {[0.25] \text { the + wumpus }} \\ & \text { Article Adjs Noun }[0.05] \text { the + smelly dead + wumpus } \\ & \text { Digit Digit } & {[0.05] } 34 \\ & \text { NP PP } & {[0.10]} \text { the wumpus + in } 13 \\ & \text { NP RelClause } & {[0.05]} \text { the wumpus + that is smelly } \end{array}](https://web.archive.org/web/20220622171000im_/https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-3090ce96943547c9fc3e4da8b5ac4c09_l3.png)
![Rendered by QuickLaTeX.com \begin{aligned} &\begin{array}{rlll} V P & \rightarrow & \operatorname{Verb} & {[0.40]} & \text { stinks } \\ & \mid & V P N P & {[0.35]} & \text { feel + a breeze } \\ & \mid & V P \text { Adjective } & {[0.05]} & \text { smells + dead } \\ & V P P P & {[0.10]} & \text { is + in 1 3 } \\ & V P \text { Adverb } & {[0.10]} & \text { go + ahead } \end{array}\\ &\text { Adjs } \rightarrow \text { Adjective } \quad[0.80] \text { smelly } \end{aligned}](https://web.archive.org/web/20220622171000im_/https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-f9a1d825a3ccfc48966c22ff0c5d6408_l3.png)
The next stage is to put the words together in sentences. A grammar for
is shown in the equation above, with rules for each of the six syntactic categories and examples for each rewrite rule. 2 The parse tree for the line “Every wumpus stinks” is shown in the figure below. According to the criteria of E0, the parse tree provides constructive evidence that the string of words is really a sentence.



![Rendered by QuickLaTeX.com \begin{array}{ll} \text { Noun } & \rightarrow \text { stench }[0.05] \mid \text { breeze }[0.10] \mid \text { wumpus }[0.15] \mid \text { pits }[0.05] \mid \ldots \\ \text { Verb } & \rightarrow \text { is }[0.10] \mid \text { feel }[0.10] \mid \text { smells }[0.10] \mid \text { stinks }[0.05] \mid \ldots \\ \text { Adjective } & \rightarrow \text { right }[0.10] \mid \text { dead }[0.05] \mid \text { smelly }[0.02] \mid \text { breezy }[0.02] \ldots \\ \text { Adverb } & \rightarrow \text { here }[0.05] \mid \text { ahead }[0.05] \mid \text { nearby }[0.02] \mid \ldots \\ \text { Pronoun } & \rightarrow \text { me }[0.10] \mid \text { you }[0.03] \mid \text { I }[0.10] \mid \text { it }[0.10] \mid \ldots \\ \text { RelPro } & \rightarrow \text { that }[0.40] \mid \text { which }[0.15] \mid \text { who }[0.20] \mid \text { whom }[0.02] \vee \ldots \\ \text { Name } & \rightarrow \text { John }[0.01] \mid \text { Mary }[0.01] \mid \text { Boston }[0.01] \mid \ldots \\ \text { Article } & \rightarrow \text { the }[0.40] \mid \text { a }[0.30] \mid \text { an }[0.10] \mid \text { every }[0.05] \mid \ldots \\ \text { Prep } & \rightarrow \text { to }[0.20] \mid \text { in }[0.10] \mid \text { on }[0.05] \mid \text { near }[0.10] \mid \ldots \\ \text { Conj } & \rightarrow \text { and }[0.50] \mid \text { or }[0.10] \mid \text { but }[0.20] \mid \text { yet }[0.02] \vee \ldots \\ \text { Digit } & \rightarrow \mathbf{0}[0.20]|\mathbf{1}[0.20]| \mathbf{2}[0.20]|\mathbf{3}[0.20]| \mathbf{4}[0.20] \mid \ldots \end{array}](https://web.archive.org/web/20220622171000im_/https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-08b15bc8c8776497cfb7f91fa0e48311_l3.png)


