#ifndef _SpellingChecker_h_
#define _SpellingChecker_h_
/* WordList.h; Paul Boersma, May 28, 1999 */

#ifndef _WordList_h_
	#include "WordList.h"
#endif
#ifndef _Collection_h_
	#include "Collection.h"
#endif

#include "SpellingChecker_def.h"

#define SpellingChecker_methods Data_methods
oo_CLASS_CREATE (SpellingChecker, Data)

SpellingChecker WordList_upto_SpellingChecker (WordList me);
WordList SpellingChecker_extractWordList (SpellingChecker me);
int SpellingChecker_replaceWordList (SpellingChecker me, WordList list);
SortedSetOfString SpellingChecker_extractUserDictionary (SpellingChecker me);
int SpellingChecker_replaceUserDictionary (SpellingChecker me, SortedSetOfString userDictionary);

int SpellingChecker_isWordAllowed (SpellingChecker me, const char *word);
char * SpellingChecker_nextNotAllowedWord (SpellingChecker me, const char *sentence, int *start);

int SpellingChecker_addNewWord (SpellingChecker me, const char *word);

#endif
