blob: 20f9ce5f24774d91d016d1e30d84d9b284c11eb3 (
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
|
#ifndef ADVERB_QUERY_H_CA13CCDD
#define ADVERB_QUERY_H_CA13CCDD
namespace verbly {
class adverb_query {
public:
adverb_query(const data& _data);
adverb_query& limit(int _limit);
adverb_query& random();
adverb_query& except(const adverb& _word);
adverb_query& rhymes_with(const word& _word);
adverb_query& has_pronunciation();
adverb_query& requires_comparative_form();
adverb_query& requires_superlative_form();
adverb_query& has_antonyms();
adverb_query& antonym_of(filter<adverb> _f);
adverb_query& has_synonyms();
adverb_query& synonym_of(filter<adverb> _f);
adverb_query& is_mannernymic();
adverb_query& mannernym_of(filter<adjective> _f);
/* adverb_query& derived_from(const word& _w);
adverb_query& not_derived_from(const word& _w);*/
std::list<adverb> run() const;
const static int unlimited = -1;
private:
const data& _data;
int _limit = unlimited;
bool _random = false;
std::list<std::string> _rhymes;
std::list<adverb> _except;
bool _has_prn = false;
bool _requires_comparative_form = false;
bool _requires_superlative_form = false;
bool _has_antonyms = false;
filter<adverb> _antonym_of;
bool _has_synonyms = false;
filter<adverb> _synonym_of;
bool _is_mannernymic = false;
filter<adjective> _mannernym_of;
/* std::list<adjective> _derived_from_adjective;
std::list<adjective> _not_derived_from_adjective;
std::list<adverb> _derived_from_adverb;
std::list<adverb> _not_derived_from_adverb;
std::list<noun> _derived_from_noun;
std::list<noun> _not_derived_from_noun;*/
};
};
#endif /* end of include guard: ADVERB_QUERY_H_CA13CCDD */
|