1 of 39

Internals of GF

Inari Listenmaa

GF Summer School

22th August 2025, Göteborg

2 of 39

GF

3 of 39

PMCFG

4 of 39

Do you need to know the internals of GF in order to write application grammars?

5 of 39

Do you need to know the internals of GF in order to write application grammars?

6 of 39

Do you need to know the internals of GF in order to write resource grammars?

make a

7 of 39

Do you?

Sometimes the pizza oven overheats, and the instruction manual is only in Italian.

8 of 39

Do you?

You want to become the next pizza oven maintainer.

9 of 39

Do you?

You simply love pizza so much that you want to learn everything about it.

10 of 39

GF to PMCFG

“Parallel Multiple Context-Free Grammar”

aka. the low-level format GF is compiled to

11 of 39

12 of 39

Concrete categories

13 of 39

Concrete categories

One for each combination of inherent parameters

KindMasc

KindFem

14 of 39

Concrete categories

Tables flatten

15 of 39

16 of 39

C5 -> F27[C7,C5]

==

F27 : C7 -> C5 -> C5 ;

17 of 39

Concrete functions

One for each combination of

concrete categories

18 of 39

19 of 39

20 of 39

21 of 39

22 of 39

23 of 39

Arguments

24 of 39

Arguments

25 of 39

Arguments

26 of 39

Recap

27 of 39

Recap

GF grammar

  1. Abstract syntax

28 of 39

Recap

GF grammar

  • Abstract syntax
  • Concrete syntax

29 of 39

Recap

GF grammar

PMCFG

  • Concrete categories
  • Abstract syntax
  • Concrete syntax

30 of 39

Recap

GF grammar

PMCFG

  • Concrete categories
  • Productions
  • Abstract syntax
  • Concrete syntax

31 of 39

Recap

GF grammar

PMCFG

  • Concrete categories
  • Productions
  • Concrete functions
  • Abstract syntax
  • Concrete syntax

32 of 39

Recap

GF grammar

PMCFG

  • Concrete categories
  • Productions
  • Concrete functions
  • Sequences
  • Abstract syntax
  • Concrete syntax

33 of 39

Recap

GF grammar

PMCFG

  • Concrete categories
  • Productions
  • Concrete functions
  • Sequences
  • Abstract syntax
  • Concrete syntax

34 of 39

Learn more

Expressivity and Complexity of Grammatical Framework (Ljunglöf, 2004)

The Mechanics of the Grammatical Framework (Angelov, 2011)

This talk in a blog post with slightly fewer jokes about pizza (Listenmaa, 2018)

35 of 39

36 of 39

#1: index of argument

37 of 39

#1: index of argument

38 of 39

#1: index of argument

#2: text field of #1

39 of 39

A selection of pizza lovers