Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Donkey Sentences and ML Modules

This is a cool observation of Christine's that builds on another post, the introduction to 1ML , which may also be of interest. Comments

In the realm of formal semantics for natural languages, a problem arises with so-called "donkey sentences." Consider the sentence: Any farmer who owns a donkey is rich. The intuitive translation would be: ∀f∈Farmer. (∃d∈Donkey. OWNS(f,d))→RICH(f). However, when dealing with the sentence: Any farmer who owns a donkey rides it, the translation becomes problematic.

The resulting formula ∀f∈Farmer. (∃d∈Donkey. OWNS(f,d))→RIDES(f,d) is not formally valid, as the variable d is not in scope within the RIDES(f,d) predicate. To resolve this issue, the quantifier must be pulled out to scope over the entire implication, resulting in the universally quantified formula: ∀f∈Farmer. ∀d∈Donkey. OWNS(f,d)→RIDES(f,d).

The question then arises: how can we assign meaning to the noun phrase "a donkey" in isolation, since it needs to introduce a quantifier whose scope is not semantically limited to the noun phrase itself?

One approach to this problem involves examining the work of Rossberg, Russo, and Dreyer (2010) on "F-ing" semantics in ML modules. In discourse representation theory, indefinites like "a donkey" are treated as devices for introducing discourse referents and conditions, rather than as quantifiers. This idea parallels the concept of translucent abstract types in ML modules, where a type expression has free variables and a description of those variables without prescribing an interpretation for them.

By replacing discourse referents with declared type variables and conditions with declared bindings, the transformation of the donkey sentence into a universally quantified form becomes apparent. The rule in F-ing Modules can be applied to the sentence as follows: Any farmer who owns a donkey rides it ⇝ ∀f∈Farmer,d∈Donkey. (OWNS(f,d)→RIDES(f,d)).

This linguistic and programming language connection highlights the potential for cross-pollination between the two fields.

Rewritten by urgent.news; may contain errors — check the original.

Source: pithlessly.github.io

Read the original at pithlessly.github.io →

Report a problem with this story

More in Tech

More from Sunday, 29 November 2026 →