blob: 41bdd545b765f28e345596fd2d9214878f8bb86d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
AR 15/8/2008
Here are some examples of morphological lexica turned into top-level GF grammars.
Top level is useful because it supports analysis and synthesis by normal
e.g. JavaScript tools.
The simplest example is in the following three files:
Eng.gf -- abstract syntax (English irregular verbs)
EngDescr.gf -- concrete syntax showing form descriptions
EngReal.gf -- concrete syntax showing real forms
Compile the result with
gfc --make -f js EngDescr.gf EngReal.gf
Then use Eng.js in place of GF/lib/javascript/grammar.js
Other examples:
Fre* -- French irregular verbs
NB: there are issues on character encoding of abstract verb names in Fre.
|