public class Pluralizer
extends java.lang.Object
Used by various DBs to attempt to make pluralized Collection names when reflecting on a datasource that might use the singular noun form for a table name.
Examples:
English.plural("word") = "words";
English.plural("cat", 1) = "cat";
English.plural("cat", 2) = "cats";
Based on An Algorithmic Approach to English Pluralization by Damian Conway.
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
plural(java.lang.String word)
Returns plural form of the given word.
|
Copyright © 2024 Rocket Partners, LLC. All rights reserved.