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/noun_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/noun_query.h')
-rw-r--r-- | lib/noun_query.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/noun_query.h b/lib/noun_query.h index e95e0c0..5b73f8d 100644 --- a/lib/noun_query.h +++ b/lib/noun_query.h | |||
@@ -14,6 +14,10 @@ namespace verbly { | |||
14 | noun_query& has_pronunciation(); | 14 | noun_query& has_pronunciation(); |
15 | 15 | ||
16 | noun_query& with_singular_form(std::string _arg); | 16 | noun_query& with_singular_form(std::string _arg); |
17 | noun_query& with_prefix(filter<std::string> _f); | ||
18 | noun_query& with_suffix(filter<std::string> _f); | ||
19 | |||
20 | noun_query& with_complexity(int _arg); | ||
17 | 21 | ||
18 | noun_query& is_hypernym(); | 22 | noun_query& is_hypernym(); |
19 | noun_query& hypernym_of(filter<noun> _f); | 23 | noun_query& hypernym_of(filter<noun> _f); |
@@ -84,6 +88,10 @@ namespace verbly { | |||
84 | bool _has_prn = false; | 88 | bool _has_prn = false; |
85 | 89 | ||
86 | std::list<std::string> _with_singular_form; | 90 | std::list<std::string> _with_singular_form; |
91 | filter<std::string> _with_prefix; | ||
92 | filter<std::string> _with_suffix; | ||
93 | |||
94 | int _with_complexity = unlimited; | ||
87 | 95 | ||
88 | bool _is_hypernym = false; | 96 | bool _is_hypernym = false; |
89 | filter<noun> _hypernym_of; | 97 | filter<noun> _hypernym_of; |