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 05:40, 9 January 2022 (expand, +cat). 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|Winken, Blinken, and Nod||singular|plural}} → plural