Skip to main content
Cornell University
We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate
arxiv logo > cs > arXiv:2505.20015

Help | Advanced Search

arXiv logo
Cornell University Logo

quick links

  • Login
  • Help Pages
  • About

Computer Science > Computation and Language

arXiv:2505.20015 (cs)
[Submitted on 26 May 2025 (v1), last revised 2 Sep 2025 (this version, v5)]

Title:On the class of coding optimality of human languages and the origins of Zipf's law

Authors:Ramon Ferrer-i-Cancho
View a PDF of the paper titled On the class of coding optimality of human languages and the origins of Zipf's law, by Ramon Ferrer-i-Cancho
View PDF HTML (experimental)
Abstract:Here we present a new class of optimality for coding systems. Members of that class are displaced linearly from optimal coding and thus exhibit Zipf's law, namely a power-law distribution of frequency ranks. Within that class, Zipf's law, the size-rank law and the size-probability law form a group-like structure. We identify human languages that are members of the class. All languages showing sufficient agreement with Zipf's law are potential members of the class. In contrast, there are communication systems in other species that cannot be members of that class for exhibiting an exponential distribution instead but dolphins and humpback whales might. We provide a new insight into plots of frequency versus rank in double logarithmic scale. For any system, a straight line in that scale indicates that the lengths of optimal codes under non-singular coding and under uniquely decodable encoding are displaced by a linear function whose slope is the exponent of Zipf's law. For systems under compression and constrained to be uniquely decodable, such a straight line may indicate that the system is coding close to optimality. We provide support for the hypothesis that Zipf's law originates from compression and define testable conditions for the emergence of Zipf's law in compressing systems.
Comments: a few typos corrected, in press in Europhysics Letters
Subjects: Computation and Language (cs.CL); Physics and Society (physics.soc-ph)
Cite as: arXiv:2505.20015 [cs.CL]
  (or arXiv:2505.20015v5 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2505.20015
arXiv-issued DOI via DataCite

Submission history

From: Ramon Ferrer-i-Cancho [view email]
[v1] Mon, 26 May 2025 14:05:45 UTC (22 KB)
[v2] Tue, 3 Jun 2025 17:00:20 UTC (23 KB)
[v3] Wed, 4 Jun 2025 11:35:43 UTC (23 KB)
[v4] Fri, 18 Jul 2025 14:57:19 UTC (24 KB)
[v5] Tue, 2 Sep 2025 18:22:53 UTC (24 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled On the class of coding optimality of human languages and the origins of Zipf's law, by Ramon Ferrer-i-Cancho
  • View PDF
  • HTML (experimental)
  • TeX Source
  • Other Formats
view license
Current browse context:
cs.CL
< prev   |   next >
new | recent | 2025-05
Change to browse by:
cs
physics
physics.soc-ph

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack