From 4c94e100e87a09284f0e0a5bc0df688672492a1e Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 27 Mar 2016 14:28:54 -0400 Subject: 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. --- lib/noun_query.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/noun_query.h') 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 { noun_query& has_pronunciation(); noun_query& with_singular_form(std::string _arg); + noun_query& with_prefix(filter _f); + noun_query& with_suffix(filter _f); + + noun_query& with_complexity(int _arg); noun_query& is_hypernym(); noun_query& hypernym_of(filter _f); @@ -84,6 +88,10 @@ namespace verbly { bool _has_prn = false; std::list _with_singular_form; + filter _with_prefix; + filter _with_suffix; + + int _with_complexity = unlimited; bool _is_hypernym = false; filter _hypernym_of; -- cgit 1.4.1