rcorpus {ngram} | R Documentation |
Generate a corpus of random "words".
rcorpus(nwords = 50, alphabet = letters, minwordlen = 1, maxwordlen = 6)
nwords |
Number of words to generate. |
alphabet |
The pool of "letters" that word generation coes from. By default, it is the lowercase roman alphabet. |
minwordlen , maxwordlen |
The min/max length of words in the generated corpus. |
A string.
rcorpus(10)