mirror of
https://github.com/ethauvin/kotlin-pluralizer.git
synced 2025-04-25 08:47:12 -07:00
updated readme
This commit is contained in:
parent
dff0aa5a78
commit
6a0d0f4fe0
1 changed files with 13 additions and 23 deletions
36
README.md
36
README.md
|
@ -1,40 +1,30 @@
|
||||||
<!--  -->
|
<!--  -->
|
||||||
# kotlin-pluralizer
|
# kotlin-pluralizer [](https://travis-ci.org/cesarferreira/kotlin-pluralizer)
|
||||||
|
|
||||||
**kotlin extension** to **pluralize** and **singularize** strings!
|
**kotlin extension** to **pluralize** and **singularize** strings!
|
||||||
|
|
||||||
|
|
||||||
### Specs
|
|
||||||
[](https://travis-ci.org/cesarferreira/kotlin-pluralizer)
|
|
||||||
|
|
||||||
<!--
|
|
||||||
### Featured in
|
|
||||||
[](http://android-arsenal.com/details/1/2361)
|
|
||||||
[](http://androidweekly.net/issues/issue-200)
|
|
||||||
-->
|
|
||||||
|
|
||||||
### Show some :heart:
|
### Show some :heart:
|
||||||
[](https://github.com/cesarferreira/kotlin-pluralizer) [](https://github.com/cesarferreira/kotlin-pluralizer/fork) [](https://github.com/cesarferreira/kkotlin-pluralizer) [](https://github.com/cesarferreira/kotlin-pluralizer)
|
[](https://github.com/cesarferreira/kotlin-pluralizer) [](https://twitter.com/cesarmcferreira)
|
||||||
[](https://twitter.com/cesarmcferreira)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Partikular
|
|
||||||
ksingle
|
|
||||||
specialK
|
|
||||||
specifik
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
**Pluralization:**
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
"person".pluralize() # => "people"
|
"person".pluralize() # => "people"
|
||||||
"post".pluralize() # => "posts"
|
"post".pluralize() # => "posts"
|
||||||
"octopus".pluralize() # => "octopi"
|
|
||||||
"sheep".pluralize() # => "sheep"
|
"sheep".pluralize() # => "sheep"
|
||||||
"words".pluralize() # => "words"
|
|
||||||
"CamelOctopus".pluralize() # => "CamelOctopi"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Singuralization:**
|
||||||
|
|
||||||
|
```kotlin
|
||||||
|
"words".singularize() # => "word"
|
||||||
|
"octopi".pluralize() # => "octopus"
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
TODO
|
TODO
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue