1
0
forked from GitHub/gf-rgl
Hans Leiss 8fb8ddd808 Ger: improved infinitives (and passives); tests with more verbs in testing/german
- NP: added field isLight in order to push negation behind light nps;
  this had been done in gf-3.9 using field isPron, but isPron is now
  used to put accusative pronoun before dative pronoun. Removed field
  adv: adverbial extensions cannot be extracted (todo: also for CN).
  Reduced isLight*isPron to w:Weight with 3 values: WPron, WLight, WHeavy.

- added param Control and field ctrl:Control to classify V2V-verbs into
  subject- and object-contol verbs, use ctrl to make reflexives agree
  with subject resp. object in VPSlash, and refine ComplSlash.

- Verb: new versions of ComplVV, SlashV2V and SlashVV to give better
  (nested) infinitives (extracting infzu and correcting object order).
  a) nested SlashVV doesn't work properly;
  b) SlashV2VNP may have to be commented out to prevent a stack overflow
     when compiling.
  Intended change of SlashV2VNP in tests/german/TestLangGer could not
  be tested due to size problems with the compiler.

- VP: changed field a1 : Polarity => Str to a1:Str to collect the adverbs
  coming before negation, using (negation : Polarity => Str) in mkClause.
  Use objCtrl:Bool instead of missingAdv to let reflexives agree with object.

- ResGer: insertObjNP reorganized, infzuVP added

- DictVerbsGer: some corrections (helft -> hilft, *sprecht -> *spricht)

- Some potential passive rules in tests/german/TestLangGer|Eng

- ExtraGer needs to be cleaned up with repect to the modified mkClause.
2019-09-18 15:16:42 +02:00
2019-08-02 18:40:51 +02:00
2019-04-22 11:35:51 -03:00
2019-06-28 16:26:18 +02:00
2018-11-28 14:40:47 +01:00
2018-07-25 20:18:48 +02:00

GF Logo

GF Resource Grammar Library (RGL)

Build Status

The GF Resource Grammar Library is the standard library for Grammatical Framework. It covers the morphology and basic syntax of over 30 languages.

For more about the RGL, see the synopsis page.

Choose your build method

There are 3 ways to build and install the RGL:

  • Haskell script Setup.hs
  • Shell script Setup.sh (does not require Haskell)
  • Windows batch file Setup.bat (does not require Haskell)

Install locations

The install scripts will try to determine where to copy the compiled RGL modules. It will look for, in this order:

  • the --dest= flag (see below)
  • the GF_LIB_PATH environment variable
  • the file ../gf-core/DATA_DIR (relative to this directory). This only works if you have the gf-core and gf-rgl repositories in the same top-level directory and you have already compiled GF from source. (This is considered a bit hacky and will probably disappear in the future).

Language config

A list of all languages and their properties is maintained centrally in languages.csv. This file should be kept up-to-date and all build methods should read this config file. If you see something wrong, please report/fix it.

# Column Description Default
1 Code 3-letter language code, e.g. Eng -
2 Name language name in English, e.g. English -
3 Directory folder name under src, e.g. english -
4 Functor functor name (not used) -
5 Unlexer unlexer (not used) -
6 Present language is marked with --# notpresent n
7 All compile All module y
8 Try compile Try module y
9 Symbolic compile Symbolic module y
10 Compatibility complile Compatibility module n
11 Synopsis include language in the RGL synopsis n

If default is y then anything other than n, including the empty string, is treated as true (and vice versa when default is n).

Haskell script: Setup.hs

This build method gives you most options. You will need Haskell installed on your system.

Basic

If you have Make installed and don't care about advanced settings, you can compile the RGL and install it to the default location with:

make install

This is the same as make build followed by make copy. There is also make clean available.

Advanced

For more fine-grained control over the build process, you can run the build script directly:

runghc Setup.hs ...

Where ... is one of:

build   [CMDS] [MODE] [--langs=[+|-]LANG,LANG,...] [--gf=...] [--verbose|-v]
copy    [MODE] [--dest=...]
install [CMDS] [MODE] [--langs=[+|-]LANG,LANG,...] [--gf=...] [--dest=...] [--verbose|-v]
clean
  • CMDS is one or more of: prelude, all, lang, api, compat, or an explicit module name (e.g. ExtraEng.gf. You don't need to specify to language subdirectory, but there is a restriction that the module must exist in a direct subdirectory of src). If ommitted, the default command is prelude all.
  • MODE is one of: present, alltenses (default is both).
  • LANG is a 3-letter language code, e.g. Eng, Swe etc.
  • You can override the default language list with --langs=...
  • You can add languages to the default list with --langs=+...
  • You can remove languages from the default list with langs=-...
  • The path to GF installed on your system can be specified via the --gf flag (default is that the gf executable is in the global system path).
  • The --dest flag can be used to manually specify where the compiled RGL modules should be copied/installed. This is the same place as GF_LIB_PATH.

Shell script: Setup.sh

This method is provided as an alternative for those who don't have Haskell installed. Simply run the script to build the entire RGL and install in the default location.

You can pass the following flags:

  • --dest=... to manually specify the install location
  • --gf=... to specify the path to the gf executable, if not available on the system path
  • --verbose or -v to show a list of files being built (errors will always be shown)

Windows batch file: Setup.bat

This method is provided as an alternative for Windows users who don't have Haskell or Bash installed.

It is supposed to be a port of Setup.sh and works in largely the same way. In particular, it accepts the same flags (in the same format) as described above.

However it currently tries to build all modules for all languages and doesn't consider the details of which modules should be compiled for each language (specified in languages.csv)

About this repository

On 2018-07-25, the monolithic GF repository was split in two:

  1. gf-core — the GF compiler, shell and runtimes
  2. gf-rgl — the resource grammar library

The former repository is now archived and no longer updated. The split was performed using this script and the output of that script is here.

S
Description
No description provided
Readme BSD-3-Clause 217 MiB
Languages
Grammatical Framework 99.9%