---
title: "Example-Based Treebank Querying — Augustinus 2012"
description: "Example-Based Treebank Querying explains how GrETEL turns a Dutch example into a search for matching syntax and tests it in LASSY Small."
canonical: "https://research.elamur.ai/free/en/papers/augustinus-2012-example-based-treebank-querying/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/augustinus-2012-example-based-treebank-querying/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2012](https://md.research.elamur.ai/free/en/papers/2012/) / Example-Based Treebank Querying

# Example-Based Treebank Querying

Paper · 2012 · Liesbeth Augustinus, Vincent Vandeghinste and Frank Van Eynde

**Authors:** [Liesbeth Augustinus](https://md.research.elamur.ai/free/en/authors/liesbeth-augustinus/), [Vincent Vandeghinste](https://md.research.elamur.ai/free/en/authors/vincent-vandeghinste/) and [Frank Van Eynde](https://md.research.elamur.ai/free/en/authors/frank-van-eynde/) · **Year:** 2012 · **Venue:** Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12) · **Licence:** [CC BY-NC 4.0 (ELRA, LREC proceedings)](https://creativecommons.org/licenses/by-nc/4.0/)

[**42** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2252247071) · [Cited by **16** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/augustinus-2012-example-based-treebank-querying/cited-by/) · [Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12)](https://aclanthology.org/volumes/L12-1/) · [licence](https://creativecommons.org/licenses/by-nc/4.0/)

- [Publisher's page](https://aclanthology.org/L12-1442/)
- [PDF](https://aclanthology.org/L12-1442.pdf)
- [DOI 10.63317/29r2ytrq6pdi](https://doi.org/10.63317/29r2ytrq6pdi)
- [OpenAlex](https://openalex.org/W2252247071)

Citations: OpenAlex, 2026-10-14.

## Summary

A linguist who wants to know how a construction is used may already have a good example of it. Finding more examples in a syntactically annotated collection can still require learning how that collection encodes grammar and how to express a search in its query language. In *Example-Based Treebank Querying*, the authors present GrETEL, a system that accepts an example in Dutch and generates the formal search from it. The aim is to give researchers access to the grammatical information in [treebanks](https://md.research.elamur.ai/free/en/topics/treebanks/) through decisions they can make about an ordinary sentence or phrase.

The researcher marks the words that matter and chooses how each should be matched. A word can stand for its grammatical class, its dictionary form or its exact written form. GrETEL parses the example with Alpino, extracts the part of the analysis that connects the selected words, and turns that structure into an XPath query for LASSY Small. XPath is a language for selecting parts of an XML document, the format in which these trees are stored. GrETEL can also preserve the relative order of selected words when their position matters. Researchers with XPath experience can inspect and alter the generated query before running it.

The authors demonstrate the approach with Dutch nominalisations and separable verb particles. In the first case, they seek verb-based expressions that behave like noun phrases, with the determiner *het* and a phrase introduced by *van*. The generated search finds 1288 occurrences in 1206 sentences across LASSY Small. Removing a restriction on the head of the noun phrase governed by *van* brings the totals to 1391 occurrences in 1299 sentences. The broader query admits patterns with proper names and multiword expressions. In the second case, the researchers ask whether a particle appears inside or before a sequence of verbs. The structure-only query finds 98 occurrences in 95 sentences. When the search also requires the order from an example with an interruption, it finds 4 occurrences in 4 sentences. A query based on the other order finds 94 occurrences in 91 sentences.

These results show how the example, the selected words and the treebank's annotations together define what counts as a match. A particle written separately can appear as a node of its own. A particle written together with its verb can be recorded within the verb's dictionary form, so finding it involves a different query. The case studies demonstrate that GrETEL can turn an example into an executable structural search and that a small change to the query can change the kinds of examples retrieved. The reported counts describe those searches. The paper leaves comprehensive coverage and the ease of use of the interface for further evaluation.

## Deep dive: Example-Based Treebank Querying

Example-Based Treebank Querying explains how GrETEL turns a Dutch example into a search for matching syntax and tests it in LASSY Small. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### From an observed sentence to a corpus question

A corpus search frequently begins with a sentence that a researcher has encountered or imagined. The researcher recognizes a construction in it and wants to see how it occurs elsewhere. Some words in the example are integral to the construction and others are incidental. A particular determiner might matter, for example, while a nearby verb could be replaced by another member of the same grammatical class. The starting example helps make these distinctions concrete. The search must then translate them into conditions that can be applied consistently across a collection.

A treebank gives this kind of search something to work with. It is a collection in which sentences have been assigned grammatical analyses, so a search can ask how words and phrases are related as well as which words appear. The Dutch resources motivating the paper include collections for spoken and written language. The authors see these resources as an opportunity to investigate Dutch [syntax and grammar](https://md.research.elamur.ai/free/en/topics/syntax-grammar/) and meaning through many examples. Their concern is that the opportunity depends on being able to retrieve the examples in the first place.

Consider a search for words inside a particular phrase. A list of nearby words can narrow down the possibilities, but it leaves open which word governs another, where the phrase ends and whether the same spelling is being used with the intended grammatical function. A treebank records analyses that can resolve some of those questions. The analyst must still express a request in terms that the collection can recognize. A query for a phrase may require knowing its category, which element counts as its head, and how a child node's relationship to its parent is recorded. Those distinctions can be relevant to the linguistic question even when the researcher has no reason to know the labels or paths that encode them.

This is the gap GrETEL addresses. The user starts from a sentence or fragment and identifies the features that should carry over to a match. The search engine deals with the transition from that input to the treebank's representation. The choice of an example still matters because it supplies the structure from which the query is made. The choice of words matters because it determines which part of that structure is used. The paper treats those choices as a familiar form of input for a linguist and as a basis for doing some of the formal work automatically.

#### Why existing access still took work

The paper describes a field with several collections and several ways to search them. It pairs TGrep2 with the [Penn Treebank](https://md.research.elamur.ai/free/en/papers/marcus-1993-building-large-annotated-corpus-english/) and identifies TIGERSearch as an option for the TIGER Treebank and CGN. For LASSY, it describes searches in XPath or XQuery using applications such as dtsearch and DACT. These examples explain how the same broad task, finding instances of a grammatical construction, can require different practical knowledge depending on where it is carried out. Moving to a new collection can mean learning the representation and the search notation together.

The authors distinguish two sources of difficulty. The first is the language in which the researcher writes a query. Once a search involves several nodes and relationships, its formal expression can grow long. The second is knowing which relationships to request in the first place. A query can be well formed and still describe a different object from the one the researcher intended. The way a treebank represents names, phrases or verbs reflects its conventions for [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/), the practice of adding analyses to the underlying text. Those conventions affect which searches will work.

The paper discusses graphical tools such as TIGERin and SearchTree in this context. A graphical interface can spare users some formal typing. It can still require them to specify the shape of a tree and to recognize the distinctions encoded within it. For the authors, that requirement explains why a visual query builder alone may leave much of the original burden in place. GrETEL has a graphical choice of its own, but the object the researcher works on at that stage is a sequence of familiar words. The internal tree comes from an automatic analysis of the example.

The authors also describe work towards more uniform representations and query mechanisms. They mention FoLiA as an attempt to develop an annotation format for Dutch. XML and the associated query standards already provide common infrastructure for some treebanks. LPath illustrates how a language designed for linguistic searches can build on XPath, while PML illustrates the effort to query different collections through a common language. A common storage format can make it easier to reuse software, and a shared query language can reduce the number of notations a researcher must learn. GrETEL addresses the point at which the researcher has to formulate a query at all.

#### Where search by example fits

The paper situates the proposal alongside the Linguist’s Search Engine, which also uses example-based querying, and the TIGER Corpus Navigator, which organizes and retrieves sentences through abstract linguistic concepts. These precedents place GrETEL within a broader effort to make structural evidence accessible to researchers. The paper's particular implementation starts with user selections on an example, obtains its dependency analysis, and generates a query that can run over the XML representation of LASSY Small.

The design follows a distinction between recognizing a construction and specifying its encoding. A researcher may recognize that a determiner should stay the same, that a verb position should admit many verbs and that the enclosing clause is beside the point. Asking for those decisions on an example is different from asking which XML attribute marks a modifier or how to navigate from an infinitive to its dependent particle. GrETEL uses the first set of decisions to generate the second set of conditions. The formal query remains available for users who want to inspect or change what the example produced.

The project also fits the authors' account of CLARIN's goal of making language resources available to researchers in the humanities and social sciences. Here, availability has a specific practical meaning. A collection can be accessible as data while the steps needed to answer a grammatical question still exclude some of its intended users. The paper approaches that problem through the entry point to a search. It asks how far an ordinary example can carry a researcher towards a query that uses the structure already recorded in the collection.

### The method, step by step

#### Start with the words that matter

The input is a Dutch example of the construction under investigation. It can be a whole sentence, which gives the parser a surrounding context, or a fragment, such as the subordinate clause used in the verb-particle study. The interface lays the words out in a matrix. Initially, the matrix marks every word as irrelevant to the search. The user changes the setting for the words that should take part. This separates the text offered for analysis from the part of that text that will determine the query.

The matrix offers choices at different levels of specificity. A part of speech, or POS, is a grammatical word class such as verb or noun. Selecting POS makes the word an example of its class and lets other words of that class satisfy the search condition. A [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/) is the form under which the treebank groups a word's variants. Selecting it preserves the chosen lexical item while allowing variation in how it appears. Selecting the token preserves the particular [word form](https://md.research.elamur.ai/free/en/concepts/word-form/) used in the example. In the authors' nominalisation example, *het* and *van* are invariable, so the distinction between choosing their lemmas and choosing their tokens has no practical effect for those words.

The selection conveys more than a general preference for the original wording. It can fix some lexical items while leaving others open, all within the same search. In the nominalisation case, the determiner and preposition identify a specific pattern, but the action and the entity involved can vary. The authors therefore preserve the lemmas *het* and *van* and choose POS for the verb and for the noun inside the prepositional phrase. The other words help form the input example, while their matrix settings leave them outside the intended focus.

The paper uses the spelling *doden* to show why selection still depends on a grammatical analysis. The spelling can appear as a verb, meaning to kill, or as a plural noun referring to the dead. A verb lemma search generated from the nominalised verb retains the POS and dependency information of that use. The occurrence of the same spelling in a phrase concerning a death toll therefore provides a different grammatical configuration. The example illustrates what a tree search adds to the selection of a dictionary form. The same character sequence can appear in several roles, and GrETEL carries the example's role into the query.

From a Dutch example to treebank matches The steps in order.

#### Turn the input into a compatible tree

The next step is [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/), the assignment of a grammatical structure to the input. GrETEL uses Alpino. The choice connects the query side of the system to the data side because Alpino also provides the starting analyses for LASSY treebank annotation. LASSY Small is the manually annotated part of that treebank. An input example is analyzed automatically at search time. The resulting tree must describe the construction in terms that can be matched to the corresponding representations in the collection.

The paper describes LASSY Small as a collection of unordered dependency trees. In a dependency analysis, a relation identifies the function of a dependent with respect to the element or phrase that governs it. GrETEL also uses category information for grammatical groupings such as noun phrases and infinitival phrases. The trees distinguish a node's own category or POS from its relation to its parent. For instance, a node can have the category of a prepositional phrase and serve as a modifier of the phrase above it. Those are separate facts, and both can appear as search conditions.

Unordered here concerns the way the structural relations are matched. The same dependency configuration can describe words that occur in a different sequence. Information about where a word begins is stored separately in the XML, so an order-sensitive query can use it when needed. This separation is central to the particle case. The analysis can preserve the same particle-to-verb relationship whether the particle interrupts the sequence of verbs or comes before it. The difference becomes accessible by comparing the positions attached to the terminal nodes, the nodes corresponding to words.

The authors also adjust both the treebank and the parses of input examples to make a particular kind of generalisation possible. In the original representation, a lone noun is not given an extra noun-phrase node with that noun as its only child. A structural rewrite places bare nouns and names under noun-phrase nodes. This allows a phrase-level query to use a common shape for a bare item and a larger noun phrase. The same rewrite on both sides is important. A subtree extracted from an input example can match a collection tree only if the representations agree about the nodes required by that query.

This preparation also explains a detail of the first case study. A noun phrase can be present in the broader pattern even if its head carries the special tag for a name. The phrase node gives the query a point of agreement across candidate structures. The narrower version adds a condition on the phrase's head and consequently distinguishes the common-noun case. A preprocessing decision about tree shape and a query decision about how specific to be thus have separate effects. The rewrite creates a shared structural position, while the query determines what is allowed to fill it.

#### Find the smallest structure that connects the selection

GrETEL transfers the decisions from the input matrix to the parse. The Subtree Finder looks for the marked words and identifies the lowest node that dominates them all. A node dominates a selected word when the word can be reached by following branches downward from it. The lowest shared node is the nearest point in the tree from which all the selected items can be reached. A higher node could also connect them, but it would introduce more of the surrounding structure into the search.

In the nominalisation example, the selected words belong to the part of the sentence about killing elephants. The rest of the sentence says that the activity is prohibited. Since the selected words can be connected inside the nominalisation, the larger statement is unnecessary to the extracted pattern. The highest node of the retained structure is a noun phrase. Within that structure, the route to the noun governed by *van* includes the prepositional phrase and the object noun phrase. The intervening nodes matter because they specify how the selected words are related. A flat list of the selected forms or tags would leave those connections unspecified.

There is another consequence of choosing a subtree as the unit of retrieval. The relation on its top node formerly described the node's attachment to a parent in the example. That parent lies outside the retained portion, so the generator omits the top node's relation to it. A matching phrase can then occur in a different role in a larger sentence. By contrast, dependency relations that connect material within the subtree remain relevant. This is how GrETEL can preserve a configuration inside the nominalisation while returning it in a variety of sentence contexts.

The article's examples also show why the size of the input and the size of the query are separate decisions. A complete sentence can give Alpino the setting in which to analyze a construction. The chosen subtree may still be small. Conversely, a fragment can be sufficient when it supplies both the elements of interest and the structure between them. In the verb-particle case, the subordinate clause provides the verbal configuration and relative order under investigation without requiring the surrounding sentence about a person's reaction to a meeting.

#### Express the retained structure in XPath

The XPath Generator translates the subtree into tests over the XML nodes of the collection. The paper represents these conditions as XPath expressions. The following Unicode forms state the same structural tests in terms of the relationships they require. Each predicate applies to a possible match in the treebank. The tests combine category labels, dependency relations and, where selected, lexical attributes. The query asks for the specified children and relationships to exist. Other aspects of the candidate tree can vary where the search places no condition on them.

The nominalisation pattern requires a noun phrase with *het* as its determiner, a verb as its head and a modifying prepositional phrase. The prepositional phrase has *van* as its head and a noun phrase as its object. The more specific query also asks for a common noun as the head of that object. The conditions on the parent and on the preposition connect the object to a particular place in the tree. They give the search a way to distinguish it from an arbitrary noun phrase somewhere else in the same sentence.

```
N(n) ≡ NP(n) ∧ DetHet(n) ∧ HeadVerb(n) ∧ ∃p [ModPP(n, p) ∧ HeadVan(p) ∧ ∃o (ObjNP(p, o) ∧ HeadNoun(o))]
```

Here `N` is the more specific nominalisation pattern and `n` is the candidate node. `≡` means that the expression on the right defines when the predicate on the left holds. `∧` means that each joined condition must hold, and `∃` means that a node satisfying the conditions must exist. Parentheses delimit predicate arguments or group conditions. The brackets set off the tests governed by the existence of `p`, and commas separate arguments. `NP(n)` gives the search root the noun-phrase category. `DetHet(n)` requires a determiner child tagged as a determiner whose lemma is *het*. `HeadVerb(n)` requires a head child tagged as a verb. The variable `p` denotes a child that `ModPP(n, p)` specifies as a modifying prepositional phrase, and `HeadVan(p)` requires its head to be a preposition with the lemma *van*. The variable `o` denotes the noun phrase that `ObjNP(p, o)` specifies as the preposition's object. `HeadNoun(o)` requires that phrase to have a head tagged as a common noun.

These tests distinguish the labels a node has from the role it fills. The generated query identifies each relevant relationship with `@rel`, the XML attribute for a node's relation to its parent. It tests a phrase category through `@cat` and a grammatical word class through `@pos`. Where a user chooses a lemma, the generator tests the `@root` attribute. In spite of the name of that attribute, it refers to the lexical form in this setting. The root of the extracted subtree is a separate notion, referring to the highest retained node in the structure.

The authors' advanced search example removes the test on the object noun phrase's head. In the following restatement, the conditions through the object node remain in place.

```
B(n) ≡ NP(n) ∧ DetHet(n) ∧ HeadVerb(n) ∧ ∃p [ModPP(n, p) ∧ HeadVan(p) ∧ ∃o ObjNP(p, o)]
```

`B` is the broader nominalisation pattern and `n` is again the candidate root. `NP`, `DetHet` and `HeadVerb` give that root its category and require its determiner and verbal head. The variable `p` is the modifying prepositional phrase identified by `ModPP`, and `HeadVan` gives it a prepositional head with the lemma *van*. The variable `o` is its object noun phrase as required by `ObjNP`. `≡` defines the pattern, `∧` joins required tests and `∃` requires an instance of the variable that follows it. Parentheses enclose predicate arguments, brackets group the conditions on `p`, and commas separate arguments. Ending the tests at `ObjNP` lets the query match an object noun phrase without imposing a POS tag on its head.

The user can run the initial expression in basic search mode. The authors describe searching all of LASSY Small or selecting subcorpora. In advanced mode, a user who knows XPath can edit the generated expression. The head restriction in the nominalisation study is an example of a meaningful edit because it can be related directly to the parse. An analyst can see which branch was inherited from the example and decide whether that branch defines the research target or merely reflects a detail of the original sentence.

#### Add word order where the question requires it

The particle study begins with a subordinate clause containing a finite verb, an infinitive and a particle associated with the infinitive. The finite verb is the inflected verb in the construction. The infinitive supplies the other verbal head, and the particle receives its own dependent node in this example. The corresponding structural query requires a subordinate clause with a verbal head and an infinitival verbal complement. Inside that complement, it asks for a verbal head and for a dependent with the relation and POS used for the separable particle.

```
S(c) ≡ Sub(c) ∧ HeadVerb(c) ∧ ∃i [InfComp(c, i) ∧ Particle(i) ∧ HeadVerb(i)]
```

`S` is the structure-only pattern and `c` is a candidate clause node. `Sub(c)` specifies its subordinate-clause category and `HeadVerb(c)` requires a verbal head. The variable `i` is an infinitival phrase. `InfComp(c, i)` requires it to be the clause's verbal complement. `Particle(i)` requires a child carrying the separable-particle relation and the particle POS, while `HeadVerb(i)` requires a verbal head inside the infinitival phrase. `≡` defines the pattern, `∧` requires the joined tests together, and `∃` requires a suitable instance of `i`. Parentheses enclose predicate arguments, brackets group the tests on `i`, and the comma separates the clause and complement arguments.

Here the structural pattern uses the same relationships for the orders the authors investigate. The relevant difference is whether the particle falls between the finite and infinitival verbs or before both. The XML stores the starting position of each relevant word in the `begin` attribute. GrETEL's Ordering Filter reads the order of the words in the example and incorporates comparisons between these attributes into the generated XPath. A result can occur anywhere in its sentence. It needs to reproduce the relative order expressed by the comparisons.

For the interruption example, the finite verb *moet* precedes the particle *kennis*, and the infinitive *maken* follows the particle. The position tests are as follows.

```
b(f) < b(p) ∧ b(p) < b(v)
```

`b` gives the starting position stored in the `begin` attribute of a word node. `f` denotes the finite verbal head, `p` the particle, and `v` the infinitival verbal head. Parentheses give the word whose position is being read. `<` means that the word on the left begins earlier in the sentence than the word on the right. `∧` requires both comparisons to hold. The XPath navigates from the finite head to the particle in the verbal complement for the first comparison. The other comparison checks the particle's position against the verbal head inside that complement.

In the example without interruption, *kennis* comes before *moet* and still precedes *maken*. The generated expression reverses the first comparison and retains the second.

```
b(f) > b(p) ∧ b(p) < b(v)
```

`b` again gives the `begin` position. `f` stands for the finite verb, `p` for the particle and `v` for the infinitival verb. Parentheses associate a word with its position value. `>` requires the finite verb to begin later than the particle. `<` requires the particle to begin earlier than the infinitival verb. `∧` makes both conditions necessary. The comparisons leave the distance between words open, so intervening material can occur as long as the tested order and relationships hold.

The figures of the parses display features such as relation, category or POS, and lemma. The word positions are available in the XML even though the graphical representation omits them. This matters for understanding why the same-looking structural diagram can generate different queries. Enabling the filter gives the generator access to information beyond the parent-child arrangement shown in the figure. It also means that a user who wants order to be significant can express that preference without writing the paths needed to compare the positions by hand.

#### What the system needs from its data

The method uses a parsed example, user selections and a prepared collection of trees. The paper describes no training stage for the query generator. It documents a procedure for converting the chosen subtree to a query, including whether the generator should use the additional order information. Alpino provides the initial analysis, and the treebank already supplies the syntactic annotations against which the pattern is tested. Both are subject to the structural adjustment for bare nouns and names described by the authors.

The authors outline requirements for adapting the approach to another collection. An available parser would need to produce structures comparable with those used in the treebank. Terminal nodes would need to carry the word form, lemma and POS required by the selection matrix. The collection would also need to be expressible in Alpino XML or a similar format the approach could use. The paper names the Charniak parser and the Penn Treebank as a possible pairing and points to tree-shaped resources as candidates for conversion. These are proposed conditions for adaptation. The implementation investigated in the case studies uses Dutch and LASSY Small.

### Experiments and results

#### What the demonstrations measure

The evaluation consists of case studies on LASSY Small. The paper gives the size of the complete treebank as 65k sentences. GrETEL can restrict a search to selected subcorpora, but the nominalisation counts come from the complete corpus, and the particle study reports its counts for the LASSY Small searches. The unit called a hit is a matching construction returned by the query. The sentence count measures how many distinct sentences contain those matches. The distinction matters because one sentence can contain more than one qualifying construction.

The cases compare versions of a GrETEL search. The generated nominalisation query is the starting point for an edit that makes it less restrictive. The unordered particle query is the starting point for inspecting the effect of adding order requirements. These comparisons show what changes in the retrieval set when a particular condition changes. The paper reports corpus matches and illustrates them with actual sentences. It gives no separate reference set of annotated target occurrences from which a reader could obtain precision or recall, and it reports no benchmark split.

The difference between counts and accuracy is particularly important here. A hit answers the question posed to the treebank, as expressed by the generated or edited query. Whether the hit also answers the researcher's broader linguistic question requires interpretation. That interpretation is part of the case studies. The selected examples show why some matches are useful and why particular kinds of expressions can require another search. The counts are best read together with the grammatical and representational conditions that produced them.

#### Nominalisations with *het* and *van*

The first target is a nominalisation built from a verb. In the construction under study, an expression denoting an action occupies a position available to a noun phrase. The authors choose an example about the prohibition on killing elephants. Inside the relevant phrase, *het* is the determiner, *doden* is the verbal head, and *van* introduces the phrase that identifies what undergoes the action. The syntactic query uses the prepositional structure recorded by the treebank to find the construction.

The example has a particular action and a particular entity. In the input matrix, the authors allow both of those lexical choices to vary. The verb is selected by POS, so another verb can occupy the same place in the tree. The noun associated with the preposition is also selected by POS. The determiner and preposition are selected by lemma. This captures the intended lexical stability of *het* and *van* while permitting variation in the other selected positions.

Across the full LASSY Small treebank, the search generated automatically yields 1288 matches distributed over 1206 sentences. The paper's examples show that the query can retrieve constructions about very different activities. The authors illustrate it with passages about communities living together, compliance with regulations and satellites observing oceans. Other examples concern isolating a figure and filling out a survey. The phrases appear in different larger contexts, which is possible because the query tests the internal nominalisation and its modifier without requiring the attachment found in the original example.

These matches also help explain the role of the POS condition on the head of the object phrase. The phrase introduced by *van* can be longer than the noun selected in the input. A search for a common-noun head can admit a noun phrase with its own modifiers because the condition specifies the category of its head and its attachment to the preposition. The query can therefore generalise to extended descriptions while remaining specific about the kind of item at the head. The paper uses the difference between a common noun and a name to show where that specificity becomes restrictive.

In LASSY Small, a proper name carries a separate tag from a common noun. The automatically generated query includes the common-noun condition because of the noun selected in the input example. In advanced mode the authors remove that condition, leaving the preposition's object defined at the phrase level. The edited search returns 1391 hits in 1299 sentences in the same complete corpus. Among the examples the paper discusses are phrases involving a person named Bush and a commercial name. The authors also identify multiword expressions among the kinds of heads made available by the broader pattern.

Nominalisation query variants in complete LASSY Small by matching constructions Removing the common-noun head requirement expands the set of matching nominalisations.

**The numbers**

| System or setting | hits |
| --- | --- |
| GrETEL generated query with a common-noun head | 1288 |
| GrETEL advanced query without the head restriction (this paper) | 1391 |

The chart uses higher counts to indicate broader retrieval under the common structural conditions. The edit retains the noun-phrase category of the object and the requirement that it belong to the phrase headed by *van*. It also preserves the determiner and verbal-head requirements of the nominalisation. A tree that satisfied the additional common-noun condition still satisfies the tests that remain. The broader results therefore follow from deleting a predicate, and the extra examples show what that predicate excluded in practice.

#### Particles inside and before a verb cluster

The second study concerns position inside Dutch subordinate clauses. The authors explain that finite and non-finite verbs tend to form a cluster in this setting. A non-verbal element can sometimes occur within that cluster. One example is the particle belonging to a separable verb. The case study asks for occurrences in which such a particle interrupts the verbal complex and for occurrences in which the particle precedes it.

The starting example comes from a sentence about a person having to meet her mother-in-law. The authors enter the relevant subordinate clause. In the first order they examine, *moet* comes before *kennis*, and *maken* follows it. The natural-language construction provides all the components for a search, but the basic generated query uses the tree connections without testing those surface positions. At that level, the particle remains attached within the infinitival complement in either order.

In LASSY Small the structure-only search returns 98 hits in 95 sentences. This is the broad comparison for the order-sensitive searches. The authors examine a particle relation inside a particular subordinate-clause structure, so the total is a count under those structural tests. It gives a set of examples in which the relevant annotation is present and in which the order distinction can be applied. The number alone has no way to show which side of the finite verb a particular particle occupies.

The authors next enable the Ordering Filter for the interruption example. The generated query uses the finite verb's position before the particle and the particle's position before the infinitive. It finds 4 hits in 4 sentences. The paper presents all of these matches. Its examples include a context about moving forward with Europe, a passage about a child attending a particular school, a sentence about elected people working on environmental ideas, and a description of light passing through a crystal. Their vocabulary varies. The shared evidence is the position of the annotated particle with respect to the two verbal heads and the relevant structure of the subordinate clause.

For the complementary search, the authors use the otherwise similar clause with *kennis* before *moet*. The first comparison now requires the particle to precede the finite verb. The comparison with the infinitive stays the same. That query finds 94 hits in 91 sentences in LASSY Small. The examples concern subjects as different as agreements with the Netherlands, gas and electricity use in the home, and a gas causing a greenhouse effect. The point of the examples is to show how the same order relation can be instantiated by different verbs and particles in different contexts.

GrETEL particle searches in LASSY Small by matching constructions Requiring a particle to interrupt the verbal complex narrows the structural search to the targeted order.

**The numbers**

| System or setting | hits |
| --- | --- |
| Structure-only query for particle constructions | 98 |
| Order filter for a particle before the verbal complex | 94 |
| Order filter for a particle inside the verbal complex (this paper) | 4 |

The direction in this chart describes selectivity for the interruption question. The structure-only query is useful when the analyst wants the broader annotated configuration, and the query for preceding particles addresses the authors' other order question. The low count for the interruption query shows how much material a particular order requirement leaves available under the chosen structure. The paper supplies examples supporting the intended reading of that subset. It does not estimate how common interrupted complexes are across all representations of separable verbs in the corpus.

#### What the retrieved examples establish

The nominalisation study shows that GrETEL can use a familiar sentence to retrieve instances whose central grammatical structure is preserved even when the action, the participants and the surrounding clause change. It also shows the effect of replacing a detailed condition on an object phrase's head with a condition at the phrase level. Since the edit is visible in XPath, the researcher can connect the broader set of results to a particular change in the query.

The particle study shows that a dependency configuration can support distinct searches once the order of its terminal words is considered. The broad search is possible with the structural part of the generated query. The focused searches are possible because the corpus retains position values and because the filter can compare those values. The cases together show how researchers can move between wider and narrower definitions of a target and inspect what those choices recover. The paper demonstrates that behavior on the annotated structures used in LASSY Small.

### What the ablations show

The paper reports no formal ablation study. It does offer controlled query comparisons in which the effect of a condition can be read from what changes in the expression and examined in the retrieved examples. The nominalisation comparison changes the specificity of a phrase description. The particle comparisons ask whether word order matters and which relation between positions is required. A further discussion of joined spellings illustrates a different issue, where the target may have another representation in the treebank.

#### Removing a head condition broadens one part of the query

The nominalisation comparison begins with the pattern produced from the selected example. The input contains a common noun within the prepositional phrase, and the POS choice asks the query to carry that property into the search. When the authors later delete the head condition, they change precisely the part that determines which heads the object phrase can have. The structural context of that phrase continues to be required. The comparison is informative because the paper shows the original and edited XPath and connects the edit to a particular branch of the extracted tree.

The broader query's extra matches make the role of that branch concrete. An analyst primarily interested in nominalisations with a *van* phrase can treat the internal category of the preposition's object as incidental. An analyst studying common-noun objects can retain the original restriction. A search generated from an example can express either level of detail, but the automatically generated version in this case inherits a condition from the initial selection. The case identifies where that condition entered the search and how an analyst can change it.

The existence of more matches is predictable from the removal of a requirement. What the controlled comparison adds is an account of the grammatical material affected in this collection. Names receive their own tag, so a search for a common-noun head leaves them outside that branch of results. A phrase-level condition can recover them where the enclosing structure matches. This is evidence for the practical consequences of search specificity under the LASSY conventions. The corpus counts alone would not tell a reader that the change is related to proper names and multiword expressions.

#### Comparing surface orders isolates a different property

The structural particle search and the order-sensitive searches describe the same kind of local dependency configuration. Adding position comparisons changes how that configuration can be arranged in the sentence. The basic query supplies a reference for how many candidates the structural conditions admit, while the order-sensitive query from the interruption example asks a narrower question. The results illustrate why the broader query admits sentences that are suitable for studying both positions.

The clearest controlled comparison is between the two order-sensitive expressions. The authors change the direction of the comparison between the finite verb and the particle. The particle's relation to the infinitive keeps its direction, and the relevant category and relation tests remain in place. With that local change, the queries separate the examples in which the particle is between the verbs from those in which it comes before the verbal complex. The comparison is about the effect of relative order within the annotated construction, so absolute offsets and the length of the full sentence are immaterial to that distinction.

This also clarifies what the Ordering Filter contributes. It preserves a feature of the input that the subtree structure leaves implicit. The user communicates the desired arrangement by the example and the filter setting. The generator supplies the cross-node comparisons needed to express the arrangement. The paper's demonstration gives evidence about the query that the filter produces and the positions found in its results. There is no timing study or comparison of people entering the same conditions manually, so the magnitude of any savings in effort is unknown.

#### Joined spellings reveal a boundary of the tree pattern

The authors discuss a case where an equivalent separable verb construction can have a different shape in the annotation. When a particle is written together with its verb, the parser can record it within the verb lemma and give it no independent node. A query requiring a child node tagged as a particle cannot satisfy that requirement using characters inside a lemma. Adding or removing a position test leaves that representational issue untouched.

The paper describes different searches for these cases. A basic search can use the lemma of a particular joined verb. With advanced editing, a researcher can also look for the space that the paper says marks separable verbs in the lemma representation. These suggestions identify additional ways into the collection and motivate the authors' advice to use multiple examples for more exhaustive work. The paper gives no retrieval totals for these additional searches. Their role in the analysis is to explain a concrete missing category and how another expression could reach it.

Taken together, the comparisons distinguish choices about the query from choices already made in the annotation. The researcher can directly relax a head restriction or ask the generator to test relative positions. Where the annotation stores the relevant material in a different place, a different subtree or lemma condition is needed. This distinction explains why the same interface can be sufficient for a carefully delimited search even when the broader linguistic category requires several searches.

### Limitations

#### Limits identified by the authors

The authors explicitly identify differences in annotation as an obstacle to retrieving all linguistically related constructions. The particle study provides the example. A written particle with its own tag is accessible through the dependency search. A particle represented within the lemma of a joined verb calls for a query that examines the verb node. The limitation applies even when the researcher would group both cases under the same linguistic description. The generated search follows the representation available in the example and the treebank.

For a more exhaustive search, the authors advise beginning from multiple input sentences. The practical reason is that an example makes a particular structural analysis available to the generator. If the phenomenon has another tree shape or is recorded with another tag, an example showing that form can expose features the initial search lacked. The advice is illustrated by the particle case, where searching for a specific lemma and searching for a separately tagged dependent use different information. The paper leaves the coverage obtainable by combining those searches unmeasured.

The authors also state conditions on portability. The treebank and the parser must produce sufficiently comparable structures. Matching requires the terminal features used by the interface and a tree representation that can be converted to a suitable XML layout. The approach can in principle accommodate other grammatical frameworks or languages under those conditions, but the implementation described is optimized for LASSY Small. The paper identifies resources to which the approach could be adapted and presents the actual demonstrations on the Dutch collection for which it was designed.

Search speed is a further limitation the authors raise. They describe XPath as slow, particularly on large treebanks, and suggest using the Varro tree indexing toolkit as the basis for a faster query engine. They also discuss a web version that would integrate the example mechanism with search, the inclusion of CGN and LASSY Large, and a way to try more abstract subtrees when a query returns no results. These proposals establish which capabilities the authors viewed as future work. The paper provides no timings for the current searches or for the proposed changes.

#### Limits of the evidence in the case studies

The evaluation gives a close view of how particular queries behave. Its scope is two linguistic cases with examples and corpus totals selected to explain the method. There is no comparison with a separately constructed inventory of all the relevant nominalisations or particle constructions. A reader can verify that the reported searches find the displayed kinds of structures. The evidence does not extend to an estimate of the proportion of all relevant structures that the method would retrieve.

This distinction is especially important for the particle counts. The search begins with a particular type of subordinate clause and follows particular paths through its verbal complement. It requires a separate node with the particle annotation. The reported order distributions are conditional on that representation and on the structure the authors specified. The joined-verb example already supplies a reason to expect related occurrences outside that search. A broader claim about Dutch verbal complexes would need an analysis that took those different encodings into account and defined which constructions belong in the comparison.

Similarly, the nominalisation comparison shows an increase in coverage of the query's structural pattern after an edit. The more general query admits known types of relevant candidates, including names. The study does not systematically judge every additional match against an independent definition of the linguistic target. The appropriate amount of generalisation therefore remains a research decision. A head restriction can encode a real part of one question and an incidental property of the example for another. The result sets show the consequences of that choice in LASSY Small.

The design also depends on the automatic analysis of the input. The Subtree Finder can act only on the tree Alpino supplies. If the parser assigns a different role or phrase boundary from the one the user has in mind, the query can faithfully transfer a structure that is poorly suited to the intended search. This is a consequence of the pipeline, and the paper gives no separate evaluation of parse errors or ambiguous inputs. Its demonstration establishes how the selected subtree becomes a search when the example receives the analysis shown in the case study.

The user still makes choices that affect the result. Marking a word by lemma carries a lexical requirement forward, while marking it by POS generalises to a class. Leaving a word unselected can remove a detail from consideration, but a branch connecting selected words can still contribute a category or relation. The example that the user knows best may also contain a grammatical choice narrower than the phenomenon under investigation. The advanced edit in the nominalisation study makes that possibility visible, and it illustrates a type of generalisation that the user can make with knowledge of the formal query.

Finally, the paper motivates GrETEL through the difficulty many linguists encounter with formal search and annotation conventions. The reported evaluation demonstrates how a user can initiate a search from ordinary Dutch and how the system fills in the formal expression. It records no user study comparing time, accuracy or ease of use against a graphical tool or manually written XPath. The accessibility contribution is thus best understood as a property of the interaction the authors designed and demonstrated. The extent to which it reduces the burden for different researchers remains an empirical question.

### What came after

*Fast and Flexible Example-Based Treebank Search with Vector Symbolic Architectures* (2026) cites the GrETEL paper and takes up example-based treebank search using vector symbolic architectures. It continues the line of work in which an example is the starting point for a structural search. The title identifies speed and flexibility as goals and names the framework used to pursue them. It does not establish which parts of GrETEL were retained, how the later system represents a query or how it performed. [Fast and Flexible Example-Based Treebank Search with Vector Symbolic Architectures](https://md.research.elamur.ai/free/en/papers/roussel-2026-fast-flexible-example-based-treebank/)

The connection concerns what happens after a researcher supplies an example. In GrETEL, the route is explicit. Alpino provides a tree, selections delimit a subtree, and XPath expresses the conditions for a match. The 2012 paper already leaves open how to make this form of search faster and how to try broader patterns when a specific example yields no results. The later work's stated emphasis on speed and flexibility returns to those general concerns through a different computational framework. The citation establishes a continuation of the research question. Its title supplies the extent of the comparison that can be made about the later approach.

## Cite

Cite as Liesbeth Augustinus, Vincent Vandeghinste and Frank Van Eynde. 2012. Example-Based Treebank Querying. Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12).

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

```bibtex
@inproceedings{augustinus2012example,
  title = {{Example-Based Treebank Querying}},
  author = {Liesbeth Augustinus, Vincent Vandeghinste and Frank {Van Eynde}},
  booktitle = {Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12)},
  year = {2012},
  doi = {10.63317/29r2ytrq6pdi},
  url = {https://doi.org/10.63317/29r2ytrq6pdi}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
