package inflect
import "github.com/gohugoio/hugo/tpl/inflect"
Package inflect provides template functions for the inflection of words.
Index ¶
Types ¶
type Namespace ¶
type Namespace struct{}
Namespace provides template functions for the "inflect" namespace.
func New ¶
func New() *Namespace
New returns a new instance of the inflect-namespaced template functions.
func (*Namespace) Humanize ¶
Humanize returns the humanized form of v.
If v is either an integer or a string containing an integer value, the behavior is to add the appropriate ordinal.
func (*Namespace) Pluralize ¶
Pluralize returns the plural form of the single word in v.
func (*Namespace) Singularize ¶
Singularize returns the singular form of a single word in v.
Source Files ¶
- Version
- v0.144.2 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 7 hours ago –
Tools for package owners.