Skip to content

mcuadros/go-personal

Repository files navigation

go-personal Build Status GoDoc

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.

Installation

The recommended way to install go-personal

go get github.com/mcuadros/go-personal

Examples

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"

License

MIT, see LICENSE

About

A tiny library to score strings as fullnames or emails.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages