PenaltyDAG: now decrease weights of both left and right edge of a fuzzy node
[vspell.git] / libvspell / propername.h
blob872e79630a27f61e905facd1bc1eb297e021eea4
1 #ifndef __PROPER_NAME_H__
2 #define __PROPER_NAME_H__
4 #ifndef __SPELL_H__
5 #include "spell.h"
6 #endif
7 #ifndef __MYSTRING_H__
8 #include "mystring.h"
9 #endif
11 #include <set>
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) {
22 return
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) {
28 return
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);
35 #endif