- Copy the files
Food.gf,
FoodEng.gf, and
FoodIta.gf.
Or go to GF/examples/tutorial/food/, if you have downloaded the
GF sources.
- Start GF with the command
gf FoodIta.gf FoodEng.gf
- Translation. Try your first translation by giving the GF command
parse "this cheese is very very Italian" | tree_bank
- Generation. Random-generate sentences in two languages:
generate_random | l -multi
- Grammar development. Add words to the Food
grammars and try the above commands again. For instance, add the following lines:
Bread : Kind ; -- in Food.gf
Black = {s = "bread"} ; -- in FoodEng.gf
Black = {s = "pane"} ; -- in FoodIta.gf
and start GF again with the same command. Now you can even translate
this bread is very Italian.
To lear more on GF commands and
grammar development, go to the