Documentation
¶
Index ¶
- func LowerAndRemovePunctuation(s string) string
- func NormalizeGender(input string) string
- func RemoveCompanyTitles(in string) string
- func RemoveStopwords(in string, countryName string) string
- func ReorderSDNName(name, sdnType string) string
- func ReorderSDNNames(names []string, sdnType string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LowerAndRemovePunctuation ¶
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 RemoveCompanyTitles ¶
func RemoveStopwords ¶
func ReorderSDNName ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.