// // C++ Interface: hunspell_maker // // Description: // // // Author: Børre Gaup , (C) 2008 // // Copyright: See COPYING file that comes with this distribution // // #ifndef STDHUNSPELL_MAKER_H #define STDHUNSPELL_MAKER_H #include "string_int.h" #include "string_intset.h" #include #include #include using namespace std; /** @author Børre Gaup */ class hunspell_maker{ public: hunspell_maker(string); string clean_cruft(string dirty); vector parse_string(string str); int find_split(string str); void make_dic_der_compound_rules(); void print_files(); void set_prev_first_part(string first); void add_to_dic(vector strings); void flush(); ~hunspell_maker(); private: string_int affixes, derstems; string_int derivations; string_intset dicstem_to_affixes, derstem_to_affixes; fstream dic_file, der_file, aff_file; }; #endif