This commit is contained in:
+1
-1
@@ -924,7 +924,7 @@ func selectBestNextWord(options []string, wordHistory []string) string {
|
|||||||
var fallbackOptions []string
|
var fallbackOptions []string
|
||||||
for _, option := range options {
|
for _, option := range options {
|
||||||
// Avoid repetition
|
// 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)
|
fallbackOptions = append(fallbackOptions, option)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user