---
title: "Dutch Humor Detection by Generating Negative Examples (2020)"
description: "Dutch Humor Detection by Generating Negative Examples tests whether classifiers can tell Dutch jokes from lookalikes made by replacing…"
canonical: "https://research.elamur.ai/free/en/papers/winters-2020-dutch-humor-detection-generating-negative/"
---
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/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/winters-2020-dutch-humor-detection-generating-negative/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / Dutch Humor Detection by Generating Negative Examples

# Dutch Humor Detection by Generating Negative Examples

Paper · 2020 · Thomas Winters and Pieter Delobelle

**Authors:** [Thomas Winters](https://md.research.elamur.ai/free/en/authors/thomas-winters/) and [Pieter Delobelle](https://md.research.elamur.ai/free/en/authors/pieter-delobelle/) · **Year:** 2020 · **Venue:** arXiv:2010.13652 · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**4** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3094423430) · [arXiv:2010.13652](https://openalex.org/S4306400194) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/2010.13652)
- [arXiv 2010.13652](https://arxiv.org/abs/2010.13652)
- [OpenAlex](https://openalex.org/W3094423430)

Citations: OpenAlex, 2026-10-14.

## Summary

A detector can get good at picking jokes out of a pile of news headlines without learning what makes a punchline work. The two kinds of writing differ in their vocabulary, length, and structure, which gives the detector several ways to guess where a text came from. The authors of *Dutch Humor Detection by Generating Negative Examples* build a more demanding test. They start with Dutch jokes and make new versions by replacing important words with grammatically similar words from other jokes. The resulting texts keep much of the original phrasing and often still look like jokes. The changes can break the connection between the setup and the ending.

The authors compare Dutch jokes with news headlines, proverbs, and the generated versions. The headline and proverb comparisons give them a point of reference for the more closely matched test. They also try presenting an original and its edited version together. This gives the detector a specific choice to make: identify the original joke when both texts have much the same structure. In both formats, the ground truth comes from how the examples were collected or generated. The authors describe the study as the first investigation of automatic humor detection for Dutch that they knew of.

On the held-out tests where the detector sees one text at a time, RobBERT achieves 98.8% accuracy against news headlines and 99.6% against proverbs. Its accuracy falls to 89.2% against the generated examples. The recurrent and convolutional baselines recognize about 94% of examples in the easier comparisons but struggle on the generated ones. RobBERT also performs reasonably well when it sees the two versions together, although its accuracy is lower in that format than when judging them separately. The authors suggest that putting both texts into the same input can cause more of the original joke to be cut off.

The study shows how much the choice of negative examples can change what a humor detection test measures. RobBERT can distinguish collected jokes from close imitations more successfully than the other systems tested. What it uses to do so remains open. When the version trained on generated examples was applied to ordinary headlines and proverbs, it labeled many of them as jokes. Some edited jokes also retained enough sense or wordplay to make their negative labels debatable. The stronger test narrows the ways a detector can succeed, while leaving room for it to rely on coherence or signs of editing. The Dutch system behind the strongest results is [RobBERT](https://md.research.elamur.ai/free/en/papers/delobelle-2020-robbert-dutch-roberta-based-language/).

## Deep dive: Dutch Humor Detection by Generating Negative Examples

Dutch Humor Detection by Generating Negative Examples tests whether classifiers can tell Dutch jokes from lookalikes made by replacing key words. · 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

#### What a reader does with a punchline

Suppose a short text begins with a question. As a reader, you form an expectation about the kind of answer it calls for. The ending can make that expectation seem mistaken and give you a different way to understand the question. The revised reading can make sense of wording that initially appeared ordinary. In the account of humor the authors use to motivate their work, the movement from the first reading to the second is part of what makes a joke work.

The paper draws on incongruity-resolution theory. An incongruity arises when the ending clashes with the interpretation the setup has encouraged. Resolution occurs when the reader finds another interpretation that accommodates the ending and makes sense of the text as a whole. The clash and its resolution play different roles. A surprise can make the first reading untenable and leave the reader with a sentence that seems arbitrary. A successful resolution gives the reader some reason to go back and reinterpret what came before. This matters for the experiment because replacing a few words can preserve the surprise while removing the means to resolve it.

The theory also explains why word order matters to the authors. Moving a punchline ahead of its setup can reveal the alternative reading before the reader has formed the expectation that the ending would overturn. The words themselves could all survive the move. A representation that records which words occur without adequately representing their order could treat the reordered version much like the original. The reader experiences a different sequence of discoveries. A classifier sensitive to sequence has a way to represent that difference, even if the test ultimately asks for a simple yes or no.

There is a further difficulty in moving from this account of a reader to an automatic decision. The authors point out that the effect depends on what people can infer from the text and how easily they infer it. A reader must be able to arrive at the initial reading and then see the alternative. The first may be too readily displaced for the change to register, or the alternative may be too difficult to find. The role of the reader makes full humor understanding a more ambitious proposition than assigning a category to a text. Linguistic knowledge helps with ambiguity and wordplay. Familiarity with the situation described can be just as important.

#### The commonplace negative example

Earlier studies, as the paper describes them, often put the computational question in a simpler form. Gather texts identified as jokes and texts from a source assumed to be nonhumorous, then train a system to tell the classes apart. Each text gets a label, and a prediction counts as a success when it agrees with that label. This is a binary task in [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/).

News and proverbs were established sources for the negative class in the work the authors discuss. The attraction is practical. A collection of jokes supplies the positives, and an existing collection of ordinary writing can supply a large set of negatives. The procedure gives a reproducible category for each item and makes it possible to evaluate systems on the same material. The Dutch study keeps these familiar comparisons so that it can see what happens when the negative examples change. An early study cited in this connection is [Making Computers Laugh](https://md.research.elamur.ai/free/en/papers/mihalcea-2005-making-computers-laugh-investigations-automatic/).

The trouble is that each class inherits the properties of the source that supplied it. A headline has been written to summarize or announce a story. A proverb is usually a compact expression. A joke can spend much of its length preparing an ending. If those kinds of text also differ in the words they use, a detector can draw on vocabulary and form together. Classifying a text correctly may then involve recognizing a familiar publishing convention or a stock character. Those are valid clues for the dataset as constructed, though they offer limited evidence about how the detector handles a punchline.

Some earlier systems used features chosen by researchers, many of them tied to words. A word-based feature is a measurable property that a classifier can use, such as whether a certain form occurs. Features constructed with humor in mind can encode more specific ideas about a joke than a plain inventory of frequent terms. The paper gives this distinction some weight when comparing its own simple word-based baseline with previous work. It cites studies of humor recognition as well as work concerned with identifying the parts of a text that contribute to its humor, such as [Humor Recognition and Humor Anchor Extraction](https://md.research.elamur.ai/free/en/papers/yang-2015-humor-recognition-humor-anchor-extraction/).

For the Dutch study, the risk is sharpest when a clue is common in the joke collection and scarce everywhere else. A detector that gives weight to a recurring kind of name can do well whenever the test includes many familiar joke characters. It can use that association before considering what the character says, how the text ends, or how the ending changes the meaning of the setup. If a generated negative also contains the name, the same feature becomes less decisive. The authors use that observation to decide what the new negatives should preserve.

#### Context sensitivity and the Dutch data gap

The paper identifies contextual representations as a promising way to handle the sequence of a joke. A conventional representation can assign the same vector to a word whenever it occurs. That vector can carry associations learned from other texts, so it is richer than a simple record that the word is present. A contextual representation can also change according to the current sentence. When a form can act as a noun or a verb, the words around it can help determine what interpretation the representation should encode. That is the distinction the authors draw between fixed and contextual [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/).

Prior English work had already shown that systems from the BERT family could do well at recognizing humor in English datasets. The authors cite those successes as a reason to try a similar approach in Dutch. They also point out a possible weakness. Some jokes hinge on similarities between the letters or forms of words, and the units a system manipulates do not necessarily expose those similarities directly. The resulting picture gives the authors a good reason to test contextual processing while leaving difficult wordplay an open problem. A study they cite for earlier English results is [Humor Detection: A Transformer Gets the Last Laugh](https://md.research.elamur.ai/free/en/papers/weller-2019-humor-detection-transformer-gets-last/).

The paper also describes a different way of controlling for text source. Some English corpora pair satirical headlines with closely related alternatives. When two texts share their broad subject and format, the difference of interest can reside in a small edit. Such corpora offer an alternative to treating an unrelated news collection as the source of all negatives. They still require suitable paired material. The authors saw that as a practical obstacle for specialized tasks in languages where such collections were scarce.

Dutch already had work on computational humor, including projects that generated humorous material. The authors knew of no published Dutch humor detection study or public dataset for that task when they began. Their design therefore had to address both collection and evaluation. The collected jokes establish a starting point. Automatic editing gives each joke the potential to supply a nearby negative, using the existing collection as a source of words. The resulting research question is whether the systems still recognize the collected jokes when their usual vocabulary and familiar structures are also available on the other side.

This is where the paper connects humor detection to [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/). The authors distinguish between generating a text from successive predictions and editing an existing text in place. Successive prediction can produce locally sensible passages while changing the overall length or losing a recurring format. For this study, a change in format would reintroduce one of the cues the authors want to control. An editing procedure starts with a format already present in the jokes. It can preserve that shape while changing the words that give the text its particular subject or make the ending fit.

### The method, step by step

#### Collect the originals and the conventional negatives

The authors gathered jokes from Kidsweek, DeBesteMoppen, and LachJeKrom. Together those collections yielded 3235 Dutch jokes. These are the positive examples for the humor detection comparisons. Their role extends to generation. The same body of jokes supplies both the text to be edited and the vocabulary from which the edits are drawn. A generated item therefore inherits material from the collection in several ways, through its original structure, the wording that stays in place, and the terms that replace selected words.

For comparison with existing benchmark designs, the authors gathered proverbs and news headlines as separate negative sets. The proverb collection came from the Dutch Wikipedia page for proverbs and contained 1887 entries. The authors uniformly sampled 3235 headlines from the 100K Dutch news headlines dataset. The joke collection and the news sample thus had the same stated size, while the proverb collection was smaller. Each negative source defines a separate decision problem with the jokes as positives. A system trained with proverbs as negatives learns a different distinction from one trained with headlines or edited jokes.

The authors also make available the implementation, trained systems, data collectors, and a demo. The collectors are part of the study's method because the source of an item determines its role during training and evaluation. A collected joke, a sampled headline, and an edited version of a joke enter the experiments through different routes. Their labels follow those routes.

#### Choose words that can carry the connection

The editing procedure is called a dynamic template. The starting joke supplies the template. Selected words become positions where the wording can change, while the surrounding text stays in place. The procedure uses grammatical categories to decide which words can go into those positions. A tagger identifies, for example, which words behave as verbs and which behave as nouns. The resulting categories help the procedure put a replacement into a position where a word of that kind belongs. This step uses [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/).

Think of a joke whose question describes an object and whose answer gives it an unexpected name. The description may contain a verb that suggests a particular action. That action can prepare a reinterpretation that makes the name in the answer work. A different verb can fit the sentence pattern while no longer supporting that connection. Changing a noun in the answer can disrupt it from the other end. The editing procedure gains leverage by choosing words likely to matter to the situation described, instead of treating every word in the text as equally important.

The paper's example begins with a riddle that connects Kermit, familiar as a frog in the joke, with something green that sticks to a wall. The ending works through the resemblance between the Dutch word for frog and the word for sticker. In the edited version, the action changes from sticking to making a telephone call, and the answer names Kermit as a spider. The question and answer still occupy the same roles and much of the wording is familiar. The replacement words have broken the connection that made the original pair of clues resolve into a pun. The example illustrates the kind of negative the authors want without requiring a verdict that every generated text is humorless.

A template in this method is specific to an original text. It is formed by deciding where within that text to substitute words. The finished output can still belong to a recognizable form such as the riddle in the Kermit example. Each original gives the process a different arrangement to preserve. That is useful when the joke collection contains more than one sort of structure. The generator can retain those differences because it edits existing texts rather than imposing one common format on all of them.

#### Control the substitutions

The procedure gives priority to words with low unigram frequency. A unigram is an individual token considered on its own, and its frequency records how commonly it occurs. A rarer word can be especially informative about the characters, actions, or objects in a joke. The authors use rarity as an inexpensive way to identify candidates for alteration. The criterion operates at the level of individual tokens. It has no special mechanism for asking which word a reader would identify as the pivot of a particular pun. The paper places this use of single tokens in the broader family of [N-grams](https://md.research.elamur.ai/free/en/concepts/n-gram/).

The settings come from the previous work that introduced the dynamic template procedure. The maximum word frequency is set at the 62% percentile. The authors set the minimum replacement rate at one per 25 characters and take context words from a random sample of three jokes. The first setting restricts the frequency range of the words considered for replacement. The second ties the minimum amount of editing to text length. The third supplies the local pool of material from which a grammatically similar replacement can be picked.

Length in this rule is measured in characters. The value of 25 applies to the replacement rule for generating a text. It is unrelated to the input limit of a classifier or to the length of any of the evaluation splits. The authors give the frequency setting as a percentile, which describes a cutoff in an ordering by frequency. They do not define it as the share of words edited in each joke. The random sample of donor jokes has still another role. It connects the choice of replacement words to actual vocabulary in the positive collection.

Because the generator draws vocabulary from jokes, a word associated with the subject matter of the originals can show up in generated negatives as well. The resulting classes use comparable word frequencies in the authors' description. The procedure also leaves much of each item's grammar and wording in place. These are controls achieved through construction. At a particular position, a substitution can still sound awkward or create a local grammatical problem, and a relatively small edit can leave a joke intelligible. The method makes the negative class more closely aligned with the positives in broad properties while allowing variation in how the finished items read.

The intended change is in what a text means. The generator is meant to preserve enough of the sentence pattern that a familiar shape, such as a question followed by an answer, remains a weak basis for decision. The edit can instead break the thematic connection between the two parts or leave an odd proposition where the original had a recognizable resolution. This creates a specific contrast for the classifiers. A system that compares how the parts fit together has more to work with than one that treats membership of the joke vocabulary as its main cue.

From collected Dutch jokes to matched evaluation items The steps in order.

#### Turn the same material into different decisions

In the single-text task, a classifier receives a text by itself and assigns it the joke or non-joke label. The negative class can come from headlines, proverbs, or dynamic templates. With headlines or proverbs, the item comes from an independent collection. With dynamic templates, it is an edited version of a collected joke. At prediction time the classifier sees the item alone, even when the experimenters know exactly which original it came from. Any comparison with a typical joke has to come from what the classifier learned during training.

The pairwise task changes the input and the question. One example contains an original joke and its generated counterpart, and the classifier is asked to identify the joke. Much of the text can be shared across the pair. If both versions have a familiar stock character and a similar ending pattern, those features describe the pair without settling which member to choose. Differences in wording, meaning, or fluency can become more salient because a comparison is available within the example itself.

The paper presents the pairwise setup as a step toward learning humor preferences. A choice between versions is a different kind of supervision from a class assigned in isolation. In this experiment, the choice is operationally defined by which text is the original. A human preference task would instead require judgments about which version people find funnier. The experiment provides related texts on which a relative decision can be studied, with the source of the labels remaining the collection and editing procedure.

#### Give the detectors different ways to represent a text

The simplest comparison uses Naive Bayes with TF-IDF features for 3000 `(1,3)`-grams. Here the gram range extends from individual tokens to stretches of three successive tokens. TF-IDF gives weight to a term using its frequency in a text and how widely it occurs across the collection. The feature can therefore capture both single words and short local sequences. The classifier uses the features as evidence for the two categories. It has a way to recognize a recurring expression, with limited means to connect the interpretation of that expression to an ending much farther away. Its weighting scheme is [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/).

The recurrent alternative uses long short-term memory, abbreviated LSTM. A recurrent system reads a sequence and passes a state from one position to the next. The state carries information from the positions already processed. LSTM adds gates that regulate how previous information is retained, accessed, or discarded. This lets a sequence of variable length be represented by a fixed-length vector, which can then support a class decision. The inputs are Dutch word embeddings. These supply representations of individual words learned from a broader collection of text, and the recurrent component adds information about their sequence in the current item. The background discussion connects this approach to [Efficient Estimation of Word Representations in Vector Space](https://md.research.elamur.ai/free/en/papers/mikolov-2013-efficient-estimation-word-representations-vector/).

The convolutional alternative, a CNN, also begins with Dutch word embeddings. Its two convolutional layers look for patterns across nearby positions. Max pooling keeps the strongest responses to those patterns, yielding a representation the classifier can use regardless of where a strong response occurred. This gives it access to local arrangements of words as well as to information about the words themselves. It can learn which patterns are useful during training. The paper relates the approach to [Convolutional Neural Networks for Sentence Classification](https://md.research.elamur.ai/free/en/papers/kim-2014-convolutional-neural-networks-sentence-classification/).

RobBERT supplies the most context-sensitive architecture of the comparison. The authors trace its design to BERT, whose encoder uses self-attention to relate positions in a text. A word representation can incorporate information from other positions around it, including words that occur later. In a joke, that makes it possible for a representation of part of the setup to depend on the ending. The architecture gives the system access to such relationships. A test of classification accuracy then measures how well the final decision agrees with the labels. It leaves the actual relationships used in each decision to further analysis. The authors describe the architecture through [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/) and [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/).

In the paper's account, BERT learns from tasks such as predicting missing words and deciding whether sentences follow each other. A component for a specific task can be adapted after this general training. RobBERT was trained on the Dutch portion of OSCAR following the revised training regime of [RoBERTa](https://md.research.elamur.ai/free/en/papers/liu-2019-roberta-robustly-optimized-bert-pretraining/). For humor detection, the authors adapt RobBERT using the examples and labels of the target task. That adaptation is [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/).

#### Adapt each sequential architecture to the pairs

In the pairwise LSTM setup, the two texts go through separate recurrent processing layers with trainable Dutch word embeddings. The resulting representations are joined before a fully connected layer. Bringing the representations together there lets the final decision depend on both texts. The authors use a similar arrangement for the CNN, retaining the same base architecture they had used for a single text. Both designs give each item its own representation before the final decision combines the evidence.

RobBERT handles the pair differently. The authors put both texts into the same input with a separator token marking their boundary. The token is a designated unit that tells the system where one text ends and the other begins. Shared processing gives the system access to both items within a single sequence. It also makes the texts share the available input space. An individual joke can occupy more of that space when entered by itself. With a pair, the space has to accommodate both versions and the boundary between them.

These implementations make the pairwise experiment a test of a particular way of providing comparison information. For the recurrent and convolutional systems, the comparison is mediated by the separately constructed representations. For RobBERT, the two texts are already together during contextual processing. Those are meaningful changes in what each detector can see and how it can use it. A change in accuracy between the single and paired versions must therefore be read in light of the input and architecture that produced it.

#### Separate selection from the final test

The authors use a random search to choose training settings for the LSTM, CNN, and RobBERT. Training settings chosen from outside the learning process are called hyper-parameters. A search run trains a system under one sampled assignment of those settings. The authors report 10 runs for the neural systems in the single-text experiment and describe the search spaces in the appendix. Comparing runs on validation accuracy gives them grounds for selecting the strongest run before measuring its final test performance.

The design gives validation and testing different jobs. Validation data help choose the settings. The held-out test data measure the accuracy of the chosen system on examples reserved for evaluation. The paper also estimates the maximum validation accuracy as a function of how many settings are tried. That analysis asks how the strongest result available from a search changes with the number of trials. It is informative even when the ultimate interest is in test accuracy, because a system that is especially sensitive to its training settings may look very different under a short search and a more extensive one.

### Experiments and results

#### What the three datasets ask of a detector

The single-text comparisons are jokes against news headlines, jokes against proverbs, and jokes against dynamic-template edits. The positives come from the same collection of 3235 Dutch jokes. The independent negative pools are the 3235 sampled headlines and 1887 collected proverbs. The dynamic-template pool changes the relationship between the classes by deriving negatives from jokes. The collection sizes describe the material gathered for the experiments. The headline figures for performance are held-out test accuracies for the individual comparisons.

Accuracy is the share of evaluation examples whose predicted class agrees with the assigned label. For example, accepting a collected joke and rejecting a headline are both correct on the jokes-versus-news test. In the pairwise experiment, a correct decision identifies the original within the pair. The paper describes reporting a 95% confidence interval with the held-out accuracy results. That interval concerns uncertainty around the reported accuracy. The scale on which the headline results are expressed is percentage accuracy.

The comparison includes a Naive Bayes baseline, an LSTM, a CNN, and RobBERT. Naive Bayes supplies a reference for classification using token-based features and brief sequences. The LSTM and CNN offer different ways to build features from sequences of Dutch word embeddings. RobBERT brings pretraining and contextual processing to the task. All of these choices matter when a classifier must move between recognizing a broad type of writing and noticing that particular words in an otherwise familiar shape no longer make the same sense.

#### What happens when the negatives look like jokes

The authors describe Naive Bayes as performing no better than random across the single-text datasets. They find this surprising in light of earlier English work, where similar classifiers had been useful. Their baseline uses TF-IDF features from tokens and short sequences. Some earlier systems incorporated other features selected by researchers. The Dutch result establishes how this particular baseline fares with the authors' representation and data. It leaves the performance of other feature designs open.

For the news and proverb comparisons, the paper describes the CNN and LSTM as recognizing about 94% of examples. This is the authors' broad account of the single-text results on the simpler datasets. Those architectures can learn enough from the text to tell many collected jokes apart from writing in these other forms. Their performance changes when the negatives come from dynamic templates. The authors describe both as failing to distinguish the original jokes reliably in that setting. Using Dutch embeddings and processing word order helped less when both classes shared vocabulary and structure.

RobBERT achieved held-out accuracy of 98.8% when the negatives were news, and 99.6% when they were proverbs. Its accuracy on the single-text dynamic-template task was 89.2%. Those are results for separately trained versions of RobBERT, each evaluated on the decision it was adapted to make. Reading them together shows what happened as the authors changed where the negative examples came from.

RobBERT held-out accuracy on Dutch jokes against different negative datasets Generated joke-like negatives produce the lowest accuracy in the single-text comparison.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| RobBERT with news headlines | 98.8 |
| RobBERT with proverbs (this paper) | 99.6 |
| RobBERT with dynamic-template edits | 89.2 |

The comparison with the older neural systems is particularly informative on the generated task. Several systems do well when they can use differences between sources. When the negatives preserve much of the wording and structure of jokes, RobBERT continues to make correct decisions often while the recurrent and convolutional baselines struggle. The design brings the systems closer to a question about how words and phrases fit together. The exact test is still a choice between a collected joke and an example produced by the authors' editing procedure. Performance depends on the signals that procedure leaves available.

The results also show why the authors kept the familiar comparisons. Testing the systems only on generated negatives would show which ones could solve that particular problem, but it would leave unseen how capable the weaker systems were on a conventional benchmark with unrelated negatives. The headline and proverb tasks establish that several approaches can give apparently strong results in a familiar setup. The generated task then shows how that success changes when the negative class is constructed from much of the same material as the positive class.

#### Stability during the search

The authors use the randomized trials to estimate how high validation accuracy is likely to go as the trial budget increases. This comparison puts results from multiple training runs into view. A high result from the best run can come from a configuration that is easy to find, or it can depend on a particularly favorable assignment of training settings. The validation analysis helps distinguish those possibilities within the authors' search setup.

On the news and proverb comparisons, the paper describes RobBERT as consistently reaching around 99% validation accuracy. The recurrent and convolutional systems sit a little below it. The LSTM also shows greater variability across assignments than the CNN or RobBERT. That variability matters when choosing a detector with limited opportunity to tune it. A weak LSTM run can reflect the settings chosen for that run, whereas strong results across settings make a system's performance more predictable within the search space studied.

The validation findings concern the search and therefore complement the held-out results. The approximate 99% describes RobBERT on validation for the news and proverb tasks. The corresponding test accuracies come from evaluating the selected runs on the held-out sets. Their values belong to different splits even where they are numerically close. The comparison of search curves considers budget in numbers of trials. That is the unit of search effort used in the paper's analysis.

#### The result of supplying both versions

The pairwise experiment brings the original and the generated alternative together. A classifier can use the fact that certain wording is common to both and look for evidence in the changed portions. For the kinds of pair the study constructs, this can be an appealing setup. The model has immediate access to an alternative that covers much the same subject and follows much the same layout. Its task is to decide which item is the original, given the other as a direct point of comparison.

The LSTM remains unable to reliably distinguish originals from generated alternatives in this format. The CNN improves only slightly relative to its single-text result with dynamic-template negatives. RobBERT performs reasonably well, but loses some accuracy compared with its single-text performance on that same kind of negative. The paper describes the pairwise results in these comparative terms. The direction of change is important: a paired input gives added comparative information, yet the results range from little improvement to a decline.

The authors suggest a concrete reason for the decline with RobBERT. With both versions placed in a single sequence, the system can fit less of each into its input space. More jokes may consequently be truncated, meaning that part of the text is cut to meet the length limit. If relevant words appear in the part lost, the classifier has less evidence about the relationship between setup and ending. The score comparison shows a decline under the paired setup used in the paper. The explanation in terms of truncation is the authors' interpretation of that decline.

### What the ablations show

The paper does not report a component-removal ablation of the generator or classifiers. Its closest evidence comes from comparisons that switch the negative source or the input format, from the analysis of validation runs, from inspected mistakes, and from applying the generated-negative detector to data from different sources. Each comparison addresses a different part of the question about what the systems learned.

#### Switching the source of negative evidence

The strongest controlled comparison keeps the joke collection and the single-text decision in place while changing the kind of negative example. It is possible to get high accuracy with the CNN and LSTM when the negative is a headline or a proverb. Replacing these with edited jokes largely removes that success. The authors suggest that the older neural systems likely depend on differences in vocabulary or on the relative brevity of the unrelated texts. Both are plausible because the source change affects the words available to each class and the shape of each item.

The comparison establishes the effect of the change in negative construction as a whole. It leaves open how much of the effect comes from the shared vocabulary, closely matched length, preserved syntax, or altered meaning. A generated text can share all of these superficial properties with the positives at once. It can also contain telltale incoherence or grammatical awkwardness. Moving from headlines and proverbs to the edited jokes changes a bundle of properties, which is precisely what makes the new test harder and also what makes an individual cause difficult to assign.

RobBERT's smaller loss of performance supports a narrower conclusion about the available evidence. The system can make better use than the baselines of signals that remain after the negative examples are constructed from jokes. Its success is consistent with sensitivity to how the words fit together. Since the paper compares whole systems, other differences accompany that contextual processing, including the way RobBERT was trained before seeing the humor data. The experiments measure the combined result of those differences.

#### Looking at edited texts accepted as jokes

The authors inspect false positives from RobBERT on the single-text generated task. A false positive here is an edited text that the classifier labels as a joke. Many of those cases, the authors observe, had undergone limited replacement or retained a coherent reading. This supplies a reason to look at the individual texts instead of interpreting all such cases as the same kind of error. Their assigned labels identify them as generated examples. The content can still resemble a coherent joke in ways that matter to a reader.

The paper illustrates this with a question about a brother and an answer that pairs Mars with Twix. In the generated item, a change from Bruno to Bill still leaves the two names in a relation that can sustain some of the wordplay. The authors treat the resulting text as retaining some humor. It belongs to the negative class because it was produced through editing, and RobBERT's prediction is scored against that class. The example exposes a gap between the benchmark's label and a possible human reading.

This observation also qualifies the notion of a hard negative. Some edits are difficult because they preserve the form closely while eliminating the original resolution. Others can be difficult because the joke still works well enough to be recognized as humorous. Those cases have the same label in the test, and both can yield a false positive. A case inspection can show what happened in a particular example. The paper gives observations about the types of edits found among mistakes, leaving their prevalence across the entire generated set unquantified.

#### Sending ordinary coherent texts to the edited-joke detector

The authors take the RobBERT classifier trained to distinguish jokes from dynamic-template negatives and apply it to the headline and proverb collections. This is a test on data outside that classifier's training domain. It asks what the classifier does with texts that have come from neither side of the distinction it learned. Its training emphasized originals and edits made from them. The new inputs include short, coherent writing from other sources.

The classifier labels 93.23% of the news collection as jokes. It also gives a joke label to 73% of the proverb collection. These are shares receiving a particular prediction in the cross-domain probe. They are different quantities from the held-out accuracies achieved by the versions of RobBERT trained specifically on jokes versus news or jokes versus proverbs. A classifier adapted to the headline task has seen the kind of negative example it is being asked to reject. The dynamic-template classifier is applying a boundary learned from an completely different kind of negative.

The authors interpret the positive predictions as evidence that topical or semantic coherence may matter heavily to the classifier, at least for relatively short texts. That fits the construction of the task. Collected jokes often give the reader a coherent resolution and generated changes can break the relationship between parts of an item. A classifier can consequently learn that coherent strings resemble examples in its positive class. A coherent headline may satisfy that criterion even when it contains nothing resembling a joke's development.

The cross-domain probe sharpens what can be said about the held-out score. RobBERT is effective at the distinction on which it was trained. Its readiness to assign the positive label to ordinary text shows how differently the same rule can behave under a change of source. The authors' coherence explanation is plausible, and the experiment leaves room for other properties of those short texts to influence the result. The prediction counts show the transfer behavior directly. They provide indirect evidence about the signal driving it.

#### Changing what the detector sees at once

The single and pairwise generated tasks give a further comparison within the same general source of examples. In the paired condition, comparison with the original can make a broken connection clearer. The design also changes how the detectors process the examples and, for RobBERT, how much input space each member receives. The experiment captures the overall result of making both changes together.

The LSTM and CNN results show that direct access to the other version offers limited help with the representations used here. RobBERT's decline shows that joint input can make this particular task harder for a system that was already effective at single-text classification. The authors propose truncation as the reason. A comparison organized around which texts were shortened, or which parts were lost, would be needed to isolate that cause. The paper's paired experiment establishes the performance of the chosen input arrangement.

### Limitations

#### Limits identified by the authors

The authors explicitly flag grammar as a possible shortcut. Replacing a word with one of the same part of speech preserves a broad grammatical category. A good substitution also has to fit the particular construction in which the word appears. Two verbs can share a tag while behaving differently in a sentence. A substitution can therefore create an awkward phrase or an apparent error before the reader has considered the relationship between the setup and ending. A classifier that detects such errors can exploit them when choosing between originals and generated examples.

This possibility is especially relevant because the generator's aim is to keep grammar broadly similar and alter meaning. The matching tags help with the first aim. Continued grammatical fit depends on more than the category attached to a word. A detector might learn to prefer fluent text, which is a reasonable way to solve a benchmark when the awkward examples are commonly negative. The score would then partly measure sensitivity to the editing procedure. The authors propose improving the process that produces joke-like negatives so that grammatical problems offer fewer clues.

The paper also describes the dependence of humor on a reader's linguistic and everyday knowledge. For the incongruity-resolution account to apply, a reader has to develop an initial interpretation and recover a second one when the ending prompts it. A text can involve wordplay a reader fails to notice or a situation the reader interprets differently. The authors treat this as part of the distance between binary detection and full understanding of humor. The challenge persists even when the examples are close enough to defeat simple source recognition.

Wordplay presents a specific technical limitation in the authors' discussion. The form in which a text enters a contextual system can obscure similarities between the letters of different words. That matters for a pun whose two readings depend on a small change in form. The Kermit example makes this concern tangible. A classifier might recognize the structure of the riddle and find the ending thematically compatible, while the resemblance that helps the pun work remains hard to recover from its input units. The paper presents sensitivity to such similarities as a potential weakness, outside the direct measurements of the reported accuracy tests.

For paired inputs, the authors also identify the limited input space as a likely constraint. The two versions share that space, so more words can be lost than when a short text is presented alone. A truncation may matter especially if it obscures an ending or removes words needed to read it in context. This concern comes from the way the pairwise system is implemented and the direction of the result. The study gives no measured share of affected examples or test score restricted to complete pairs. Truncation remains an explanation proposed by the authors.

#### Limits that follow from the setup

A label in the generated dataset identifies how an item was made. An original receives the positive label because it comes from a joke collection. An edited version receives the negative label because it comes from the replacement procedure. The paper's example involving Mars and Twix shows that these labels can diverge from a reader's assessment of how amusing the result is. The same issue can arise when a generated sentence is strange enough to be amusing for a reason unrelated to the original pun. The benchmark gives hard labels even where the property of interest may be a matter of degree or depend on the reader.

The pairwise labels inherit this condition. Each pair contains an identifiable original and a derived alternative, so the target of the prediction is well defined as a fact about the dataset. A verdict about relative humor requires a different kind of evidence. The study does not report ratings from people comparing the two versions. Its pairwise result therefore measures recovery of the original under the intended editing contrast. How that result corresponds to readers' preferences is an open question.

Coherence itself can be a valuable clue without being a definition of humor. An incongruity-resolution joke needs an ending that can support a fitting interpretation of the whole. Ordinary sentences also have meanings whose parts fit together. The cross-domain probe shows that the generated-negative detector gives many coherent texts a joke label under conditions where such texts were absent as negatives from its training task. The paper offers this as evidence for a possible reliance on coherence. Since no direct coherence judgments accompany the probe, the result cannot quantify how much the detector relies on coherence as opposed to other shared properties.

The word-frequency control also has a limited scope. Sampling substitutions from the joke vocabulary prevents the classes from being built out of wholly separate lexicons. It does not guarantee that every individual word or sequence has the same distribution on both sides. Words selected for replacement can become less common in some contexts and new combinations can become more common. A classifier can potentially recognize those distributional traces. High accuracy against dynamic-template edits is compatible with a mixture of sensitivity to meaning, fluency, and regularities of the generator.

The architecture comparisons give evidence about complete systems. RobBERT combines contextual processing with earlier training on Dutch text and later adaptation to the task. The other neural systems use Dutch word embeddings and their own mechanisms for sequence processing. The comparisons leave open how the results would change if those ingredients were varied independently. The finding is that the RobBERT configuration used in the study performs best on the tested distinction, with no isolated estimate of the contribution of each design choice.

Similar limits apply to the search analysis. Using random trials and examining the best validation estimates by trial count gives the systems a comparison at a common number of attempts. The authors observe differing sensitivity to the chosen settings. The analysis speaks to the search spaces and budgets they chose. A different search space could make good settings more or less common, and one trial of each system can entail different training effort. The validation analysis characterizes the comparison performed in the paper.

Finally, the positives come from a specific Dutch joke collection, and the generated negatives come from one editing procedure. The method is designed to be portable where a collection of jokes and grammatical tagging are available. The experiment evaluates it in Dutch, using written jokes and a particular set of comparison sources. It leaves its performance on other languages, other joke collections, and other ways of making close negatives untested. Even within Dutch, the separate headline and proverb intervention shows why a test domain should be named whenever an accuracy is reported.

### What came after

There is no documented later study to trace as a continuation of this paper's experiments. The follow-up directions described by the authors are proposals. They concern generating stronger negatives for detection and using a detector to help generate or revise jokes.

For stronger negatives, the authors propose improving the imitation step so that the generated texts resemble well-formed jokes more closely. The current editing process can accidentally make a sentence ungrammatical. A negative that reads fluently and still fails to connect the setup to the ending would make a grammatical shortcut less useful. The paper's errors also suggest why this is a delicate target. An edit that preserves enough fluency and meaning can preserve the humor as well. Generating a close comparison involves managing both properties, the plausibility of the language and the effect of the change.

The generation proposal reverses the role of the detector. In the reported experiments, the editing procedure creates examples and a classifier tries to tell them apart. In a future generate-and-test system, a generator could offer candidate phrasings and a pairwise detector could help choose among them. The authors suggest that RobBERT could serve both roles. Its missing-word prediction can suggest changes, and a pairwise decision could compare the resulting candidates. In the authors' example of a genetic algorithm, the word changes supply mutations and the comparisons determine which candidates advance.

They also imagine a collaborative application in which a person retains control of a joke while a comparator suggests a different phrasing. Moving a potential punchline word later is their example of the kind of change that could alter when a reader sees the joke's second interpretation. The paper evaluates original jokes against automatic edits. Whether a comparator trained that way would consistently select the versions people prefer remains a question for the proposed generation work.

## Cite

Cite as Thomas Winters and Pieter Delobelle. 2020. Dutch Humor Detection by Generating Negative Examples. arXiv:2010.13652.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2010.13652](https://doi.org/10.48550/arxiv.2010.13652) · [arXiv 2010.13652](https://arxiv.org/abs/2010.13652)

```bibtex
@misc{winters2020dutch,
  title = {{Dutch Humor Detection by Generating Negative Examples}},
  author = {Thomas Winters and Pieter Delobelle},
  year = {2020},
  doi = {10.48550/arxiv.2010.13652},
  eprint = {2010.13652},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2010.13652}
}
```

> 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)
