Parameters tableยถ
Summary of all parameters.
โ
means that parameter acts when RandomGenerator is created:
it either configures the generator, or acts as load-time validation.
If such validation fails, ConfigurationError is raised.
๐ means that parameter acts at runtime every time generate()
or generate_slug() is called.
Itโs to silently discard unwanted combinations.
Parameter |
Scope |
When |
Type |
Default value |
Description |
|---|---|---|---|---|---|
|
Words list, Phrases list, |
โ |
|
|
Allow words or words within a phrase to contain whitespace. |
|
Any top-level list |
โ |
|
|
List is a generator endpoint and can be used in |
|
|
๐ |
|
|
Donโt generate combinations with repeating words. |
|
|
๐ |
|
|
Donโt generate combinations where first N symbols of any two word match,
e.g. |
|
Words list, Phrases list, |
โ |
|
|
Maximum number of characters in a word or phrase (not counting separators). |
|
|
๐ |
|
|
Donโt generate slugs with total length (including separators) exceeding N. |
|
Phrases list, |
โ |
|
|
Exact number of words in every phrase in this list. |
|
Phrases list, |
โ |
|
|
Separator used to split phrases defined as plain strings (not as lists/tuples). Use |
|
Words list, Phrases list, |
โ |
|
|
Strip leading and trailing whitespace from phrases and words before further processing. |
|
Words list, Phrases list, |
โ |
|
|
Regex to validate all words. Default: any Unicode letters, numbers, underscore. [3] |
Footnotes