words

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountWords

func CountWords(words []string) map[string]int

func DeduplicateWords

func DeduplicateWords(wordSets ...[]string) []string

func FilterWords

func FilterWords(words []string, minLen, maxLen int, withNumbers bool) []string

func FormatWithCounts

func FormatWithCounts(words []string) []string

func GenerateGroups

func GenerateGroups(words []string, groupSize int) []string

func LowercaseWords

func LowercaseWords(words []string) []string

func MutateWords

func MutateWords(input []string, cfg MutateConfig) []string

func NormalizeAndSplit

func NormalizeAndSplit(text string) []string

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL