mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-01 17:50:49 -05:00
5fd1e74903
``` git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash ``` Closes #11925
20 lines
539 B
Markdown
20 lines
539 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
|
|
```
|
|
|
|
See also the `.Data.Singular` [taxonomy variable](/variables/taxonomy/) for singularizing taxonomy names.
|