Grammatical Framework
Open accessThe DOI matches its Crossref record; 23 of the 23 references it cites were found in a registry or an index.
Abstract
Grammatical Framework (GF) is a special-purpose functional language for defining grammars. It uses a Logical Framework (LF) for a description of abstract syntax, and adds to this a notation for defining concrete syntax. GF grammars themselves are purely declarative, but can be used both for linearizing syntax trees and parsing strings. GF can describe both formal and natural languages. The key notion of this description is a grammatical object, which is not just a string, but a record that contains all information on inflection and inherent grammatical features such as number and gender in natural languages, or precedence in formal languages. Grammatical objects have a type system, which helps to eliminate run-time errors in language processing. In the same way as a LF, GF uses dependent types in abstract syntax to express semantic conditions, such as well-typedness and proof obligations. Multilingual grammars, where one abstract syntax has many parallel concrete syntaxes, can be used for reliable and meaning-preserving translation. They can also be used in authoring systems, where syntax trees are constructed in an interactive editor similar to proof editors based on LF. While being edited, the trees can simultaneously be viewed in different languages. This paper starts with a gradual introduction to GF, going through a sequence of simpler formalisms till the full power is reached. The introduction is followed by a systematic presentation of the GF formalism and outlines of the main algorithms: partial evaluation and parser generation. The paper concludes by brief discussions of the Haskell implementation of GF, existing applications, and related work.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Introduction to automata theory, languages, and computation
(1980) · Computer Languages · doi:10.1016/0096-0551(80)90011-9 · Cited by 6,824 · cited 1×
“Since GF grammars are implemented as first-class data objects in Haskell, well-known analyses and transformations (Hopcroft & Ullman, 1979) can be applied to them.”
MethodHead-driven phrase structure grammar
Sag, I. A., & Pollard, C. (1994) · Medical Entomology and Zoology · Cited by 3,889
The Mental Representation of Grammatical Relations
Baltin, M., & Bresnan, J. (1985) · Language · doi:10.2307/414493 · Cited by 2,783
Necula, G. C. (1997) · Proceedings of the 24th ACM SIGPLAN-SIGACT symposium on Principles of programming languages - POPL '97 · doi:10.1145/263699.263712 · Cited by 2,119
Semantics of context-free languages
Knuth, D. E. (1968) · Mathematical Systems Theory · doi:10.1007/bf01692511 · Cited by 1,948 · cited 2×
“Later on, the Cornell system used attribute grammars (Knuth, 1968) in the same rle as the GF formalism is used in the GF editor, and Mentor was extended by the formalism framework Metal (Kahn et al. , 1983).”
BackgroundMethodAn efficient context-free parsing algorithm
Earley, J. (1983) · Communications of the ACM · doi:10.1145/357980.358005 · Cited by 1,606
Martin-Löf, P. (1984) · Bibliopolis eBooks · Cited by 1,590
Partial evaluation and automatic program generation
Jones, N. D., Gomard, C. K., & Sestoft, P. (1993) · Research at the University of Copenhagen (University of Copenhagen) · Cited by 1,581
Implementing Mathematics with The Nuprl Proof Development System
Constable, R. L., Allen, S. F., Bromley, H. M., Cleaveland, W. R., Cremer, J. F., Harper, R. W., Howe, D. J., Knoblock, T. B., Mendler, N. P., Panangaden, P., et al. (1986) · Cited by 1,279
The Mathematics of Sentence Structure
Lambek, J. (1958) · The American Mathematical Monthly · doi:10.1080/00029890.1958.11989160 · Cited by 1,273 · cited 1×
“His idea was developed further by Lambek (1958), resulting in a calculus that covered an impressive fragment of English, and was eventually proved equivalent to context-free grammars (Pentus, 1993).”
BackgroundA framework for defining logics
Harper, R., Honsell, F., & Plotkin, G. (1993) · Journal of the ACM · doi:10.1145/138027.138060 · Cited by 990 · cited 1×
“1 The logical framework of GF is a version constructive type theory, as are LF (Harper et al., 1993), ALF (Magnusson & Nordström, 1994) and Coq (The Coq Development Team, 1999).”
MethodPereira, F. C. N., & Warren, D. H. D. (1980) · Artificial Intelligence · doi:10.1016/0004-3702(80)90003-x · Cited by 978 · cited 6×
“These formalisms include DCG (Pereira & Warren, 1980) and PATR (Shieber, 1986), which are, like GF, pure frameworks, and HPSG (Pollard & Sag, 1994) and LFG (Bresnan, 1982), which have elements of built-in linguistic theory.”
BackgroundMethodInfluentialOn the translation of languages from left to right
Knuth, D. E. (1965) · Information and Control · doi:10.1016/s0019-9958(65)90426-2 · Cited by 780 · cited 1×
“For instance, even though the Earley algorithm is applicable to all grammars, some grammars may turn out to permit deterministic LR(1) parsing (Knuth, 1965), which can then be chosen for efficiency.”
MethodThe Cornell program synthesizer: a syntax-directed programming environment
Teitelbaum, T., & Reps, T. (1981) · Communications of the ACM · doi:10.1145/358746.358755 · Cited by 710
Joshi, A. K. (1985) · Natural Language Parsing · doi:10.1017/cbo9780511597855.007 · Cited by 560 · cited 2×
“The wrap operation is similar to tree adjoining in the grammar formalism TAG (Tree Adjoining Grammars) (Joshi, 1985).”
BackgroundMethodA Quasi-Arithmetical Notation for Syntactic Description
Bar-Hillel, Y. (1953) · Language · doi:10.2307/410452 · Cited by 536 · cited 1×
“To this end, Bar-Hillel (1953) made a distinction between prefix and postfix function types, β/α vs. α \ β .”
The Mathematics of Sentence Structure
Lambek, J. (1958) · American Mathematical Monthly · doi:10.2307/2310058 · Cited by 532
Building domain-specific embedded languages
Hudak, P. (1996) · ACM Computing Surveys · doi:10.1145/242224.242477 · Cited by 477 · cited 2×
“The next step from this idea would be to define GF as an embedded language (Hudak, 1996).”
BackgroundHUET, G. (1997) · Journal of Functional Programming · doi:10.1017/s0956796897002864 · Cited by 314 · cited 1×
“GF uses a zipper (Huet, 1997) to represent the editor state.”
BackgroundCayenne—a language with dependent types
Augustsson, L. (1998) · Proceedings of the third ACM SIGPLAN international conference on Functional programming · doi:10.1145/289423.289451 · Cited by 286 · cited 1×
“The same technique is used in monomorphic type theory (Nordstr¨om et al. , 1990) and in the dependently typed programming language Cayenne (Augustsson, 1998).”
MethodThe Proper Place of Men and Machines in Language Translation
Kay, M. (1997) · Machine Translation · doi:10.1023/a:1007911416676 · Cited by 177
The Alf proof editor and its proof engine
Magnusson, L., & Nordström, B. (1994) · Lecture notes in computer science · doi:10.1007/3-540-58085-9_78 · Cited by 131 · cited 4×
“GF has inherited its type theory from ALF (Magnusson & Nordstr¨om, 1994), which uses metavariables, whereas NuPRL (Constable, 1986), Coq (The Coq Development Team, 1999), and LEGO (Luo & Pollack, 1992) use tactics.”
BackgroundMethodInfluentialSteedman, M. J. (1988) · Studies in linguistics and philosophy · doi:10.1007/978-94-015-6878-4_15 · Cited by 127 · cited 1×
“The rules can be circumscribed, however, partly by using combinators instead of variable binding (as suggested by Steedman (1988)), partly by means of discontinuous constituents.”
Background
Cited by
A history of Haskell: being lazy with class
Hudak, P., Hughes, J., Peyton Jones, S., & Wadler, P. (2007) · Proceedings of the third ACM SIGPLAN conference on History of programming languages · doi:10.1145/1238844.1238856 · Cited by 261
Survey on challenges of Question Answering in the Semantic Web
Höffner, K., Walter, S., Marx, E., Usbeck, R., Lehmann, J., & Ngonga Ngomo, A.-C. (2017) · Semantic Web · doi:10.3233/sw-160247 · Cited by 211
“Between the input query and the SPARQL query, the system places the intermediate step of a multilingual description using the Grammatical Framework [111], which enables the system to support 15 languages.”
Method
Metadata
- Authors
- RANTA, A.
- Venue
- Journal of Functional Programming
- Publisher
- Cambridge University Press (CUP)
- Published
- 2004-01-22
- Volume
- 14
- Issue
- 2
- Pages
- 145-189
- ISSN
- 0956-7968 (ISSN-L)
- 1469-7653
- OpenAlex
- W1541653499
- Cited by
- 165
- References
- 23
- FWCI
- 12.20
- Type
- journal article
- Language
- en
- Open access
- bronze
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.