CategoryInflectionRule

org.beangle.commons.text.inflector.rule.CategoryInflectionRule
class CategoryInflectionRule(words: Array[String], singularSuffix: String, pluralSuffix: String) extends SuffixInflectionRule

CategoryInflectionRule class.

Attributes

Graph
Supertypes
trait Rule
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override 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

Definition Classes

Inherited methods

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

Inherited from:
SuffixInflectionRule