Skip to content
Sid Vishnoi edited this page May 29, 2018 · 11 revisions

Adds automatic pluralization support for <dfn>, so that you don't have to manually define data-lt attributes for plurals.

Example of usage

// enable automatic pluralization
var respecConfig = {
  pluralize: true,
};

You can define a term as <dfn>fetch</dfn> and reference it as either <a>fetch</a> or <a>fetches</a>. Below are some more examples:

<dfn>get apple</dfn> can be referenced as
     <a>get apples</a>
     <a>get apple</a>
     <a data-lt="get apple">obtain apples</a>.
</dfn>

<dfn data-lt="foo">bar</a> can be referenced as
     <a>foo</a>
     <a>bar</a>
     <a>bars</a>
     <a data-lt="foo">baz</a>
     <a data-lt="bar">baz</a>
     <a data-lt="bars">baz</a>
</dfn>

If you want to selectively disable pluralization on certain <dfn>, you can make use of data-lt-no-plural attribute like:

<dfn data-lt-no-plural>html</dfn>

Guides

Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

WebIDL

HTML attributes

CSS Classes

Special properties

Clone this wiki locally