diff options
Diffstat (limited to 'docs/content/en/functions/inflect/Singularize.md')
-rw-r--r-- | docs/content/en/functions/inflect/Singularize.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/content/en/functions/inflect/Singularize.md b/docs/content/en/functions/inflect/Singularize.md new file mode 100644 index 000000000..5aba4e4ee --- /dev/null +++ b/docs/content/en/functions/inflect/Singularize.md @@ -0,0 +1,25 @@ +--- +title: inflect.Singularize +linkTitle: singularize +description: Converts a word according to a set of common English singularization rules. +categories: [functions] +keywords: [] +menu: + docs: + parent: functions +function: + aliases: [singularize] + returnType: string + signatures: [inflect.Singularize INPUT] +relatedFunctions: + - inflect.Humanize + - inflect.Pluralize + - inflect.Singularize +aliases: [/functions/singularize] +--- + +```go-html-template +{{ "cats" | singularize }} → "cat" +``` + +See also the `.Data.Singular` [taxonomy variable](/variables/taxonomy/) for singularizing taxonomy names. |