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:

    He who has learned what is commonly considered the whole art of painting, that is, the art of representing any natural object faithfully, has as yet only learned the language by which his thoughts are to be expressed.
    John Ruskin (1819–1900)

    These, then, will be some of the features of democracy ... it will be, in all likelihood, an agreeable, lawless, particolored commonwealth, dealing with all alike on a footing of equality, whether they be really equal or not.
    Plato (c. 427–347 B.C.)