Saved in:
Bibliographic Details
Main Authors: Fontanelli, Oscar, Li, Wentian
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2511.14683
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918522462928896
author Fontanelli, Oscar
Li, Wentian
author_facet Fontanelli, Oscar
Li, Wentian
contents Heaps' or Herdan's law characterizes the word-type vs. word-token relation by a power-law function, which is concave in linear-linear scale but a straight line in log-log scale. However, it has been observed that even in log-log scale, the type-token curve is still slightly concave, invalidating the power-law relation. At the next-order approximation, we have shown, by twenty English novels or writings (some are translated from another language to English), that quadratic functions in log-log scale fit the type-token data perfectly. Regression analyses of log(type)-log(token) data with both a linear and quadratic term consistently lead to a linear coefficient of slightly larger than 1, and a quadratic coefficient around -0.02. Using the ``random drawing colored ball from the bag with replacement" model, we have shown that the curvature of the log-log scale is identical to a ``pseudo-variance" which is negative. Although a pseudo-variance calculation may encounter numeric instability when the number of tokens is large, due to the large values of pseudo-weights, this formalism provides a rough estimation of the curvature when the number of tokens is small.
format Preprint
id arxiv_https___arxiv_org_abs_2511_14683
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Quadratic Term Correction on Heaps' Law
Fontanelli, Oscar
Li, Wentian
Computation and Language
Heaps' or Herdan's law characterizes the word-type vs. word-token relation by a power-law function, which is concave in linear-linear scale but a straight line in log-log scale. However, it has been observed that even in log-log scale, the type-token curve is still slightly concave, invalidating the power-law relation. At the next-order approximation, we have shown, by twenty English novels or writings (some are translated from another language to English), that quadratic functions in log-log scale fit the type-token data perfectly. Regression analyses of log(type)-log(token) data with both a linear and quadratic term consistently lead to a linear coefficient of slightly larger than 1, and a quadratic coefficient around -0.02. Using the ``random drawing colored ball from the bag with replacement" model, we have shown that the curvature of the log-log scale is identical to a ``pseudo-variance" which is negative. Although a pseudo-variance calculation may encounter numeric instability when the number of tokens is large, due to the large values of pseudo-weights, this formalism provides a rough estimation of the curvature when the number of tokens is small.
title Quadratic Term Correction on Heaps' Law
topic Computation and Language
url https://arxiv.org/abs/2511.14683