1 #ifndef __PROPER_NAME_H__
2 #define __PROPER_NAME_H__
13 bool proper_name_init();
14 void mark_proper_name(const Sentence
&sent
,std::set
<WordEntry
> &we
);
15 bool is_first_capitalized_word(const char *s
);
16 bool is_all_capitalized_word(const char *s
);
17 bool is_lower_cased_word(const char *s
);
18 bool is_first_capitalized_word(const strid_string
&s
);
19 bool is_all_capitalized_word(const strid_string
&s
);
20 bool is_lower_cased_word(const strid_string
&s
);
21 inline bool is_valid_word_form(const strid_string
&s
) {
23 is_first_capitalized_word(s
) ||
24 is_all_capitalized_word(s
) ||
25 is_lower_cased_word(s
);
27 inline bool is_valid_word_form(const char *s
) {
29 is_first_capitalized_word(s
) ||
30 is_all_capitalized_word(s
) ||
31 is_lower_cased_word(s
);
33 //void mark_proper_name(Sentence &st);