Documentation
¶
Overview ¶
Package randtxt supports the generation of random text using a trigram model for the English language.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupReader ¶
type GroupReader struct { R io.ByteReader GroupsPerLine int // contains filtered or unexported fields }
GroupReader groups the incoming text in groups of 5, whereby the number of groups per line can be controlled.
func NewGroupReader ¶
func NewGroupReader(r io.Reader) *GroupReader
NewGroupReader creates a new group reader.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader generates a stream of text of uppercase letters with trigrams distributed according to a language model of the English language.
Click to show internal directories.
Click to hide internal directories.