| Package | Description |
|---|---|
| com.force.i18n | |
| com.force.i18n.grammar | |
| com.force.i18n.grammar.impl | |
| com.force.i18n.grammar.parser |
| Modifier and Type | Method and Description |
|---|---|
String |
LabelUtils.getFormDescriptionInEnglish(LanguageDeclension declension,
NounForm form)
Provide an english-list description of a noun form.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
LanguageDeclension.PluralNounForm
Simple noun form with singular and plurals
|
class |
LegacyArticledNounForm
Implementation of noun form can be supported by a language that can be
used support the old incorrect grammar.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends NounForm> |
Noun.makeSkinny(Map<T,String> map)
Utility method used to convert static
Map's concrete type to a ImmutableSortedMap. |
| Modifier and Type | Method and Description |
|---|---|
NounForm |
LanguageDeclension.getApproximateNounForm(LanguageNumber number,
LanguageCase _case,
LanguagePossessive possessive,
LanguageArticle article) |
NounForm |
LegacyArticledNounForm.getBaseNounForm() |
NounForm |
LanguageDeclension.getExactNounForm(LanguageNumber number,
LanguageCase _case,
LanguagePossessive possessive,
LanguageArticle article) |
NounForm |
LanguageDeclension.getNounForm(LanguageNumber number,
LanguageArticle articleType) |
NounForm |
LanguageDeclension.getNounForm(LanguageNumber number,
LanguageCase caseType) |
NounForm |
LanguageDeclension.getNounForm(NounForm nf) |
| Modifier and Type | Method and Description |
|---|---|
abstract Map<? extends NounForm,String> |
Noun.getAllDefinedValues() |
Map<? extends NounForm,String> |
LanguageDeclension.SimplePluralNoun.getAllDefinedValues() |
Map<? extends NounForm,String> |
ArticledDeclension.SimpleArticledPluralNoun.getAllDefinedValues() |
abstract List<? extends NounForm> |
LanguageDeclension.getAllNounForms() |
abstract Collection<? extends NounForm> |
LanguageDeclension.getEntityForms()
For entities, we need with-article forms, but validation method
will fix those values automatically.
|
abstract Collection<? extends NounForm> |
LanguageDeclension.getFieldForms() |
abstract Collection<? extends NounForm> |
LanguageDeclension.getOtherForms() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
ArticledDeclension.LegacyArticledNoun.appendArticleToBase(String base,
String article,
NounForm form) |
String |
LanguageDeclension.formLowercaseNounForm(String s,
NounForm form) |
String |
Noun.getCloseButNoCigarString(NounForm form) |
String |
Noun.getClosestString(NounForm form) |
abstract String |
ArticledDeclension.LegacyArticledNoun.getExactString(NounForm form)
Subclasses implement this class to support auto-appending of the article.
|
String |
ArticledDeclension.SimpleArticledPluralNoun.getExactString(NounForm form) |
NounForm |
LanguageDeclension.getNounForm(NounForm nf) |
abstract String |
Noun.getString(NounForm nid) |
String |
LanguageDeclension.SimplePluralNoun.getString(NounForm form) |
String |
ArticledDeclension.LegacyArticledNoun.getString(NounForm form) |
String |
Noun.getString(NounForm nid,
boolean lowerCase) |
void |
LanguageDictionary.setString(Noun n,
NounForm form,
String value) |
protected abstract void |
Noun.setString(String value,
NounForm nid) |
void |
LanguageDeclension.SimplePluralNoun.setString(String value,
NounForm form) |
protected void |
ArticledDeclension.SimpleArticledPluralNoun.setString(String value,
NounForm form) |
| Modifier and Type | Method and Description |
|---|---|
Noun |
Noun.clone(LanguageGender genderOverride,
LanguageStartsWith startsWithOverride,
Map<NounForm,String> valueOverrides)
Make a clone of the given noun, overwriting the given values with the provided overrides
|
Noun |
LanguageDeclension.createNoun(String name,
Noun.NounType type,
String entityName,
LanguageStartsWith startsWith,
LanguageGender gender,
Map<? extends NounForm,String> forms)
Accessor for creating custom nouns simply based on all of the forms.
|
boolean |
Noun.defaultValidate(String name,
Collection<? extends NounForm> requiredForms) |
| Constructor and Description |
|---|
LegacyArticledNounForm(NounForm baseNounForm,
LanguageArticle article) |
| Modifier and Type | Method and Description |
|---|---|
Map<? extends NounForm,String> |
TamilDeclension.TamilNoun.getAllDefinedValues() |
List<? extends NounForm> |
TamilDeclension.getAllNounForms() |
List<? extends NounForm> |
EsperantoDeclension.getAllNounForms() |
Collection<? extends NounForm> |
TamilDeclension.getEntityForms() |
Collection<? extends NounForm> |
EsperantoDeclension.getEntityForms() |
Collection<? extends NounForm> |
TamilDeclension.getFieldForms() |
Collection<? extends NounForm> |
EsperantoDeclension.getFieldForms() |
Collection<? extends NounForm> |
TamilDeclension.getOtherForms() |
Collection<? extends NounForm> |
EsperantoDeclension.getOtherForms() |
| Modifier and Type | Method and Description |
|---|---|
String |
TamilDeclension.TamilNoun.getString(NounForm nid) |
protected void |
TamilDeclension.TamilNoun.setString(String value,
NounForm nid) |
| Modifier and Type | Method and Description |
|---|---|
NounForm |
TermAttributes.getApproximateNounForm() |
NounForm |
TermAttributes.getExactNounForm() |
| Modifier and Type | Method and Description |
|---|---|
AdjectiveForm |
TermAttributes.getAdjectiveForm(LanguageDeclension decl,
Noun n,
NounForm nounForm,
GrammaticalTerm nextLexicalElement) |
ArticleForm |
TermAttributes.getArticleForm(LanguageDeclension decl,
Noun n,
NounForm nounForm,
GrammaticalTerm nextLexicalElement) |
Copyright (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.