JVBEQCBCF63UK3OPGFRNFXG4F4PTDN54MGGO2P2A4BTSG3UXOP5QC
/*
Package acronym is for converting a phrase to its acronym.
*/
package acronym
import "strings"
// Abbreviate generates nice abbreviations from the input string.
func Abbreviate(s string) (accr string) {
s = strings.ReplaceAll(s, "-", " ")
sts := strings.Split(s, " ")
for _, v := range sts {
v = strings.Trim(v, "_")
if len(v) > 0 {
accr += strings.ToUpper(string(v[0]))
}
}
return
}