Skip to content

go-openapi/inflect

inflect

Tests Coverage CI vuln scan CodeQL

Release Go Report Card CodeFactor Grade License

GoDoc Slack Channelslack-badge go version Top language Commits since latest release


A package to pluralize words.

Originally forked from https://bitbucket.org/pkg/inflect under a MIT License.

Status

API is stable.

This library is not used at all by other go-openapi packages and is somewhat redundant with go-openapi/swag/mangling (for camelcase etc).

Currently we have one single dependency in one place in a go-swagger template (used as a funcmap).

Import this library in your project

go get github.com/go-openapi/inflect

Basic usage

A golang library applying grammar rules to English words.

This package provides a basic set of functions applying grammar rules to inflect English words, modify case style (Capitalize, camelCase, snake_case, etc.).

Acronyms are properly handled. A common use case is word pluralization.

Change log

See https://github.com/go-openapi/inflect/releases

Licensing

This library ships under the SPDX-License-Identifier: Apache-2.0.

See the license NOTICE, which recalls the licensing terms of all the pieces of software on top of which it has been built.

Other documentation

Cutting a new release

Maintainers can cut a new release by either:

  • running this workflow
  • or pushing a semver tag
    • signed tags are preferred
    • The tag message is prepended to release notes

About

Pluralization of English terms

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Languages