// PostProcess function loops threw the Synonymizer to 'dumb down' words that are similar
// This wwill make the bot look and feel more intellegent, giving it an illusion of understanding
PostProcess function loops threw the Synonymizer to 'dumb down' words that are similar
This wwill make the bot look and feel more intellegent, giving it an illusion of understanding
// PostProcess function loops threw the Synonymizer to ' dumb down ' words that are similar // This wwill make the bot look and feel more intellegent giving it an illusion of understanding
func PostProcess(parsed []string) (input []string) {
	search := make(map[string]string)
	for key, list := range Synonymizer {
		for _, word := range list {
			search[word] = key
		}
	}
	input = parsed
	for i, word := range parsed {
		if processedWord, ok := search[word]; ok {
			input[i] = processedWord
		}
	}
	return input
}
func PostProcess ( parsed [ ] string ) ( input [ ] string ) { search := make ( map [ string ] string ) for key , list := range Synonymizer { for _ , word := range list { search [ word ] = key } } input = parsed for i , word := range parsed { if processedWord , ok := search [ word ] ; ok { input [ i ] = processedWord } } return input }
PostProcess function loops threw the Synonymizer to 'dumb down' words that are similar
This wwill make the bot look and feel more intellegent, giving it an illusion of understanding
PostProcess function loops threw the Synonymizer to ' dumb down ' words that are similar This wwill make the bot look and feel more intellegent giving it an illusion of understanding