Jump to content

Module:Detect singular/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Hike395 (talk | contribs) at 16:06, 9 January 2022 (typo). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


Lua to determine whether a string is singular or plural. Designed for use in infoboxes, to determine whether labels should be singular or plural based on the corresponding data, e.g.

{{#invoke:Detect singular|pluralize|Wynken, Blynken, and Nod||singular|plural}} → plural