that's right, but it's not really what i'm aiming for here. i'm not planning to use it exactly for swearing (because then i could use this more advanced plugin that you recommended). i want to eliminate some annoying replies from fragged people that aren't considered as swearing. it's a language thing, i cant explain it. if i used the term 'swear' it was just to make the description easier to understand for you.
i'm just looking for technical side of my problem, not content-related.
it's how to detect these defined words without spaces, being parts of other words or other stuff that would make it harder to detect. just detecting them the way they are normally written. i'm really expecting nothing more, it's supposed to be really simple plugin.
how to modify "if(containi(said,phrase[i]) != -1)" to make it work? or maybe there's more to it? i hope i made it as clear as possible