util

package
v0.0.0-...-53aaad7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserDefinedInflections map[string]string

Functions

func Pluralize

func Pluralize(str string) string

Source fom https://github.com/acsellers/inflections

NounPluralize is based on the algorithm described at www.csse.monash.edu.au/~damian/papers/HTML/Plurals.html It doesn't deal with classical pluralizations at the moment. It could have been based on Rails pluralize implementation, but that code is not clear due to the way it was implemented. It is only implemented for English.

Copyright (c) 2013, Andrew Sellers <andrew@andrewcsellers.com> All rights reserved.

License: BSD 3-clause

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL