Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PROLOG: Can someone interpret the following question for me? Calls for Prolog Co

ID: 3678461 • Letter: P

Question

PROLOG:

Can someone interpret the following question for me?

Calls for Prolog Code.

There are in English two type of personal pronouns: the direct and the oblique.

The direct pronouns are I, you, he, she, it, we, y'all, they.

the oblique pronouns are me, you, him, her, it, us, yall, them.

Write a grammar that will generate the 8^3 = 512 grammatical sentences of the form below (but will not generate any of the 163^3 – 8^3 = 3584 ungrammatical permutations of those sentences).

X[pro,wrd,dir] preferred Y[pro,wrd,obl] to Z[pro,wrd,obl]

One of the sentences of the desired form is the grammatical I preferred her to him; one of the sentences of an undesired form is the ungrammatical *Me preferred she to he. Show that your grammar will generate the former but not the latter. You may ignore the semantic component of the rules of your grammar.

Note: Your prolog problem must recognize that X belongs to the category [pro,wrd,dir] of direct pronouns, that Y belongs to category [pro,wrd,obl] of oblique pronouns, that to Z belongs to the category [nom,cls,dat] of oblique nominal clauses, and that Z, like Y, belongs to[pro,wrd,obl]. Your grammar must also correctly recognize verbal phrases and verbal clauses in the sentences it generates. Say why these facts argue that English prepositions, like verbs, "govern an oblique".

Explanation / Answer

prolog facts:

prolog facts:

Dr Jack
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote