Documentation ¶
Overview ¶
Package validate contains wordlist validation rules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DuplicateWords ¶
DuplicateWords returns an error if the given word list contains any duplicates.
func WordLength ¶
WordLength returns an error if the given word is shorter than 3 characters or longer than 8 characters.
func WordMinDistance ¶
WordMinDistance returns an error if the given word has a Damerau-Levenshtein distance of less than 2 from any other word in the word list.
func WordPrefix ¶
WordPrefix returns an error if the given word shares the same 4-character prefix as another word in the word list.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.