Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate a random piece of text
ResourceFunction["RandomText"][n] gives text containing n random words. | |
ResourceFunction["RandomText"][n,type] gives text containing n instances of textual unit type, consisting of random words. | |
ResourceFunction["RandomText"][] gives text containing 100 random words. |
"Word" | gives n words |
"Sentence" | gives n sentences |
"Paragraph" | gives n paragraphs |
Generate text containing 15 random words:
In[1]:= |
Out[1]= |
Text containing 100 random words:
In[2]:= |
Out[2]= |
Generate text containing two sentences of random words:
In[3]:= |
Out[3]= |
RandomText formats words into sentences and paragraphs if these types are specified:
In[4]:= |
Out[4]= |
RandomText[n,"Word"] gives unformatted words:
In[5]:= |
Out[5]= |
Generate random German text:
In[6]:= |
Out[6]= |
Language specification can also be "Language" entities:
In[7]:= |
Out[7]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License