hugo/content/en/functions/inflect/Singularize.md
Bjørn Erik Pedersen 9b0050e9aa Squashed 'docs/' content from commit 5c085a37b
git-subtree-dir: docs
git-subtree-split: 5c085a37b297bf12f59efeaae591418ec025c10d
2024-01-27 10:48:33 +01:00

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.