diff --git a/command/markov.go b/command/markov.go index c7843c0..7a9622a 100644 --- a/command/markov.go +++ b/command/markov.go @@ -924,7 +924,7 @@ func selectBestNextWord(options []string, wordHistory []string) string { var fallbackOptions []string for _, option := range options { // Avoid repetition - if len(wordHistory) == 0 || strings.ToLower(wordHistory[len(wordHistory)-1]) != strings.ToLower(option) { + if len(wordHistory) == 0 || !strings.EqualFold(wordHistory[len(wordHistory)-1], option) { fallbackOptions = append(fallbackOptions, option) } }