On Mon, 2009-07-27 at 17:31 +0300, Jari Fredriksson wrote:
> > On Mon, 2009-07-27 at 14:51 +0100, rich...@buzzhost.co.uk wrote:
> > I also used these local rules (some shamelessly copied off this
> > forum):
> > body            __TRMB_YOUR_NAME
> > /(^|\W)(your(\s+|\s+\w+\s+)names?|last.name:|full.names?|surname|Prenom|fullname|names?
> > in full|with your.? Serial No|Confirmation Email
> > Serial|Names?(\s+:|:)|Receiver name)(_|\W)/i
After I splatted these rules here, I saw that they were pretty
in-efficient perl-wise, and matched a bit much logic wise.  I've
tightened them up, and I think this is better, but I'd appreciate
suggestions:

body    __TRMB_YOUR_NAME     
/\b(?:your.{0,10}\bnames?|last.name:|full.names?|surname|Prenom|fullname|names? 
in full|with your.? Serial No|Confirmation Email Serial|Names?\s?:|Receiver 
name)_{0,40}\b/i
body    __TRMB_YOUR_ADDRESS    
/\b(?:your|home|residen|contact|full|current).{0,20}\b(?:add[er]{2,4}sse?|location|country|marital
 status|occupation)_{0,40}\b/i
body    __TRMB_YOUR_PHONE       
/\b(?:telephone|tel|phone)\s?(?:num(?:ber)?|\#)?[[:space:][:punct:]]{1,5}\D/i
body    __TRMB_YOUR_AGE         /\b(?:your\s)?age\s?[[:punct:]]{1,40}\b/i
body    __TRMB_YOUR_OCCUPATION  
/\b(?:your\s)?(?:occupation|profession)_{0,30}\b/i
body    __TRMB_YOUR_BLOBBY_DETAILS      /\b(?:full 
names?.{1,20}address.{1,20}phone num|phone and fax number|your 
telephone.fax|your full contact details|send us your fullnames? and 
address|your mobile numbers?|please reply if you are willing to help me 
save|send the following informations?|provide your email address.? phone 
number)/i
body    __TRMB_OTHER_DETAILS    /\b(?:with your full contact 
informations?|contact the application desk)\b/i

meta            __TRMB_YOUR_DETAILS     ((__TRMB_YOUR_NAME || 
__TRMB_OTHER_DETAILS) && (__TRMB_YOUR_ADDRESS || __TRMB_YOUR_PHONE || 
__TRMB_YOUR_AGE || __TRMB_YOUR_OCCUPATION) || __TRMB_YOUR_BLOBBY_DETAILS )

meta    AE_DETAILS_WITH_MONEY   __TRMB_YOUR_DETAILS && (MILLION_EURO || 
MILLION_USD || US_DOLLARS_3 || NA_DOLLARS || FRT_DOLLAR || AE_GBP || 
__FRAUD_DBI)
describe AE_DETAILS_WITH_MONEY  Has form and mentions much money
meta    AE_DETAILS_WITH_EMAIL   __TRMB_YOUR_DETAILS && __HAS_ANY_EMAIL
describe AE_DETAILS_WITH_EMAIL  Has form and gives handy email to send it back 
to

score AE_DETAILS_WITH_MONEY     2.0
score AE_DETAILS_WITH_EMAIL     2.5

-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
www.austinenergy.com

Reply via email to