public abstract class ArticledDeclension extends LanguageDeclension
| Modifier and Type | Class and Description |
|---|---|
static class |
ArticledDeclension.LegacyArticledNoun
Represents a noun that in the old grammar engine had an "article" that could always be derived from the noun itself as opposed to the translation.
|
static class |
ArticledDeclension.SimpleArticle
Represents a simple adjective with one inflection
|
static class |
ArticledDeclension.SimpleArticledPluralNoun
Represents a simple noun with a singular and plural form, but that supports articles.
|
LanguageDeclension.PluralNounForm, LanguageDeclension.SimpleAdjective, LanguageDeclension.SimpleAdjectiveWithStartsWith, LanguageDeclension.SimpleModifierForm, LanguageDeclension.SimplePluralNoun| Constructor and Description |
|---|
ArticledDeclension(HumanLanguage language) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Article |
createArticle(String name,
LanguageArticle articleType) |
Set<LanguageArticle> |
getAllowedArticleTypes() |
abstract List<? extends ArticleForm> |
getArticleForms()
a
|
protected abstract String |
getDefaultArticleString(ArticleForm form,
LanguageArticle articleType)
Return the "default" article strings.
|
boolean |
hasArticle() |
createAdjective, createNoun, createNoun, createNoun, enumMapFilterNulls, enumMapFilterNulls, enumMapFilterNulls, formLowercaseNounForm, getAdjectiveForm, getAdjectiveForm, getAdjectiveForms, getAllNounForms, getAllowedCases, getApproximateAdjectiveForm, getApproximateArticleForm, getApproximateNounForm, getArticleForm, getArticleForm, getDefaultAdjectivePosition, getDefaultArticle, getDefaultCase, getDefaultGender, getDefaultPossessive, getDefaultStartsWith, getEntityForms, getExactNounForm, getFieldForms, getLanguage, getNounForm, getNounForm, getNounForm, getOtherForms, getRequiredCases, getRequiredGenders, getRequiredPossessive, getRequiredStartsWith, hasAllowedCases, hasArticleInNounForm, hasAutoDerivedStartsWith, hasCapitalization, hasGender, hasPlural, hasPossessive, hasPossessiveInAdjective, hasRequiredCases, hasStartsWith, hasStartsWithInAdjective, hasSubjectGenderInVerbConjugation, isArticleInNounFormAutoDerived, isInflected, moveNounInflectionToFirstModifier, shouldInferNounDefArticleFromParticle, shouldLowercaseEntityInCompoundNouns, toStringpublic ArticledDeclension(HumanLanguage language)
public final boolean hasArticle()
hasArticle in class LanguageDeclensionprotected abstract Article createArticle(String name, LanguageArticle articleType)
createArticle in class LanguageDeclensionname - TODOarticleType - the type of articlepublic Set<LanguageArticle> getAllowedArticleTypes()
getAllowedArticleTypes in class LanguageDeclensionpublic abstract List<? extends ArticleForm> getArticleForms()
LanguageDeclensiongetArticleForms in class LanguageDeclensionprotected abstract String getDefaultArticleString(ArticleForm form, LanguageArticle articleType)
form - the article form to returnCopyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.