00001 /* omstem.h: The stemming API 00002 * 00003 * ----START-LICENCE---- 00004 * Copyright 1999,2000,2001 BrightStation PLC 00005 * Copyright 2002 Ananova Ltd 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU General Public License as 00009 * published by the Free Software Foundation; either version 2 of the 00010 * License, or (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00020 * USA 00021 * -----END-LICENCE----- 00022 */ 00023 00024 #ifndef OM_HGUARD_OMSTEM_H 00025 #define OM_HGUARD_OMSTEM_H 00026 00027 #include "om/omerror.h" 00028 00030 // OmStem class 00031 // ============ 00032 00034 class OmStem { 00035 public: 00036 class Internal; 00038 Internal *internal; 00039 00050 explicit OmStem(const std::string &language); 00051 00053 ~OmStem(); 00054 00056 OmStem(const OmStem &); 00057 00059 void operator=(const OmStem &); 00060 00066 std::string stem_word(const std::string &word) const; 00067 00072 static std::string get_available_languages(); 00073 00077 std::string get_description() const; 00078 }; 00079 00080 #endif