summary refs log tree commit diff stats
path: root/lib/adjective.h
blob: a6eb29303d4533214ba39c23705bc961f951c901 (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
#ifndef ADJECTIVE_H_87B3FB75
#define ADJECTIVE_H_87B3FB75

namespace verbly {
  
  class adjective_query;
  class adverb_query;
  class noun_query;
  
  class adjective : public word {
    public:
      enum class positioning {
        undefined,
        predicate,
        attributive,
        postnominal
      };
    
    private:
      std::string _base_form;
      std::string _comparative_form;
      std::string _superlative_form;
      positioning _position = positioning::undefined;
      
      friend class adjective_query;
      
    public:
      adjective();
      adjective(const data& _data, int _id);
      
      std::string base_form() const;
      std::string comparative_form() const;
      std::string superlative_form() const;
      positioning position() const;
      
      bool has_comparative_form() const;
      bool has_superlative_form() const;
      bool has_position() const;
      
      adjective_query antonyms() const;
      adjective_query synonyms() const;
      adjective_query generalizations() const;
      adjective_query specifications() const;
      noun_query anti_pertainyms() const;
      adverb_query mannernyms() const;
      noun_query attributes() const;
  };
  
};

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