Class Word
java.lang.Object
ca.phon.orthography.AbstractOrthographyElement
ca.phon.orthography.Word
- All Implemented Interfaces:
IExtendable
,OrthographyElement
- Direct Known Subclasses:
CompoundWord
@Documentation({"https://talkbank.org/manuals/CHAT.html#Word","https://talkbank.org/manuals/CHAT.html#Capitalization","https://talkbank.org/manuals/CHAT.html#Numbers","https://talkbank.org/manuals/CHAT.html#Acronyms","https://talkbank.org/manuals/CHAT.html#Titles","https://talkbank.org/manuals/CHAT.html#Linkages"})
public class Word
extends AbstractOrthographyElement
A word in an orthographic phrase.
Words may have prefix and/or suffix
codes.
-
Constructor Summary
ConstructorsConstructorDescriptionWord
(Langs langs, WordPrefix prefix, WordSuffix suffix, UntranscribedType untranscribedType, WordElement... wordElements) Word
(Langs langs, List<Replacement> replacements, WordPrefix prefix, WordSuffix suffix, UntranscribedType untranscribedType, WordElement... wordElements) Word
(WordElement... wordElements) Word
(WordPrefix prefix, WordSuffix suffix, WordElement... wordElements) Word
(String text, UntranscribedType untranscribed) Word
(String text, WordFormType suffix) Word
(String text, WordPrefix prefix, WordSuffix suffix) Word
(String text, WordPrefix prefix, WordSuffix suffix, UntranscribedType untranscribed) Word
(String text, WordType prefix, WordFormType suffix) Word
(String text, WordType prefix, WordFormType suffix, UntranscribedType untranscribed) -
Method Summary
Modifier and TypeMethodDescriptionElement text without replacementsgetLangs()
Get prefix for word.Get suffix for word.getWord()
Get the root word data without prefix/suffix, ca-elements, ca-delimiters, etc.Return an unmodifiable list of word elementsboolean
text()
Get string representation of the element.toString()
Methods inherited from class ca.phon.orthography.AbstractOrthographyElement
getExtension, getExtensions, putExtension, removeExtension
-
Constructor Details
-
Word
-
Word
-
Word
-
Word
public Word(Langs langs, WordPrefix prefix, WordSuffix suffix, UntranscribedType untranscribedType, WordElement... wordElements) -
Word
public Word(Langs langs, List<Replacement> replacements, WordPrefix prefix, WordSuffix suffix, UntranscribedType untranscribedType, WordElement... wordElements) -
Word
-
Word
-
Word
-
Word
-
Word
-
Word
-
Word
-
-
Method Details
-
isUntranscribed
public boolean isUntranscribed() -
getUntranscribedType
-
getPrefix
-
getSuffix
-
getLangs
-
getReplacements
-
getWord
Get the root word data without prefix/suffix, ca-elements, ca-delimiters, etc.- Returns:
- the root word
-
getWordElements
Return an unmodifiable list of word elements- Returns:
- wordElements
-
elementText
Element text without replacements- Returns:
- word text without replacements
-
getReplacementsText
-
text
Description copied from interface:OrthographyElement
Get string representation of the element.- Returns:
- the string value of the element
-
toString
- Overrides:
toString
in classAbstractOrthographyElement
-