normalize

package
v0.58.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package normalize cleans user query text before retrieval.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasAnyLetterOrNumber

func HasAnyLetterOrNumber(q string) bool

HasAnyLetterOrNumber reports whether q contains searchable text.

func Query

func Query(input string) string

Query returns the cleaned query text: hyphenated tokens split, leading '-' treated as punctuation, whitespace collapsed. Words such as "not" stay plain text; ContentKit has no Boolean query syntax.

Types

This section is empty.

Jump to

Keyboard shortcuts

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