source: trunk/indexers/mg/src/text/stemmer.h@ 7627

Last change on this file since 7627 was 7627, checked in by kjdon, 20 years ago

make stemmerdescription a const

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/**************************************************************************
2 *
3 * stemmer.h -- The stemmer/case folder
4 * Copyright (C) 1994 Neil Sharman
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 *
20 * $Id: stemmer.h 7627 2004-06-22 04:17:06Z kjdon $
21 *
22 **************************************************************************/
23
24#ifndef STEMMER_H
25#define STEMMER_H
26
27#include "sysfuncs.h"
28
29#define STEMMER_MASK 3
30#define MAX_STEM_DESCRIPTION_LEN 16
31
32/* stemmernumber will return the stemmer for
33 * a description of the stemmer. Stemmer descriptions
34 * are not case sensitive. Valid descriptions are:
35 *
36 * 'English'
37 * 'Lovin'
38 * 'French'
39 * 'SimpleFrench'
40 *
41 * More than one description might result in the same
42 * stemmer number (for example, for stemming 'English'
43 * we currently use the 'Lovin' stemmer).
44 *
45 * stemmerdescription is a normal C, null-terminated,
46 * string.
47 *
48 * stemmernumber will return -1 if it doesn't know the
49 * stemmer description.
50 */
51int stemmernumber (const u_char *stemmerdescription);
52
53/*
54 * Method 0 - Do not stem or case fold.
55 * Method 1 - Case fold.
56 * Method 2 - Stem.
57 * Method 3 - Case fold and stem.
58 *
59 * The stemmer number should be obtained using function
60 * stemmernumber above.
61 */
62void stemmer (int method, int stemmer, u_char * word);
63
64#endif
Note: See TracBrowser for help on using the repository browser.