Suggestion - Word-in-word filter - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! General (/forumdisplay.php?fid=23)
+----- Thread: Suggestion - Word-in-word filter (/showthread.php?tid=31754)
Suggestion - Word-in-word filter by timmie_loots on 09-20-2004 at 10:33 AM
Hi, last week i stumbled on a little problem..
I was bored so i tried to insert colorcoding into msn with the word filter of Messenger Plus!
But i had a problem...
I wanted this:
echo $var;
to change to this:
echo $var;
But.. that isn't posibbe because if you insert a wordfilter on, let's say the $ you wil have to type your var like this for the colorcoding to work:
$ var
since the $ won't be filtered out if var is sticked to it.
It wasn't only with the colorcoding that i got this problem.. I also stumbled into it when i wanted to filter out things like shit etc. (sshit wasn't filtered to ssh*t)
So my suggestion was.. add a function to the word filters that also filter words in other words.
RE: Suggestion - Word-in-word filter by VenturerX on 09-20-2004 at 11:23 AM
I can see one problem with this off the bat, what about words alone that someone might want to filter but are valid (ok) words when it's a subset of another word ...
For example, use "ass" ... alone some people may consider this an offensive word, but then the words "class" "grass" and "pass" you wouldn't want to filter.
The only way around this that I can think of is to to implement some sort of wild card mechanism (* and ?), but that might be a lot of work to parse
Vx
RE: Suggestion - Word-in-word filter by CookieRevised on 09-20-2004 at 12:31 PM
No, wildcards aren't needed, it could also be a simple option that you have to set for each filter: "[ ] Whole word only"
This would be similar to how the search function works:
You can search on words, and if you do that then "ass" wouldn't be found in "mind the grass." but will be found in "you are an ass.".
If you don't search on words (don't tick the option "Whole word only") then "ass" is found in "mind the grass." aswell as in "you are an ass.".
Word bounderies include spaces (space, tab, newline) and punctuations (.,?!;).
RE: RE: Suggestion - Word-in-word filter by timmie_loots on 09-20-2004 at 01:42 PM
quote: Originally posted by CookieRevised
No, wildcards aren't needed, it could also be a simple option that you have to set for each filter: "[ ] Whole word only"
This would be similar to how the search function works:
You can search on words, and if you do that then "ass" wouldn't be found in "mind the grass." but will be found in "you are an ass.".
If you don't search on words (don't tick the option "Whole word only") then "ass" is found in "mind the grass." aswell as in "you are an ass.".
Word bounderies include spaces (space, tab, newline) and punctuations (.,?!;).
Exactly!
I don't think it is very hard to do.. and it can be quite handy..
|