Practical Grammar 5: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
<span style="color: blue>Exercise</span> | <span style="color: blue>Exercise</span> | ||
1. Go to xlfg. | 1. Go to xlfg.<br> | ||
2. Create a new project. | 2. Create a new project.<br> | ||
3. Calls it "Practical Grammar 5". | 3. Calls it "Practical Grammar 5".<br> | ||
4. Enter "start_symbol: IP" into the Declarations editor. | 4. Enter "start_symbol: IP" into the Declarations editor.<br> | ||
5. Enter the following c-structure rules into the Grammar editor. | 5. Enter the following c-structure rules into the Grammar editor. | ||
Revision as of 11:16, 19 November 2020
Making our grammar more similar to the textbook system
The following rules are a slightly simplified version of the c-structure rules from pages 33 and 35 of the textbook. The rules are simplified, so as not to introduce too many new ideas at once. We will eventually use the full set of rules.
Exercise
1. Go to xlfg.
2. Create a new project.
3. Calls it "Practical Grammar 5".
4. Enter "start_symbol: IP" into the Declarations editor.
5. Enter the following c-structure rules into the Grammar editor.
DP → D NP;
DP → NP;
IP → DP Ibar;
Ibar → I VP;
Ibar → VP;
NP → N;
NP → AP NP;
PP → P DP;
VP → V;
VP → V DP;
VP → V PP;
VP → V DP DP;
VP → V DP PP;
// The following is a pseudo-rule that is supposed to recognize all categories. Do NOT change or delete it!
Const → CP|Cbar|DP|Dbar|IP|Ibar|NP|PP|VP;