open-source-search-engine/StopWords.h
2013-08-02 13:12:24 -07:00

44 lines
1.2 KiB
C

// Matt Wells, copyright Jul 2001
#ifndef _STOPWORDS_H_
#define _STOPWORDS_H_
#include "Unicode.h"
// . this returns true if h is the hash of an ENGLISH stop word
// . list taken from www.superjournal.ac.uk/sj/application/demo/stopword.htm
// . stop words with "mdw" next to them are ones I added
bool isStopWord ( char *s , long len , long long h ) ;
// used by Synonyms.cpp
bool isStopWord2 ( long long *h ) ;
bool isStopWord32 ( long h ) ;
//just a stub for now
//bool isStopWord ( UChar *s , long len , long long h );
// . damn i forgot to include these above
// . i need these so m_bitScores in IndexTable.cpp doesn't have to require
// them! Otherwise, it's like all queries have quotes around them again...
bool isQueryStopWord ( char *s , long len , long long h ) ;
//bool isQueryStopWord ( UChar *s , long len , long long h ) ;
// is it a COMMON word?
long isCommonWord ( long long h ) ;
long isCommonQueryWordInEnglish ( long long h ) ;
bool initWordTable(class HashTableX *table, char* words[], long size ,
char *label);
bool isVerb ( long long *hp ) ;
// for Process.cpp::resetAll() to call when exiting to free all mem
void resetStopWordTables();
extern HashTableX s_table32;
#endif