1 /*************************************************************************/
2 /* Copyright (c) 2004                                                    */
3 /* Daniel Sleator, David Temperley, and John Lafferty                    */
4 /* All rights reserved                                                   */
5 /*                                                                       */
6 /* Use of the link grammar parsing system is subject to the terms of the */
7 /* license set forth in the LICENSE file included with this software.    */
8 /* This license allows free redistribution and use in source and binary  */
9 /* forms, with or without modification, subject to certain conditions.   */
10 /*                                                                       */
11 /*************************************************************************/
12 
13 #ifndef _LG_READ_DICT_H_
14 #define  _LG_READ_DICT_H_
15 
16 #include "dict-common/dict-structures.h"
17 
18 void print_dictionary_data(Dictionary dict);
19 void print_dictionary_words(Dictionary dict);
20 
21 Dictionary dictionary_six(const char *lang, const char *dict_name,
22                           const char *pp_name, const char *cons_name,
23                           const char *affix_name, const char *regex_name);
24 Dictionary dictionary_create_from_file(const char *lang);
25 bool read_dictionary(Dictionary dict);
26 
27 Dict_node * file_lookup_list(const Dictionary dict, const char *s);
28 Dict_node * file_lookup_wild(Dictionary dict, const char *s);
29 bool file_boolean_lookup(Dictionary dict, const char *s);
30 void file_free_lookup(Dict_node *llist);
31 
32 void free_insert_list(Dict_node *ilist);
33 void insert_list(Dictionary dict, Dict_node * p, int l);
34 
35 #endif /* _LG_READ_DICT_H_ */
36