| Package | Description |
|---|---|
| com.force.i18n | |
| com.force.i18n.grammar | |
| com.force.i18n.grammar.parser |
| Modifier and Type | Method and Description |
|---|---|
String |
LabelUtils.nounify(String input,
LanguageDictionary dictionary)
Given a non-nounified input, try to replace nouns and adjectives from the dictionary
with the appropriate noun xml tags.
|
| Constructor and Description |
|---|
Nounifier(LanguageDictionary dictionary) |
| Modifier and Type | Method and Description |
|---|---|
LanguageDictionary |
GrammaticalLabelSetImpl.getDictionary() |
LanguageDictionary |
GrammaticalLabelSetFallbackImpl.getDictionary() |
LanguageDictionary |
GrammaticalLabelSet.getDictionary() |
| Modifier and Type | Method and Description |
|---|---|
void |
LanguageDictionary.putAll(LanguageDictionary otherDictionary)
Copy the terms from the other dictionary into this one.
|
| Constructor and Description |
|---|
GrammaticalLabelSetImpl(LanguageDictionary dictionary,
GrammaticalLabelFileParser p) |
GrammaticalLabelSetImpl(LanguageDictionary dictionary,
GrammaticalLabelFileParser p,
PropertyFileData data) |
GrammaticalLabelSetImpl(LanguageDictionary dictionary,
PropertyFileData data,
Map<String,String> labelSectionToFilename,
Set<String> publicSections)
Used by sleepy cat, or other implementations that already have the data specified preparsed
|
| Modifier and Type | Method and Description |
|---|---|
LanguageDictionary |
LanguageDictionaryParser.getDictionary() |
LanguageDictionary |
GrammaticalLabelFileParser.getDictionary() |
LanguageDictionary |
LabelValidator.loadDictionary(LanguageLabelSetDescriptor.GrammaticalLabelSetDescriptor dictDesc) |
| Modifier and Type | Method and Description |
|---|---|
abstract GrammaticalForm |
TermRefTag.getForm(LanguageDictionary dictionary,
boolean overrideForms) |
abstract String |
TermRefTag.toString(LanguageDictionary dictionary,
boolean overrideForms,
Renameable... entities)
Format this reference into a user-readable format based on the given dictionary
and dynamic entities
|
| Constructor and Description |
|---|
GrammaticalLabelFileParser(LanguageDictionary dictionary,
LabelSetDescriptor labelDesc,
GrammaticalLabelSetProvider parentProvider)
Construct a label file parser
|
GrammaticalLabelFileParser(LanguageDictionary dictionary,
LabelSetDescriptor labelDesc,
GrammaticalLabelSetProvider parentProvider,
boolean trackDupes) |
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.