qvantel / scala-inflector   1.4.0

MIT License GitHub

The Rails Inflector for Scala

Scala versions: 2.13 2.12 2.11
Scala.js versions: 0.6

Scala Inflector

Ports the ruby rails inflector code to scala.
Includes specs for the inflections.

You can use the inflections either as an object:

import mojolly.inflector.Inflector

Inflector.singularize("sheep") 

or as an implicit:

import mojolly.inflector.InflectorImports._ // this is also a trait

"sheep".singularize

Downloading

This library is published to maven-central.

libraryDependencies += "io.backchat.inflector" %% "scala-inflector" % "1.3.4"

Patches

Patches are gladly accepted from their original author. Along with any patches, please state that the patch is your original work and that you license the work to the rl project under the MIT License.

License

MIT licensed. check the LICENSE file