Closed lepusfelix closed 13 years ago
Yes, Alia lowercases everything, but it can be removed from the routines that process the user data it learns from, effectively removing it from responses as well. All it really would take is to remove line 77 within pyborg.py and it won't lowercase the user data at all. You also may have to remove or modify line 45 since the capitalize() function lowercases text (except the first letter of the first word) too.
Sorry for the late response, but I haven't really configured this damn thing to send notifications to my email yet...
Er... Yeah, I Kind of got overzealous and actually fixed this issue. Alia now doesn't lowercase the data she learns from which effectively means she doesn't lowercase her output either. I also fixed the annoying #nick issue by making her ONLY replace her own nickname with that of the user she's responding to. I guess this closes the Issue completely. Now you can give her a try :)
Does Alia automatically lowercase everything, like PyBorg? It was something I struggled with on my bot's previous incarnation, Pyborg 1.1.2. After working out how to get him to keep uppercase, he then had problems parsing his own nick, and always had a habit of removing any punctuation (like grammatically correct apostrophes) and he killed a lot of smilies that way too. Of course, with all the punctuation involved, links were a massive headache for him too....
So my question is whether Alia has (or can be given) a more sane way of handling caps and punctuation than merely converting/removing them? My suggestion for caps would be to treat a word containing caps as being a different word than one without them, thus generating entirely different contexts for using them, and for punctuation to be considered part of the word, except where it is next to a nick, in which case it is disregarded.