GF Grammar Examples

Author: Aarne Ranta <aarne (at) cs.chalmers.se>
Last update: Fri Mar 10 11:05:35 2006



Here are some examples of GF grammars.

This directory

animal is a small grammar for queries about animals ("who chases lions"). Its aim is demonstrate example-based grammar writing using the resource grammar library.

bronzeage defines a set of grammars using the Swadesh list to perform basic communication in eight languages. It is also another illustration of the use of the resource grammar library.

gfcc shows a small C compiler written in GF. It is explained in the paper Declarative Language Definitions and Code Generation as Linearization

letter is a package for love and business letters in six languages. Its aimed is to illustrate multilingual authoring, as shown in this demo applet.

numerals is a set of grammars for number words from 1 to 999,999 in 88 languages. It can also be tested in this demo applet.

stoneage is an earlier version of bronzeage.

tram is an illustration of the resource grammar library, in particular of multimodal grammars that combine speech with mouse clicks.

More examples

GF Quick start

GF Grammarian's Tutorial

GF resource grammar library.