Link_grammar Link_grammar

Link grammar - Definition and Overview

Related Words: Alphabet, Composition, Derivation, Dialect, Diction, Elements, Etymology, Expression, Glottochronology

Link grammar (LG) is a theory of syntax which builds simple, explicit relations between pairs of words, rather than constructing constituents in tree-like hierarchy. There are two basic parameters: directionality and distance.

For example, in an SVO language like English, the verb would look left to form a subject link, and right to form an object link. Nouns would look right to complete the subject link, or left to complete the object link.

In an SOV language like Persian, the verb would look left to form an object link, and a more distant left to form a subject link. Nouns would look to the right for both subject and object links.

Contents

Examples

Example 1

A basic rule file for an SVO language might look like:

<noun-subject>:   S+;
<noun-object>:     O-;
<verb>:          S-    &    {O+};


Thus the English sentence, “The boy painted a picture” would appear as:

              +-----Os----+
 +-Ds-+---Ss--+     +--Ds-+
 |    |       |     |     |
The boy.n painted.v a picture.n 

Example 2

While a rule file for an SOV language might consist of the following links:

<noun-subject>:   S+;
<noun-object>:     O+;
<verb>:            {O-}   &   S-;


And a simple Persian sentence, "من رفتم" 'I went' would look like:

  +------Spn1------+
  |     +----VMP---+
  |     +-VMT+     +-RW+
  |     |    |     |   |
mn.pn rf.v t.vmt m.vmp .

Implementations

The Link grammar parser is a library for natural language processing written in C. It is currently licensed under an Apache-style license.

There are also Perl and Ruby implementations available.

External links

Example Usage of grammar

ifa_fachir: @allenavalensia hihihi kurang kerjaan! Daripada lempar batu jadi grammar police mendingan kamu beresin THESIS! =D *peace!*
LiLy1018: @joelcorona26 apparently not you. It's 'grammar'. :) you know bb's come equipped with spell check. :P
vampireggplant: @marcoday oh hell yeah! face our advance english skills! we will totally preposition and grammar their asses!
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.