[erlang-questions] word filtering
Wed Jun 6 07:57:03 CEST 2007
Tx a lot for your suggestions regarding my issue.
From: Darius Bacon [mailto:]
Sent: Wednesday, June 06, 2007 6:16 AM
Subject: Re: [erlang-questions] word filtering
"shehan" <> wrote:
> Hi all,
> I want to write spam detecting (word filtering) function. I already
> that regexp can be used for that & it is just string comparing & too
> slow when used in high volume usage.(ex: 500 text messages/sec) Can
> somebody tell me that, is there any method in Erlang to filter words
> faster than regexp?
Joe Armstrong's new book includes an extended example of indexing text
for search. One module filters out words from a 'stop list'. This may
be just like what you want, though maybe not.
See the indexer_words module in the code resources downloadable from
More information about the erlang-questions