Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop Words for Search 1

Status
Not open for further replies.

Itshim

Programmer
Apr 6, 2004
277
US
Greetings,

I am writing a search function for a client and I was wondering if anyone knew of a place I could find a list of common stop words for searches?

I searched on Google and a few other engines, but I cannot find a basic list of words.

Thank for any help in advance.
Itshim
 
DaButcher, stop words are the common words not included in searches. banned words are usually profanities and words related to gambling, p0rn, drugs etc.

Believe it or not it actually illegal to supply profanity lists in some countries so you will never find one published but creating your own shouldn't be difficult
My stop word reg exp pattern is;
Code:
$WordList = "can|also|up|what's|where|are|we|by|in|no|and|or|of|it|all|if|at|the|for|what|to|a|has|is|on"





Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Thanks for the replies, and the word list ChrisHirst.

I actually had not heard of the term "stop words" either, until I got this project.

Thanks again,
Itshim
 
How does this stoplist work?
Do you remove all occurrances of the <stopword> in the <searchstring> ?

eg. if user searches for:
"can fall", it removes "can" from the searchstring and only searches for "fall" ?

I never thought about implementing this in my searchfunction, but now that it's mentioned, I'm interested..

ps. If I will make a function like this, I will base it on a mysql table, like my smilies script.

it's just as easy and more dynamic :)

Olav Alexander Mjelde
Admin & Webmaster
 
Huh, thanks for fixing that link ChrisHirst, I knew I should have previewd that post!

[smurf]
01101000011000010110010001110011
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top