diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-03-27 14:28:54 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-03-27 14:28:54 -0400 |
commit | 4c94e100e87a09284f0e0a5bc0df688672492a1e (patch) | |
tree | f94611f057268dbc1000fb66cd89a8d3ad809d7a /lib/adverb_query.h | |
parent | 429f6195f6a4410ae45ef3f560b0745ac60184c1 (diff) | |
download | verbly-4c94e100e87a09284f0e0a5bc0df688672492a1e.tar.gz verbly-4c94e100e87a09284f0e0a5bc0df688672492a1e.tar.bz2 verbly-4c94e100e87a09284f0e0a5bc0df688672492a1e.zip |
Added prefix/suffix search, and word complexity search for nouns, adjectives, and adverbs
Word complexity refers to the number of words in a noun, adjective, or adverb.
Diffstat (limited to 'lib/adverb_query.h')
-rw-r--r-- | lib/adverb_query.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/adverb_query.h b/lib/adverb_query.h index 20f9ce5..e9354bb 100644 --- a/lib/adverb_query.h +++ b/lib/adverb_query.h | |||
@@ -16,6 +16,11 @@ namespace verbly { | |||
16 | adverb_query& requires_comparative_form(); | 16 | adverb_query& requires_comparative_form(); |
17 | adverb_query& requires_superlative_form(); | 17 | adverb_query& requires_superlative_form(); |
18 | 18 | ||
19 | adverb_query& with_prefix(filter<std::string> _f); | ||
20 | adverb_query& with_suffix(filter<std::string> _f); | ||
21 | |||
22 | adverb_query& with_complexity(int _arg); | ||
23 | |||
19 | adverb_query& has_antonyms(); | 24 | adverb_query& has_antonyms(); |
20 | adverb_query& antonym_of(filter<adverb> _f); | 25 | adverb_query& antonym_of(filter<adverb> _f); |
21 | 26 | ||
@@ -43,6 +48,11 @@ namespace verbly { | |||
43 | bool _requires_comparative_form = false; | 48 | bool _requires_comparative_form = false; |
44 | bool _requires_superlative_form = false; | 49 | bool _requires_superlative_form = false; |
45 | 50 | ||
51 | filter<std::string> _with_prefix; | ||
52 | filter<std::string> _with_suffix; | ||
53 | |||
54 | int _with_complexity = unlimited; | ||
55 | |||
46 | bool _has_antonyms = false; | 56 | bool _has_antonyms = false; |
47 | filter<adverb> _antonym_of; | 57 | filter<adverb> _antonym_of; |
48 | 58 | ||