summary refs log tree commit diff stats
path: root/lib/word.h
blob: db3242a9a5788947ee9396e604f23c9661a7b3f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef WORD_H_8FC89498
#define WORD_H_8FC89498

namespace verbly {
  
  class adjective_query;
  class verb_query;
  class adverb_query;
  
  template <class T>
  class query;
  
  class word {
    protected:
      const data& _data;
      int _id;
      
      std::list<std::list<std::string>> pronunciations;
      
      word(const data& _data, int _id);
      
      friend class adjective_query;
      friend class verb_query;
      friend class noun_query;
      friend class adverb_query;
    
    public:
      virtual std::string base_form() const = 0;
      
      std::list<std::string> rhyme_phonemes() const;
      bool starts_with_vowel_sound() const;
  };
  
};

#endif /* end of include guard: WORD_H_8FC89498 */