words

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Match

type Match struct {
	Word string
	Len  int
}

type Result

type Result struct {
	WordCount   int
	UniqueWords []string
	Matches     []Match
}

func HasMatchInList

func HasMatchInList(word string, minLen int) []Result

HasMatchInList finds all dictionary words that appear as substrings of word, matching Aho-Corasick–style behavior by walking the word: at each starting position we check every substring length >= minLen. Returns one Result aggregating all matches, or nil if none.

Jump to

Keyboard shortcuts

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