Documentation
¶
Index ¶
- func CountWords(words []string) map[string]int
- func DeduplicateWords(wordSets ...[]string) []string
- func FilterWords(words []string, minLen, maxLen int, withNumbers bool) []string
- func FormatWithCounts(words []string) []string
- func GenerateGroups(words []string, groupSize int) []string
- func LowercaseWords(words []string) []string
- func MutateWords(input []string, cfg MutateConfig) []string
- func NormalizeAndSplit(text string) []string
- type MutateConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountWords ¶
func DeduplicateWords ¶
func FormatWithCounts ¶
func GenerateGroups ¶
func LowercaseWords ¶
func MutateWords ¶
func MutateWords(input []string, cfg MutateConfig) []string
func NormalizeAndSplit ¶
Types ¶
type MutateConfig ¶
type MutateConfig struct {
Leet map[string]string `json:"leet"`
Suffixes []string `json:"suffixes"`
Prefixes []string `json:"prefixes"`
Capitalize bool `json:"capitalize"`
Uppercase bool `json:"uppercase"`
Lowercase bool `json:"lowercase"`
Reverse bool `json:"reverse"`
LeetEnabled bool `json:"leet_enabled"`
MinLength int `json:"min_length"`
MaxLength int `json:"max_length"`
}
func DefaultMutateConfig ¶
func DefaultMutateConfig() MutateConfig
func LoadMutateConfig ¶
func LoadMutateConfig(path string) (MutateConfig, error)
Click to show internal directories.
Click to hide internal directories.