cs.CLApr 2, 2026

How to measure the optimality of word or gesture order with respect to the principle of swap distance minimization

Authors: Ramon Ferrer-i-Cancho

Organizations: Quantitative, Mathematical and Computational Linguistics Research Group (LQMC), Departament de Ciències de la Computació, Universitat Politècnica de Catalunya, Campus Nord, Edifici Omega, Jordi Girona Salgado 1-3, 08034 Barcelona, Catalonia, Spain

Abstract

The structure of all the permutations of a sequence can be represented as a permutohedron, a graph where vertices are permutations and two vertices are linked if a swap of adjacent elements in the permutation of one of the vertices produces the permutation of the other vertex. It has been hypothesized that word orders in languages minimize the swap distance in the permutohedron: given a source order, word orders that are closer in the permutohedron should be less costly and thus more likely. Here we explain how to measure the degree of optimality of word order variation with respect to swap distance minimization. We illustrate the power of our novel mathematical framework by examining spontaneous gestures produced by speakers from four languages (two SVO languages and two VSO languages, which represent two linguistic families). We show that crosslinguistic gestures are at least 77%77\% optimal. It is unlikely that the multiple times where crosslinguistic gestures hit optimality are due to chance. We establish the theoretical foundations for research on the optimality of word or gesture order with respect to swap distance minimization in communication systems. Finally, we introduce the quadratic assignment problem (QAP) into language research as an umbrella for multiple optimization problems and, accordingly, postulate a general principle of optimal assignment that unifies various linguistic principles including swap distance minimization.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Swap distance minimization shapes the order of subject, object and verb in languages of the world

    Apr 29, 2026Jairo Rios-El-Yazidi, Ramon Ferrer-i-CanchoLinguistic Typology

  2. Vocabulary shapes cross-lingual variation of word-order learnability in language models

    Mar 19, 2026Jonas Mayer Martins, Jaap Jumelet, Viola Priesemann +1Linguistic Typology

  3. Left-Branching Transformers Excel at Right-Branching Languages: Data Shapes Word Order Preferences in Language Models

    Aug 15, 2026Varvara Arzt, Allan Hanbury, Terra BlevinsMultilingual Language ModelsDecoder-Only Language Models