Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package inflector pluralizes and singularizes English nouns.
There are only two exported functions: `Pluralize` and `Singularize`.
s := "People" fmt.Println(inflector.Singularize(s)) // will print "Person" s2 := "octopus" fmt.Println(inflector.Pluralize(s2)) // will print "octopuses"
Index ¶
Constants ¶
      View Source
      
  
const ( Plural = iota Singular )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InflectorRule ¶
type InflectorRule struct {
	Rules       []*ruleItem
	Irregular   []*irregularItem
	Uninflected []string
	// contains filtered or unexported fields
}
    InflectorRule represents inflector rule
 Click to show internal directories. 
   Click to hide internal directories. 


