diff --git a/lib/resource/doc/gf-resource.html b/lib/resource/doc/gf-resource.html index 15dfb93c3..25c1621e0 100644 --- a/lib/resource/doc/gf-resource.html +++ b/lib/resource/doc/gf-resource.html @@ -463,7 +463,70 @@ Extend vocabulary at need.

Example application: a small translation system

+You can say things like the following: +
+  who chases mice ?
+  whom does the lion chase ?
+  the dog chases cats
+
+Source modules: +

+ +Animals + +

+ +AnimalsEng + +

+ +AnimalsFre + +

+ +AnimalsSwe + + + +

Compiling the example application

+ +The resources are bulky, and it takes a therefore a lot of +time and memory to load the grammars. However, they can be +comiled into the gfcm +(GF canonical multilingual) format, +which is almost one thousand times smaller and faster to load. + +

+ +Just issue the following GF commands +

+  i AnimalsEng.gf
+  i AnimalsFre.gf
+  i AnimalsSwe.gf
+  pm | wf animals.gfcm
+
+and you get a grammar this end-user grammar. + +

+ +You can also write the commands in a gfs (GF script) +file, say mkAnimals.gfs, and then call GF with +

+  gf 
+
+
+
+

Further simplifications of the application grammar

+ +Step 1: use a simplified access to present-tense sentences, +SentenceX (to be written...) + +

+ +Step 2: factor out the categories and purely combinational +rules into an incomplete module (to be shown...)