Package adalid.commons.i18n
Interface Linguist
- All Known Implementing Classes:
EnglishLinguist,SpanishLinguist
public interface Linguist
- Author:
- Jorge Campins
-
Method Summary
Modifier and TypeMethodDescriptioncapitalize(String noun) default booleanequalAfterNormalization(String noun, String anotherNoun) Tests whether the given nouns produce the same string after pruning them, removing their diacritics and converting them to lowercase.booleanbooleanisSingular(String word) default StringReturns the noun without conjunctions and prepositions.singularOf(String word)
-
Method Details
-
getArticles
-
getConjunctions
-
getPrepositions
-
prune
Returns the noun without conjunctions and prepositions.- Parameters:
noun- a noun- Returns:
- the noun without conjunctions and prepositions
-
equalAfterNormalization
Tests whether the given nouns produce the same string after pruning them, removing their diacritics and converting them to lowercase.- Parameters:
noun- a nounanotherNoun- another noun- Returns:
- true if the given nouns produce the same string after pruning them, removing their diacritics and converting them to lowercase; false otherwise
-
capitalize
-
isPlural
-
isSingular
-
pluralOf
-
pluralOfMultiwordExpression
-
singularOf
-
singularOfMultiwordExpression
-