Skip to content

Commit

Permalink
Removed drone.io badge and simplify example.
Browse files Browse the repository at this point in the history
  • Loading branch information
gedex committed Oct 23, 2016
1 parent 28c58e2 commit 1ef4835
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions README.md
Expand Up @@ -3,26 +3,19 @@ Inflector

Inflector pluralizes and singularizes English nouns.

**Documentation:** <http://godoc.org/github.com/gedex/inflector>

[![Build Status](https://travis-ci.org/gedex/inflector.png?branch=master)](https://travis-ci.org/gedex/inflector)
[![Build Status](https://drone.io/github.com/gedex/inflector/status.png)](https://drone.io/github.com/gedex/inflector/latest)
[![Coverage Status](https://coveralls.io/repos/gedex/inflector/badge.png?branch=master)](https://coveralls.io/r/gedex/inflector?branch=master)
[![GoDoc](https://godoc.org/github.com/gedex/inflector?status.svg)](https://godoc.org/github.com/gedex/inflector)

## Basic Usage

There are only two exported functions: `Pluralize` and `Singularize`.

~~~go
s := "People"
fmt.Println(inflector.Singularize(s)) // will print "Person"

s2 := "octopus"
fmt.Println(inflector.Pluralize(s2)) // will print "octopuses"
fmt.Println(inflector.Singularize("People")) // will print "Person"
fmt.Println(inflector.Pluralize("octopus")) // will print "octopuses"
~~~

Please see [example/example.go](./example/example.go) for a complete example.

## Credits

* [CakePHP's Inflector](https://github.com/cakephp/cakephp/blob/master/lib/Cake/Utility/Inflector.php)
Expand Down

0 comments on commit 1ef4835

Please sign in to comment.