Skip to content
Marcos Caceres edited this page Mar 27, 2026 · 12 revisions

pluralize

Type: boolean Default: true (W3C profile)

Enables automatic pluralization for <dfn> elements. When enabled, a term defined as <dfn>widget</dfn> can also be referenced as <a>widgets</a> without needing a data-lt attribute.

Basic usage

var respecConfig = {
  // pluralize: true is already the default for W3C specs
};

How it works

<dfn>user agent</dfn>

<!-- Both of these link correctly: -->
<a>user agent</a>
<a>user agents</a>
<dfn data-lt="pub">bar</dfn>

<!-- All of these link correctly: -->
<a>bar</a>  <a>bars</a>  <a>pub</a>

Opt out per definition

<dfn data-lt-no-plural>CSS</dfn>
<!-- "CSSs" will NOT be recognized as a link -->

Notes

  • Pluralization uses an English pluralization library — it handles irregular forms reasonably well but may miss edge cases
  • Plurals are only added for terms that are actually referenced — no overhead for unreferenced terms
  • Use data-lt-no-plural to suppress pluralization for acronyms, brand names, or terms where pluralization would be wrong
  • See also data-lt for manually defining alternative forms

Guides

Configuration options

W3C Configuration options

Linting rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

HTML attributes

CSS Classes

Special properties

Clone this wiki locally