about summary refs log tree commit diff stats
path: root/verbly/verb.h
blob: 42c8dc277e60dd56578159f7eb7511be5fe7ac0f (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef VERB_H_BCC929AD
#define VERB_H_BCC929AD

#include <vector>

namespace verbly {
  
  /*class frame_part {
    
  };
  
  class frame {
    private:
      std::list<frame_part> content;
      std::map<std::string, std::vector<std::list<frame_part>::iterator>> predicates;
      
    public:
      frame(std::list<frame_part> content) : content(content)
      {
        
      }
      
      std::unique_ptr<token> make_utterance() const
      {
        
      }
  };*/
  
  enum class conjugation {
    present_participle,
    past_participle,
    infinitive
  };
  
  class verb {
    private:
      int id;
      
    public:
      verb(int id) : id(id)
      {
        
      }
      
      std::string infinitive;
      std::string past_tense;
      std::string past_participle;
      std::string ing_form;
      std::string s_form;
      //std::vector<frame> frames;
      
      std::string conjugate(conjugation infl) const
      {
        switch (infl)
        {
          case conjugation::infinitive: return infinitive;
          case conjugation::past_participle: return past_participle;
          case conjugation::present_participle: return ing_form;
        }
      }
  };
  
};

#include "token.h"

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