TextElement

TextElement[text,props]

represents an element of text with the specified properties.

TextElement[{elem1,elem2,},props]

represents text formed from a sequence of elements.

TextElement[elems]

represents text where no properties are specified.

Details

  • TextElement is displayed in a notebook with property information shown underneath.
  • Properties are given in an association. The first value in the association is typically used in displaying the text element.
  • Typical keys in the props association include:
  • "GrammaticalUnit"part of speech or type of phrase

Examples

Basic Examples  (2)

TextElement for the noun "boat":

Create a list of TextElement representing words:

Wrap this list as a "GrammaticalUnit" entity into another TextElement:

Use TextElement to represent the splitting of a text into characters, words or phrases:

Wolfram Research (2015), TextElement, Wolfram Language function, https://reference.wolfram.com/language/ref/TextElement.html.

Text

Wolfram Research (2015), TextElement, Wolfram Language function, https://reference.wolfram.com/language/ref/TextElement.html.

CMS

Wolfram Language. 2015. "TextElement." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TextElement.html.

APA

Wolfram Language. (2015). TextElement. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TextElement.html

BibTeX

@misc{reference.wolfram_2023_textelement, author="Wolfram Research", title="{TextElement}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/TextElement.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_textelement, organization={Wolfram Research}, title={TextElement}, year={2015}, url={https://reference.wolfram.com/language/ref/TextElement.html}, note=[Accessed: 19-March-2024 ]}