Documentation ¶
Index ¶
- type Client
- func (c *Client) AddIrregularRule(single string, plural string)
- func (c *Client) AddPluralRule(rule string, replacement string)
- func (c *Client) AddSingularRule(rule string, replacement string)
- func (c *Client) AddUncountableRule(word string)
- func (c *Client) IsPlural(word string) bool
- func (c *Client) IsSingular(word string) bool
- func (c *Client) Plural(word string) string
- func (c *Client) Pluralize(word string, count int, inclusive bool) string
- func (c *Client) Singular(word string) string
- type Rule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client --
func (*Client) AddIrregularRule ¶
AddIrregularRule -- Add an irregular word definition
func (*Client) AddPluralRule ¶
AddPluralRule -- Add a pluralization rule to the collection
func (*Client) AddSingularRule ¶
AddSingularRule -- Add a singularization rule to the collection
func (*Client) AddUncountableRule ¶
AddUncountableRule -- Add an uncountable word rule
func (*Client) IsSingular ¶
IsSingular -- Check if a word is singular
Click to show internal directories.
Click to hide internal directories.