Re: Anyone want to write an "intelligent" mail filter?
- Posted by "Greg Haberek" <g.haberek at comcast.net> Nov 05, 2003
- 654 views
if you want to design a "smart" filter based on the body of an email, you'd need at least the following: 1. ability to recognize and strip HTML 2. a dictionary of words with certain attributes of each word (noun, verb, adjective, preposition, article) 3. ability to parse for "meaningful" sentences or sentence structures. at this point you'd be writing a grammar checker similar to that found in MS Word. You'd look for parts of a sentence and/or groups of words that match no given pattern. for example: "i have a whole sentence in quotes" "i have" = noun + verb = simple sentence "a whole sentence" = article + adjective + noun = sentence object "in quotes" = preposition + noun (plural) = prepstional phrase "indecisive constitute dakar summitry ajax beaver" "indecisive constitute" = adjective + verb = not a sentence (should be adverb + verb or adjective + noun) "dakar summitry" = noun + noun = not a sentence (makes no sense) "ajax beaver" = noun + noun = not a sentence (makes no sense) as you can see there are specifc patterns to the english language. anyone with an extensive knowledge of the stucture of the language, and a few english books (such as myself) could write such a filter. i however, do not have the time, as my current projects are quite consuming with my time. i am willing to lend my assistance to anyone who may need it. i have taken quite a few english classes and 'advanced composition' classes. ~Greg