prepare

package
v0.50.10 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LowerAndRemovePunctuation

func LowerAndRemovePunctuation(s string) string

LowerAndRemovePunctuation will lowercase each substring and remove punctuation

This function is called on every record from the flat files and all search requests (i.e. HTTP and searcher.TopNNNs methods). See: https://godoc.org/golang.org/x/text/unicode/norm#Form See: https://withblue.ink/2019/03/11/why-you-need-to-normalize-unicode-strings.html

func NormalizeGender

func NormalizeGender(input string) string

func RemoveCompanyTitles

func RemoveCompanyTitles(in string) string

func RemoveStopwords

func RemoveStopwords(in string, countryName string) string

func ReorderSDNName

func ReorderSDNName(name, sdnType string) string

ReorderSDNName will take a given SDN name and, if it matches "Surname, FirstName(s)", reorder it to "FirstName(s) Surname" (only for type == "individual").

func ReorderSDNNames

func ReorderSDNNames(names []string, sdnType string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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