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/adjective_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/adjective_query.h')
| -rw-r--r-- | lib/adjective_query.h | 10 |
1 files changed, 10 insertions, 0 deletions
| diff --git a/lib/adjective_query.h b/lib/adjective_query.h index e7755cb..b2859dc 100644 --- a/lib/adjective_query.h +++ b/lib/adjective_query.h | |||
| @@ -17,6 +17,11 @@ namespace verbly { | |||
| 17 | adjective_query& requires_superlative_form(); | 17 | adjective_query& requires_superlative_form(); |
| 18 | adjective_query& position(adjective::positioning pos); | 18 | adjective_query& position(adjective::positioning pos); |
| 19 | 19 | ||
| 20 | adjective_query& with_prefix(filter<std::string> _f); | ||
| 21 | adjective_query& with_suffix(filter<std::string> _f); | ||
| 22 | |||
| 23 | adjective_query& with_complexity(int _arg); | ||
| 24 | |||
| 20 | adjective_query& is_variant(); | 25 | adjective_query& is_variant(); |
| 21 | adjective_query& variant_of(filter<noun> _f); | 26 | adjective_query& variant_of(filter<noun> _f); |
| 22 | 27 | ||
| @@ -57,6 +62,11 @@ namespace verbly { | |||
| 57 | bool _requires_superlative_form = false; | 62 | bool _requires_superlative_form = false; |
| 58 | adjective::positioning _position = adjective::positioning::undefined; | 63 | adjective::positioning _position = adjective::positioning::undefined; |
| 59 | 64 | ||
| 65 | filter<std::string> _with_prefix; | ||
| 66 | filter<std::string> _with_suffix; | ||
| 67 | |||
| 68 | int _with_complexity = unlimited; | ||
| 69 | |||
| 60 | bool _is_variant = false; | 70 | bool _is_variant = false; |
| 61 | filter<noun> _variant_of; | 71 | filter<noun> _variant_of; |
| 62 | 72 | ||
