public final class IlrVerbalizerHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IlrVerbalizerHelper.BasicVerbalizable
This class provides a basic implementation of verbalizable whose label is given as argument of the constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getDefaultArticle(IlrVerbalizable verbalizable,
IlrVocabulary vocabulary,
IlrArticle article,
boolean isPlural)
Returns the default article of the given verbalizable.
|
static IlrGender |
getDefaultGender(java.util.Locale locale)
Returns the default gender, according to the given locale.
|
static IlrGender |
getDefaultGender(java.lang.String label,
java.util.Locale locale)
Returns the default gender for the given label, according to the given locale.
|
static java.lang.String |
getDefaultPlural(IlrVerbalizable verbalizable,
IlrVocabulary vocabulary)
Returns the default plural of the given verbalizable.
|
static java.lang.String |
getDefaultSingular(java.lang.String label,
IlrVocabulary vocabulary)
This method returns the default singular term corresponding to the given plural label.
|
static IlrTerm |
getDefaultTerm(IlrVerbalizable verbalizable,
IlrVocabulary vocabulary)
This methods returns a term based on the default verbalization of the given verbalizable, according to the given
locale.
|
static java.lang.String |
getPlural(IlrVerbalizable verbalizable,
IlrVocabulary vocabulary)
Returns the plural label of the given verbalizable.
|
static java.lang.String |
verbalize(IlrConcept concept,
IlrVerbalizationContext context)
Produces the verbalization of the specified concept using the provided verbalization context.
|
static java.lang.String |
verbalize(IlrConcept concept,
IlrVocabulary vocabulary)
Produces a simple verbalization of the specified concept.
|
static java.lang.String |
verbalize(IlrConceptInstance instance,
IlrVerbalizationContext context)
Computes the verbalization for the specified instance using the provided verbalization context.
|
static java.lang.String |
verbalize(IlrConceptInstance instance,
IlrVocabulary vocabulary)
Produces a simple verbalization of the specified instance.
|
static java.lang.String |
verbalize(IlrRole role,
IlrVerbalizationContext context)
Produces the verbalization of the specified role using the provided verbalization context.
|
static java.lang.String |
verbalize(IlrVerbalizable verbalizable,
IlrVerbalizationContext context,
IlrVocabulary vocabulary)
Produces the verbalization of the specified verbalizable using the provided verbalization context.
|
static java.lang.String |
verbalizeProxy(IlrConcept concept,
IlrVerbalizationContext context)
Produces the verbalization, as a proxy, of the specified concept using the provided verbalization context.
|
public static java.lang.String verbalize(IlrVerbalizable verbalizable, IlrVerbalizationContext context, IlrVocabulary vocabulary)
verbalizable - The verbalizable to verbalize.context - The verbalization context.vocabulary - The vocabulary to which this verbalizable is associatedpublic static java.lang.String verbalize(IlrConcept concept, IlrVocabulary vocabulary)
concept - The concept to verbalize.vocabulary - The vocabulary.public static java.lang.String verbalize(IlrConceptInstance instance, IlrVocabulary vocabulary)
instance - The concept instance to verbalize.vocabulary - The vocabulary.public static java.lang.String verbalize(IlrConceptInstance instance, IlrVerbalizationContext context)
instance - The concept instance to verbalize.context - The verbalization context.public static java.lang.String verbalize(IlrConcept concept, IlrVerbalizationContext context)
concept - The concept to verbalize.context - The verbalization context.public static java.lang.String verbalize(IlrRole role, IlrVerbalizationContext context)
role - The role to verbalize.context - The verbalization context.public static java.lang.String verbalizeProxy(IlrConcept concept, IlrVerbalizationContext context)
concept - The concept to verbalize.context - The verbalization context.public static java.lang.String getPlural(IlrVerbalizable verbalizable, IlrVocabulary vocabulary)
verbalizable - The verbalizable.vocabulary - The vocabulary.public static java.lang.String getDefaultPlural(IlrVerbalizable verbalizable, IlrVocabulary vocabulary)
verbalizable - The verbalizable.vocabulary - The vocabulary.public static java.lang.String getDefaultArticle(IlrVerbalizable verbalizable, IlrVocabulary vocabulary, IlrArticle article, boolean isPlural)
verbalizable - The verbalizable.vocabulary - The vocabulary.article - The desired article.isPlural - true if the article to produce should be plural.public static IlrGender getDefaultGender(java.util.Locale locale)
locale - the locale.public static IlrGender getDefaultGender(java.lang.String label, java.util.Locale locale)
label - the labellocale - the locale.public static java.lang.String getDefaultSingular(java.lang.String label,
IlrVocabulary vocabulary)
label - vocabulary - public static IlrTerm getDefaultTerm(IlrVerbalizable verbalizable, IlrVocabulary vocabulary)
verbalizable - vocabulary - © Copyright IBM Corp. 1987, 2017