Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TextAliveJp/textalive-app-api/llms.txt
Use this file to discover all available pages before exploring further.
IWord represents a single word within a phrase. It extends ITextUnit → IRenderingUnit, and carries part-of-speech information useful for language-aware styling.
Inheritance chain: IWord → ITextUnit → IRenderingUnit → TimedObject
IWord properties
The phrase that contains this word.
The characters that make up this word, in order.
The word immediately before this one within the video, or
null if this is the first word.The word immediately after this one within the video, or
null if this is the last word.Normalized part-of-speech abbreviation.
The raw part-of-speech tag as returned by the underlying NLP library — NLTK for English, MeCab for Japanese.
The language of this word. Either
"en" (English) or "ja" (Japanese).Number of characters in this word.
The first character in this word.
The last character in this word.
IWord methods
findIndex
Returns the index of a character within this word.The character whose index you want.
number
Inherited from ITextUnit
The plain text of this word.
Inherited from IRenderingUnit
Start time of this word in milliseconds.
End time of this word in milliseconds.
Duration of this word in milliseconds.
Assign a function here to override the default template animation for this word.
progress
Position in the song [ms].
number — [0, 1] position within this word’s time span.
getType
Returnsnumber — always 2 (UnitTypes.WORD) for words.
WordData
WordData is the serialization format used when building video data from JSON.
Examples
Check POS and apply different styles to nouns
Iterate word.children to animate individual characters
word.children and word.charCount give you direct access to the characters within a word without traversing the full video character list.