mirror of
https://github.com/gohugoio/hugo.git
synced 2025-01-10 05:22:50 +00:00
24 lines
494 B
Markdown
24 lines
494 B
Markdown
|
---
|
||
|
title: inflect.Pluralize
|
||
|
linkTitle: pluralize
|
||
|
description: Pluralizes the given word according to a set of common English pluralization rules
|
||
|
categories: [functions]
|
||
|
keywords: []
|
||
|
menu:
|
||
|
docs:
|
||
|
parent: functions
|
||
|
function:
|
||
|
aliases: [pluralize]
|
||
|
returnType: string
|
||
|
signatures: [inflect.Pluralize INPUT]
|
||
|
relatedFunctions:
|
||
|
- inflect.Humanize
|
||
|
- inflect.Pluralize
|
||
|
- inflect.Singularize
|
||
|
aliases: [/functions/pluralize]
|
||
|
---
|
||
|
|
||
|
```go-html-template
|
||
|
{{ "cat" | pluralize }} → "cats"
|
||
|
```
|