rcorpus: Random Corpus

Description Usage Arguments Value Examples

View source: R/rcorpus.r

Description

Generate a corpus of random "words".

Usage

1
rcorpus(nwords = 50, alphabet = letters, minwordlen = 1, maxwordlen = 6)

Arguments

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.

Value

A string.

Examples

1
rcorpus(10)

ngram documentation built on Oct. 31, 2021, 5:06 p.m.