1 #ifndef __SYLLABLE_H__ // -*- tab-width: 2 mode: c++ -*-
4 #ifndef __DICTIONARY_H__
5 #include "dictionary.h"
31 // int first_consonant;
34 // int last_consonant;
35 // diacritics diacritic;
37 Syllable(const char* _first_consonant
= NULL
,
38 const char* _padding_vowel
= NULL
,
39 const char* _vowel
= NULL
,
40 const char* _last_consonant
= NULL
,
44 bool match(const Syllable
&sample
);
45 void apply(const Syllable
&sample
,std::vector
<Syllable
> &output
);
46 bool parse(const char *str
);
47 void standardize(std::string str
);
53 extern char *vowels
[];
54 extern char *first_consonants
[];
55 extern char *last_consonants
[];
56 extern char *padding_vowels
[];
57 std::string
get_std_syllable(const std::string
&str
);
58 std::string
get_lowercased_syllable(const std::string
&str
);