discord-diabetes / diabot-plugins

(preserved for posterity) Diabetes-related plugins for supybot
5 stars 2 forks source link

lastbgs search tag partial matching #5

Closed awaxa closed 10 years ago

awaxa commented 12 years ago

I notice users unintentionally adding complexity to their tags with punctuation and so forth. Perhaps partial matching in last/lastbgs is in order? Eg: should break match just "break" or "break*" so that searches for "tag" when the stored tag is "tag!" or "tag?" will include the punctuated results?

TwelveBaud commented 12 years ago

I'm thinking the right thing to do is strip punctuation from the tags before doing comparisons, but to require exact matches otherwise. This will encourage users to tag appropriately, but not punish them for exclamation marks and such. Perhaps an article filter also needs to be considered (remove "a", "and", "the", etc).

TwelveBaud commented 12 years ago

a3c9675fae409a10c082075cf9a9f3e3e5c7ad75 hopefully makes it so that punctuation is stripped from new tags as they're entered.