Text Generation
The Wolfram Language provides a variety of tools for synthesizing text and for going from symbolic forms to natural language.
Applying Templates »
StringTemplate — specify a template for a string
TemplateApply — create a string from a template
FileTemplate ▪ XMLTemplate ▪ NotebookTemplate
Document & Notebook Generation »
GenerateDocument ▪ DocumentNotebook ▪ TextCell ▪ ExpressionCell ▪ ...
String-Level Text Assembly
StringRiffle — construct a string from a list by inserting delimiters
StringJoin — join strings together
String Generation
TextString — convert any expression to a plaintext string
CommonName — find the common name for an entity
DateString ▪ IntegerString ▪ RomanNumeral ▪ IntegerName ▪ LetterNumber ▪ ToString
Word Manipulation
Pluralize — construct plurals of words
WordData — find extensive properties of words
Capitalization
Capitalize, Decapitalize — capitalize, decapitalize the first letter of a string
ToUpperCase — capitalize every letter
LLM-Based Text Generation
LLMSynthesize — synthesize text from an LLM prompt
LLMResourceFunction — use a prewritten prompt (e.g. from the Wolfram Prompt Repository)
LLMFunction ▪ LLMExampleFunction ▪ LLMTool ▪ ...
ChatEvaluate — build up an interactive text chat
Plaintext Formatting
StringPadLeft, StringPadRight — pad strings with spaces or other characters
StringRepeat — repeat to get a string of a specified length
Typesetting & Styling »
Style — specify a style for text
Grid — arrange in a grid
Spoken Form
SpokenString — create a spoken version of any expression
Systems-Related Text Generation »
ToLowerCase ▪ FileNameJoin ▪ URLBuild ▪ ...