> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Al Danks
> Sent: Monday, March 08, 2004 6:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [spa] Suggested rule - beyond my ability to make
>
>
> John Hardin <johnh <at> aproposretail.com> writes:
>
> > > Once again, a suggestion for a rule based on the number of
> > > matches/occurences. I still say this should be a
> generic mechanism
> >
> > Added to bugzilla earlier today.
>
> So you're saying I can't get there from here - quite yet?
>
> Al
>
Wouldn't this do what you want? (of course I didn't use as many
superlatives so it would fit the message width better without
wrapping)

body __RC_B_05 /(?:(?=totally|absolutely|best)\b(\w+)\b.*?){5}/i
body __RC_B_06 /(?:(?=totally|absolutely|best)\b(\w+)\b.*?){6}/i
body __RC_B_07 /(?:(?=totally|absolutely|best)\b(\w+)\b.*?){7}/i
body __RC_B_08 /(?:(?=totally|absolutely|best)\b(\w+)\b.*?){8}/i

meta RC_B_05 (__RC_B_05 && !__RC_B_06 && !__RC_B_07 &&
!__RC_B_08)
meta RC_B_06 (__RC_B_06 && !__RC_B_07 && !__RC_B_08)
meta RC_B_07 (__RC_B_07 && !__RC_B_08)
meta RC_B_08 (__RC_B_08)

describe RC_B_05 BODY: Five Superlatives
describe RC_B_06 BODY: Six Superlatives
describe RC_B_07 BODY: Seven Superlatives
describe RC_B_08 BODY: Eight Superlatives

score RC_B_05 1.0
score RC_B_06 1.5
score RC_B_07 1.75
score RC_B_08 2.0

I missed the original post, so maybe I am missing something, of
course the scores are purely arbitrary, and you would need to
carry the pattern to 10. Doing it this way would allow you to
score on 8 without also scoring on 5, 6 and 7, etc.

Reply via email to