// Searches libary of words to reflect to turn around sentences to be about the user
Searches libary of words to reflect to turn around sentences to be about the user
// Searches libary of words to reflect to turn around sentences to be about the user
func reflect(fragment string) string {
    words := strings.Split(fragment, " ")
    for i, word := range words {
        if Reflected, ok := Reflected[word]; ok {
            words[i] = Reflected
        }
    }
    return strings.Join(words, " ")
}
func reflect ( fragment string ) string { words := strings . Split ( fragment , " " ) for i , word := range words { if Reflected , ok := Reflected [ word ] ; ok { words [ i ] = Reflected } } return strings . Join ( words , " " ) }
Searches libary of words to reflect to turn around sentences to be about the user
Searches libary of words to reflect to turn around sentences to be about the user