---
title: "Orthography Engineering in Grammatical — Angelov 2015"
description: "In grammar engineering, orthography is usually delegated to external pre- and postprocessors: tokenizers, compound-splitting modules, and truecasing tools."
authors: ["Krasimir Angelov"]
year: 2015
venue: "Proceedings of the Grammar Engineering Across Frameworks (GEAF) 2015 Workshop"
source: "https://aclanthology.org/W15-3305/"
doi: "10.18653/v1/w15-3305"
licence: "CC BY-NC-SA 3.0 (ACL Anthology, before 2016)"
licence_url: "https://creativecommons.org/licenses/by-nc-sa/3.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/papers/angelov-2015-orthography-engineering-grammatical-framework/"
---
[Elamur Research](https://md.research.elamur.ai/) · [this page in HTML](https://research.elamur.ai/free/papers/angelov-2015-orthography-engineering-grammatical-framework/)

[home](https://md.research.elamur.ai/) / [papers](https://md.research.elamur.ai/free/papers/) / [2015](https://md.research.elamur.ai/free/papers/2015/) / Orthography Engineering in Grammatical Framework

# Orthography Engineering in Grammatical Framework

**Authors:** [Krasimir Angelov](https://md.research.elamur.ai/free/authors/krasimir-angelov/) · **Year:** 2015 · **Venue:** Proceedings of the Grammar Engineering Across Frameworks (GEAF) 2015 Workshop · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

**Links:** [Publisher's page](https://aclanthology.org/W15-3305/) · [PDF](https://aclanthology.org/W15-3305.pdf) · [DOI 10.18653/v1/w15-3305](https://doi.org/10.18653/v1/w15-3305) · [OpenAlex](https://openalex.org/W1962365707)

**Citations:** 3 citations (openalex-snapshot · 2026-10-14) · [2](#cited-by) in our library, of the 140673 papers whose bibliographies we read

## Summary
In grammar engineering, orthography is usually delegated to external pre- and postprocessors: tokenizers, compound-splitting modules, and truecasing tools. The author shows that this approach works poorly for languages with compound words (German, Swedish), for agglutinative languages, and for context-dependent forms such as English a/an. An external tool has to be built separately for each language. It partly duplicates knowledge already present in the grammar, and it also has to be ported to every new platform. For this reason, several primitives have been added to Grammatical Framework (GF) that make it possible to describe spaces, capitalization, contextual variants, and missing word forms within the grammar itself. Because GF is reversible, each extension has two behaviours: generation produces canonical text, while the parser accepts deviations from the norm. To let the parser join words together, the Earley-style algorithm for PMCFG has been moved to character positions. As a result, an ambiguous segmentation of a word is stored directly in the chart, and no separate segmentation lattice is needed. The extensions have been tested in practice. The value of the work is that all linguistic knowledge is kept in a single portable formalism, and the ideas can be applied even in simple context-free grammars.

## Key points
- Three tokens are introduced for spaces. BIND joins adjacent words; for example, Swedish data + vetenskap gives datavetenskap. SOFT_BIND also joins words during generation, but the parser accepts them with a space in between as well, which is convenient for punctuation. SOFT_SPACE does the opposite: during generation it inserts a space, while the parser allows it to be omitted. BIND is used for suffixes in the Finnish, Estonian and Maltese grammars, as well as for composing multi-digit numbers.
- Capitalization is controlled by CAPIT and ALL_CAPIT. For example, in the German compound Aktion + Plan → Aktionsplan, the second part is written in lowercase. If the parser simply skips these tokens, parsing becomes case-insensitive.
- The pre construction selects a form depending on the following word (a/an, French la/l'). The generator postpones this choice until the whole sentence is known, while the parser, for robustness, accepts all variants.
- nonExist marks missing cells in inflection tables. It is implemented inside the parser and is not visible through the API. A workaround using a special "word", by contrast, would show up in the suggestions of tools for controlled languages.
- The new operations (except pre) have type Str and are exported from the Prelude module. They are used extensively in an offline mobile translator for 12 languages (Angelov et al., 2014).

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

Fields: [Linguistics & languages](https://md.research.elamur.ai/free/shelves/linguistics/)

## Cited by

Cited by

2 papers of our library cite it (of the 140673 whose bibliographies we read); 1 of them have a page here, 1 not yet.

- [Abstract Syntax as Interlingua: Scaling Up the Grammatical Framework from Controlled Languages to Robust Pipelines](https://md.research.elamur.ai/free/papers/ranta-2020-abstract-syntax-as-interlingua-scaling/)

## Cite

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{angelov2015orthography,
  title = {{Orthography Engineering in Grammatical Framework}},
  author = {Angelov, Krasimir},
  booktitle = {Proceedings of the Grammar Engineering Across Frameworks (GEAF) 2015 Workshop},
  year = {2015},
  doi = {10.18653/v1/w15-3305},
  url = {https://doi.org/10.18653/v1/w15-3305}
}
```

- [← previous Optimality Grammars of Ancient Translations: Descriptive Translation Studies, Optimality Theory, and Targum Jonathan 2 Sam 11:1](https://md.research.elamur.ai/free/papers/hbo-2015-hutton-optimality-grammars-ancient-translations/)
- [next → Overview of the DSL Shared Task 2015](https://md.research.elamur.ai/free/papers/zampieri-2015-overview-dsl-shared-task/)
- [↑ back to papers of 2015](https://md.research.elamur.ai/free/papers/2015/)

## References

21 references, 0 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. Krasimir Angelov, Björn Bringert, and Aarne Ranta. 2010. PGF: A Portable Run-Time Format for Type-Theoretical Grammars. Journal of Logic, Language and Information, 19:201–228. [find](https://scholar.google.com/scholar?q=Krasimir+Angelov%2C+Bjo%CC%88rn+Bringert%2C+and+Aarne+Ranta%2E+2010%2E+PGF%3A+A+Portable+Run%2DTime+Format+for+Type%2DTheoretical+Grammars%2E+Journal+of+Logic%2C+Language+and+Information%2C+19%3A201%E2%80%93228%2E)
2. Krasimir Angelov, Aarne Ranta, and Björn Bringert. 2014. Speech-enabled hybrid multilingual translation for mobile devices. In European Chapter of the Association for Computational Linguistics, Gothenburg. [find](https://scholar.google.com/scholar?q=Krasimir+Angelov%2C+Aarne+Ranta%2C+and+Bjo%CC%88rn+Bringert%2E+2014%2E+Speech%2Denabled+hybrid+multilingual+translation+for+mobile+devices%2E+In+European+Chapter+of+the+Association+for+Computational+Linguistics%2C+Gothe)
3. Krasimir Angelov. 2009. Incremental parsing with parallel multiple context-free grammars. In European Chapter of the Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Krasimir+Angelov%2E+2009%2E+Incremental+parsing+with+parallel+multiple+context%2Dfree+grammars%2E+In+European+Chapter+of+the+Association+for+Computational+Linguistics%2E)
4. Krasimir Angelov. 2011. The Mechanics of the Grammatical Framework. Ph.D. thesis, Chalmers University of Technology. [find](https://scholar.google.com/scholar?q=Krasimir+Angelov%2E+2011%2E+The+Mechanics+of+the+Grammatical+Framework%2E+Ph%2ED%2E+thesis%2C+Chalmers+University+of+Technology%2E)
5. Pierre Boullier. 1998. A proposal for a natural language processing syntactic backbone. Technical Report 3342, INRIA. [find](https://scholar.google.com/scholar?q=Pierre+Boullier%2E+1998%2E+A+proposal+for+a+natural+language+processing+syntactic+backbone%2E+Technical+Report+3342%2C+INRIA%2E)
6. John J. Camilleri. 2013. A Computational Grammar and Lexicon for Maltese. Master’s thesis, Chalmers University of Technology, Gothenburg, Sweden, September. [find](https://scholar.google.com/scholar?q=John+J%2E+Camilleri%2E+2013%2E+A+Computational+Grammar+and+Lexicon+for+Maltese%2E+Master%E2%80%99s+thesis%2C+Chalmers+University+of+Technology%2C+Gothenburg%2C+Sweden%2C+September%2E)
7. J.-C. Chappelier, M. Rajman, R. Arages, and A. Rozenknop. 1999. Lattice parsing for speech recognition. In In Proceedings of 6me, pages 95–104. [find](https://scholar.google.com/scholar?q=J%2E%2DC%2E+Chappelier%2C+M%2E+Rajman%2C+R%2E+Arages%2C+and+A%2E+Rozenknop%2E+1999%2E+Lattice+parsing+for+speech+recognition%2E+In+In+Proceedings+of+6me%2C+pages+95%E2%80%93104%2E)
8. Ciprian Chelba and Alex Acero, 2004. Proceedings of the 2004 Conference on Empirical Methods in Natural Language Processing, chapter Adaptation of Maximum Entropy Capitalizer: Little Data Can Help a Lo. [find](https://scholar.google.com/scholar?q=Ciprian+Chelba+and+Alex+Acero%2C+2004%2E+Proceedings+of+the+2004+Conference+on+Empirical+Methods+in+Natural+Language+Processing%2C+chapter+Adaptation+of+Maximum+Entropy+Capitalizer%3A+Little+Data+Can+Help+a+L)
9. Grégoire Détrez and Aarne Ranta. 2012. Smart paradigms and the predictability and complexity of inflectional morphology. In Proceedings of the 13th Conference of the European Chapter of the Association for Computational Linguistics, EACL ’12, pages 645–653, Stroudsburg, PA, USA. Association for Co… [find](https://scholar.google.com/scholar?q=Gre%CC%81goire+De%CC%81trez+and+Aarne+Ranta%2E+2012%2E+Smart+paradigms+and+the+predictability+and+complexity+of+inflectional+morphology%2E+In+Proceedings+of+the+13th+Conference+of+the+European+Chapter+of+the+Associat)
10. Jay Clark Earley. 1968. An Efficient Context-free Parsing Algorithm. Ph.D. thesis, Carnegie Mellon University, Pittsburgh, PA, USA. AAI6907901. [find](https://scholar.google.com/scholar?q=Jay+Clark+Earley%2E+1968%2E+An+Efficient+Context%2Dfree+Parsing+Algorithm%2E+Ph%2ED%2E+thesis%2C+Carnegie+Mellon+University%2C+Pittsburgh%2C+PA%2C+USA%2E+AAI6907901%2E)
11. Keith B. Hall. 2005. Best-first Word-lattice Parsing: Techniques for Integrated Syntactic Language Modeling. Ph.D. thesis, Providence, RI, USA. AAI3174615. [find](https://scholar.google.com/scholar?q=Keith+B%2E+Hall%2E+2005%2E+Best%2Dfirst+Word%2Dlattice+Parsing%3A+Techniques+for+Integrated+Syntactic+Language+Modeling%2E+Ph%2ED%2E+thesis%2C+Providence%2C+RI%2C+USA%2E+AAI3174615%2E)
12. Robert Harper, Furio Honsell, and Gordon Plotkin. 1993. A framework for defining logics. J. ACM, 40:143–184, January. [find](https://scholar.google.com/scholar?q=Robert+Harper%2C+Furio+Honsell%2C+and+Gordon+Plotkin%2E+1993%2E+A+framework+for+defining+logics%2E+J%2E+ACM%2C+40%3A143%E2%80%93184%2C+January%2E)
13. Aravind Joshi and Yves Schabes. 1997. Tree-adjoining grammars. In Grzegorz Rozenberg and Arto Salomaa, editors, Handbook of Formal Languages. Vol 3: Beyond Words, chapter 2, pages 69– 123. Springer-Verlag, Berlin/Heidelberg/New York. [find](https://scholar.google.com/scholar?q=Aravind+Joshi+and+Yves+Schabes%2E+1997%2E+Tree%2Dadjoining+grammars%2E+In+Grzegorz+Rozenberg+and+Arto+Salomaa%2C+editors%2C+Handbook+of+Formal+Languages%2E+Vol+3%3A+Beyond+Words%2C+chapter+2%2C+pages+69%E2%80%93+123%2E+Springer%2DVe)
14. Philipp Koehn and Kevin Knight. 2003. Empirical methods for compound splitting. In Proceedings of the Tenth Conference on European Chapter of the Association for Computational Linguistics - Volume 1, EACL ’03, pages 187–193, Stroudsburg, PA, USA. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Philipp+Koehn+and+Kevin+Knight%2E+2003%2E+Empirical+methods+for+compound+splitting%2E+In+Proceedings+of+the+Tenth+Conference+on+European+Chapter+of+the+Association+for+Computational+Linguistics+%2D+Volume+1%2C+)
15. Inari Listenmaa and Kaarel Kaljurand. 2014. Computational estonian grammar in grammatical framework. In Proceedings of LREC 2014, pages 13–18. [find](https://scholar.google.com/scholar?q=Inari+Listenmaa+and+Kaarel+Kaljurand%2E+2014%2E+Computational+estonian+grammar+in+grammatical+framework%2E+In+Proceedings+of+LREC+2014%2C+pages+13%E2%80%9318%2E)
16. Lucian Vlad Lita, Abe Ittycheriah, Salim Roukos, and Nanda Kambhatla. 2003. truecasing. In Proceedings of the 41st Annual Meeting on Association for Computational Linguistics - Volume 1, ACL ’03, pages 152–159, Stroudsburg, PA, USA. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Lucian+Vlad+Lita%2C+Abe+Ittycheriah%2C+Salim+Roukos%2C+and+Nanda+Kambhatla%2E+2003%2E+truecasing%2E+In+Proceedings+of+the+41st+Annual+Meeting+on+Association+for+Computational+Linguistics+%2D+Volume+1%2C+ACL+%E2%80%9903%2C+page)
17. Peter Ljunglöf. 2004. Expressivity and Complexity of the Grammatical Framework. Ph.D. thesis, Department of Computer Science, Gothenburg University and Chalmers University of Technology, November. [find](https://scholar.google.com/scholar?q=Peter+Ljunglo%CC%88f%2E+2004%2E+Expressivity+and+Complexity+of+the+Grammatical+Framework%2E+Ph%2ED%2E+thesis%2C+Department+of+Computer+Science%2C+Gothenburg+University+and+Chalmers+University+of+Technology%2C+November%2E)
18. Carl Jess Pollard and Ivan A. Sag. 1994. Head-driven phrase structure grammar. Studies in contemporary linguistics. Center for the study of language and information Chicago (Ill.) London, Stanford (Calif.). [find](https://scholar.google.com/scholar?q=Carl+Jess+Pollard+and+Ivan+A%2E+Sag%2E+1994%2E+Head%2Ddriven+phrase+structure+grammar%2E+Studies+in+contemporary+linguistics%2E+Center+for+the+study+of+language+and+information+Chicago+%28Ill%2E%29+London%2C+Stanford+%28Ca)
19. Aarne Ranta. 2011. Grammatical Framework: Programming with Multilingual Grammars. CSLI Publications, Stanford. ISBN-10: 1-57586-626-9 (Paper), 1-57586-627-7 (Cloth). [find](https://scholar.google.com/scholar?q=Aarne+Ranta%2E+2011%2E+Grammatical+Framework%3A+Programming+with+Multilingual+Grammars%2E+CSLI+Publications%2C+Stanford%2E+ISBN%2D10%3A+1%2D57586%2D626%2D9+%28Paper%29%2C+1%2D57586%2D627%2D7+%28Cloth%29%2E)
20. Hiroyuki Seki, Takashi Matsumura, Mamoru Fujii, and Tadao Kasami. 1991. On multiple context-free grammars. Theoretical Computer Science, 88(2):191–229, October. [find](https://scholar.google.com/scholar?q=Hiroyuki+Seki%2C+Takashi+Matsumura%2C+Mamoru+Fujii%2C+and+Tadao+Kasami%2E+1991%2E+On+multiple+context%2Dfree+grammars%2E+Theoretical+Computer+Science%2C+88%282%29%3A191%E2%80%93229%2C+October%2E)
21. Mark Steedman. 2000. The syntactic process. MIT Press, Cambridge, MA, USA. [find](https://scholar.google.com/scholar?q=Mark+Steedman%2E+2000%2E+The+syntactic+process%2E+MIT+Press%2C+Cambridge%2C+MA%2C+USA%2E)
