Rule

org.beangle.commons.text.inflector.Rule
trait Rule

Rule interface.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def applies(word: String): Boolean

Tests to see if this rule applies for the given word.

Tests to see if this rule applies for the given word.

Attributes

Returns:

true if this rule should be applied, false otherwise

def apply(word: String): String

Applies this rule to the word, and transforming it into a new form.

Applies this rule to the word, and transforming it into a new form.

Attributes

Returns:

the transformed word