Package adalid.commons.i18n
Class SpanishNoun
java.lang.Object
adalid.commons.i18n.SpanishNoun
- Author:
- Jorge Campins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringcapitalize(String noun) Returns the nicely capitalized form of a noun.static booleanTests whether the given (presumed) Spanish noun is plural.static booleanisSingular(String word) Tests whether the given (presumed) Spanish noun is singular.static StringReturns the plural of a given (presumed) Spanish word.static Stringstatic StringsingularOf(String word) Returns the singular of a given (presumed) Spanish word.
-
Constructor Details
-
SpanishNoun
public SpanishNoun()
-
-
Method Details
-
getArticles
-
getConjunctions
-
getPrepositions
-
capitalize
Returns the nicely capitalized form of a noun.- Parameters:
noun- a noun- Returns:
- capitalized noun
-
isPlural
Tests whether the given (presumed) Spanish noun is plural.- Parameters:
word- a word- Returns:
- true if word is plural; false otherwise
-
isSingular
Tests whether the given (presumed) Spanish noun is singular.- Parameters:
word- a word- Returns:
- true if word is singular; false otherwise
-
pluralOf
Returns the plural of a given (presumed) Spanish word. The given word may be singular or (already) plural.- Parameters:
word- a word- Returns:
- the plural of word
-
singularOf
Returns the singular of a given (presumed) Spanish word. The given word may be plural or (already) singular.- Parameters:
word- a word- Returns:
- the singular of word
-
pluralOfMultiwordExpression
-