A tiny library to score strings as fullnames or emails. Given a list of strings the library returns which is the most accurate Fullname or Email.
The recommended way to install go-personal
go get github.com/mcuadros/go-personal
A basic example:
names := []string{"mcuadros", "Máximo Cuadros", "Máximo Cuadros Ortiz"}
best := personal.GetBestFullName(names)
fmt.Printlm(best)
//Returns "Máximo Cuadros Ortiz"
names := []string{"bar@foo.com", "bar@gmail.com", "bar@localdomain.local"}
best := personal.GetBestEmail(names)
fmt.Printlm(best)
//Returns "bar@gmail.com"
MIT, see LICENSE