Skip to content

Commit

Permalink
added singularize and pluralize to Readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christiaan baes committed May 8, 2014
1 parent 91f631f commit 4e377f1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Expand Up @@ -198,3 +198,19 @@ Replaces underscores with hyphens in a String.
```kotlin
"some_title".hyphenate() => "some-title"
```
### Extension method pluralize for String objects
Gives the plural of a certain word.
```kotlin
"test".pluralize() => "tests"
```
### Extension method singularize for String objects
gives the singular of a certain word.
```kotlin
"tests".singularize() => "test"
```

0 comments on commit 4e377f1

Please sign in to comment.