mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
19 lines
432 B
Markdown
19 lines
432 B
Markdown
|
---
|
||
|
title: inflect.Singularize
|
||
|
description: Singularizes the given word according to a set of common English singularization rules.
|
||
|
categories: []
|
||
|
keywords: []
|
||
|
action:
|
||
|
aliases: [singularize]
|
||
|
related:
|
||
|
- functions/inflect/Humanize
|
||
|
- functions/inflect/Pluralize
|
||
|
returnType: string
|
||
|
signatures: [inflect.Singularize INPUT]
|
||
|
aliases: [/functions/singularize]
|
||
|
---
|
||
|
|
||
|
```go-html-template
|
||
|
{{ "cats" | singularize }} → cat
|
||
|
```
|