about summary refs log tree commit diff stats
path: root/verbly/lib/word.h
blob: 23ddb2b4a05b7cf3823a0e304d21100d45bdd542 (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
#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;
  };
  
};

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