Definite Clause Grammar - Representing Features

Representing Features

Various linguistic features can also be represented fairly concisely with DCGs by providing extra arguments to the functors. For example, consider the following set of DCG rules:

sentence --> pronoun(subject), verb_phrase. verb_phrase --> verb, pronoun(object). pronoun(subject) --> . pronoun(subject) --> . pronoun(object) --> . pronoun(object) --> . verb --> .

This grammar allows sentences like "he likes her" and "he likes him", but not "her likes he" and "him likes him".

Read more about this topic:  Definite Clause Grammar

Famous quotes containing the words representing and/or features:

    Brave people may be persuaded to an action by representing it as being more dangerous than it really is.
    Friedrich Nietzsche (1844–1900)

    However much we may differ in the choice of the measures which should guide the administration of the government, there can be but little doubt in the minds of those who are really friendly to the republican features of our system that one of its most important securities consists in the separation of the legislative and executive powers at the same time that each is acknowledged to be supreme, in the will of the people constitutionally expressed.
    Andrew Jackson (1767–1845)