summary refs log tree commit diff stats
path: root/lib/verb.cpp
blob: 1f45d53684f0d78b478ea44b390bb5f1c14a0661 (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
#include "verbly.h"

namespace verbly {
  
  verb::verb()
  {
    
  }
  
  verb::verb(const data& _data, int _id) : word(_data, _id)
  {
    
  }
  
  std::string verb::base_form() const
  {
    assert(_valid == true);
    
    return _infinitive;
  }
  
  std::string verb::infinitive_form() const
  {
    assert(_valid == true);
    
    return _infinitive;
  }
  
  std::string verb::past_tense_form() const
  {
    assert(_valid == true);
    
    return _past_tense;
  }
  
  std::string verb::past_participle_form() const
  {
    assert(_valid == true);
    
    return _past_participle;
  }
  
  std::string verb::ing_form() const
  {
    assert(_valid == true);
    
    return _ing_form;
  }
  
  std::string verb::s_form() const
  {
    assert(_valid == true);
    
    return _s_form;
  }
  
  frame_query verb::frames() const
  {
    assert(_valid == true);
    
    return _data->frames().for_verb(*this);
  }
    
};