mirror of
https://github.com/ethauvin/kotlin-pluralizer.git
synced 2025-04-25 00:37:12 -07:00
updated readme
This commit is contained in:
parent
acf66ae704
commit
e579f7bfe1
1 changed files with 22 additions and 15 deletions
17
README.md
17
README.md
|
@ -3,10 +3,14 @@
|
||||||
|
|
||||||
**kotlin extension** to **pluralize** and **singularize** strings
|
**kotlin extension** to **pluralize** and **singularize** strings
|
||||||
|
|
||||||
[](https://travis-ci.org/cesarferreira/kotlin-pluralizer) [](https://jitpack.io/#cesarferreira/kkotlin-pluralizer) [  ](https://bintray.com/cesarferreira/maven/kotlin-pluralizer/_latestVersion)
|
[](https://travis-ci.org/cesarferreira/kotlin-pluralizer) [](https://jitpack.io/#cesarferreira/kkotlin-pluralizer)
|
||||||
|
|
||||||
|
### Show some love
|
||||||
|
[](https://github.com/cesarferreira/kotlin-pluralizer) [](https://twitter.com/cesarmcferreira)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
||||||
**Pluralization:**
|
**Pluralization:**
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
|
@ -25,6 +29,12 @@
|
||||||
"feet".singularize() # => "foot"
|
"feet".singularize() # => "foot"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Quantities:**
|
||||||
|
```kotlin
|
||||||
|
"person".pluralize(1) # => "person"
|
||||||
|
"person".pluralize(2) # => "people"
|
||||||
|
```
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
|
@ -33,13 +43,10 @@ repositories {
|
||||||
maven { url "https://jitpack.io" }
|
maven { url "https://jitpack.io" }
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.github.cesarferreira:kotlin-pluralizer:0.2.4'
|
compile 'com.github.cesarferreira:kotlin-pluralizer:0.2.6'
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Show some love
|
|
||||||
[](https://github.com/cesarferreira/kotlin-pluralizer) [](https://twitter.com/cesarmcferreira)
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:
|
I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue