Module:Detect singular/doc
Appearance
This is the documentation page for Module:Detect singular
Script error: No such module "High-use". Lua error in package.lua at line 80: module 'Module:Yesno' not found.
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}}
→ Lua error in package.lua at line 80: module 'Module:Yesno' not found.
- See Template:Detect singular for main() usage. Test cases here.
- See Template:Pluralize from text for pluralize() usage (a wrapper around main()). Test cases here.