Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

PROGRAM USED PROLOG 1/ Note that case marking, related to verbal argument structure, is present in English only in the pronominal system.

PROGRAM USED PROLOG

1/ Note that case marking, related to verbal argument structure, is present in English only in the pronominal system. Note also that it is semantically anomalous for some nounphrases to serve as subjects of certain verbs in English. Create a Prolog program that models the following fragment of English grammar; it should contain in its lexicon entries for he, she, him, her, it, prefers, sleeps, loves, the, and car.

Intended outputs:

She loves him

He prefers it to her

It sleeps

She prefers her to the car

He loves the car

(and similar)

Unintended outputs:

*him loves the car

*the car sleeps

*the car prefers him to her

*it loves she

Be principled in your approach, with rules for generating nounphrases, verbphrases, and sentences from the lexicon. You can assume that a) the case distinctions boil down to nominative, nonnominative, or unmarked, that b) each verb has a different valence, and that c) something like agenthood or animacy explains why "the car loves him" is ill formed.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question