singularize

将以下英文翻译为中文:

singularize

https://gohugo.io/functions/singularize/

Converts a word according to a set of common English singularization rules.

语法

singularize INPUT

{{ "cats" | singularize }} → “cat”

See also the .Data.Singular taxonomy variable for singularizing taxonomy names.

另请参阅