package
0.0.0-20200910132837-6616cf9cc811
Repository: https://github.com/rekki/go-query-analyze.git
Documentation: pkg.go.dev

# README

normalize GitHub Actions Status codecov GoDoc

Simlpe normalize chain

Example:

package main
import n "github.com/rekki/go-query-analyze/normalize"

func main() {
  normalize := []n.Normalizer{
    n.NewUnaccent(),
    n.NewLowerCase(),
    n.NewSpaceBetweenDigits(),
    n.NewCleanup(n.BASIC_NON_ALPHANUMERIC),
    n.NewTrim(" "),
  }
  normal := n.Normalize("Hęllö wÖrld. べぺ Ł2ł  ", normalize...)

  fmt.Printf("%s", normal) // hello world へへ l 2 l
}