Documentation
¶
Overview ¶
Package synth generates made-up texts and rule sets for tests and benchmarks. The words are generic job title words plus generated pseudo-words; word and text frequencies follow a power law, so a large sample repeats texts and words the way real titles do.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator is not safe for concurrent use.
func New ¶
New makes a generator whose vocabulary grows with pseudoWords made-up nouns and sectors on top of the fixed lists; more of them means more distinct patterns and texts at scale.
Click to show internal directories.
Click to hide internal directories.