MCPcopy
hub / github.com/six2dez/OneListForAll / Lookup

Method Lookup

internal/config/taxonomy.go:64–67  ·  view source on GitHub ↗

Lookup returns the canonical category name for a given name or alias. Returns ("", false) if not found.

(name string)

Source from the content-addressed store, hash-verified

62// Lookup returns the canonical category name for a given name or alias.
63// Returns ("", false) if not found.
64func (t *Taxonomy) Lookup(name string) (string, bool) {
65 canonical, ok := t.lookup[strings.ToLower(strings.TrimSpace(name))]
66 return canonical, ok
67}
68
69// AllCanonicalNames returns all canonical category names.
70func (t *Taxonomy) AllCanonicalNames() []string {

Callers 6

applyPathRulesMethod · 0.80
applyPathKeywordsMethod · 0.80
applyFilenameKeywordsMethod · 0.80
applyContentPatternsMethod · 0.80
applySourceTagsMethod · 0.80
NormalizeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected