gf: Grammatical Framework

[ compiler, library, natural-language-processing, program ] [ Propose Tags ]

GF, Grammatical Framework, is a programming language for multilingual grammar applications

[Skip to Readme]
Versions [faq] 3.1.6,,, 3.2, 3.2.9, 3.3, 3.3.3, 3.4, 3.5, 3.6, 3.7, 3.7.1, 3.8, 3.9, 3.10
Dependencies array, base (>=4.2 && <5), bytestring, containers, directory, filepath, fst, haskeline, httpd-shed, mtl, network, old-time, pretty, process, random, silently, unix, utf8-string, Win32 [details]
License LicenseRef-OtherLicense
Maintainer none
Category Natural Language Processing, Compiler
Home page
Bug tracker
Source repo head: darcs get
Uploaded by ThomasHallgren at 2011-09-12T14:58:23Z
Distributions NixOS:3.10
Executables gf
Downloads 12104 total (282 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-12-27 [all 7 reports]


  • PGF



Enable Ctrl+Break in the shell


Include --server mode


Use the new, lazy compute_concrete (faster than the old, strict version)


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for gf-3.2.9

[back to package description]

The Grammatical Framework (=GF) is a grammar formalism based on type theory. 
It consists of

    * a special-purpose programming language
    * a compiler of the language
    * a generic grammar processor 

The compiler reads GF grammars from user-provided files, and the 
generic grammar processor performs various tasks with the grammars:

    * generation
    * parsing
    * translation
    * type checking
    * computation
    * paraphrasing
    * random generation
    * syntax editing 

GF particularly addresses four aspects of grammars:

    * multilinguality (parallel grammars for different languages)
    * semantics (semantic conditions of well-formedness, semantic 
      properties of expressions) 
    * grammar engineering (modularity, abstractions, libraries)
    * embeddability in programs written in other languages (C,C++,
      Haskell, Java, JavaScript)

COMPILATION and INSTALLATION of source distribution:
See doc/gf-developers.html for installation instructions.