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.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'lib/noun.cpp') diff --git a/lib/noun.cpp b/lib/noun.cpp index f575117..71c9af0 100644 --- a/lib/noun.cpp +++ b/lib/noun.cpp @@ -77,6 +77,13 @@ namespace verbly { return _data->nouns().part_meronym_of(*this); } + noun_query noun::full_part_meronyms() const + { + assert(_valid == true); + + return _data->nouns().full_part_meronym_of(*this); + } + noun_query noun::part_holonyms() const { assert(_valid == true); @@ -84,6 +91,13 @@ namespace verbly { return _data->nouns().part_holonym_of(*this); } + noun_query noun::full_part_holonyms() const + { + assert(_valid == true); + + return _data->nouns().full_part_holonym_of(*this); + } + noun_query noun::substance_meronyms() const { assert(_valid == true); @@ -91,6 +105,13 @@ namespace verbly { return _data->nouns().substance_meronym_of(*this); } + noun_query noun::full_substance_meronyms() const + { + assert(_valid == true); + + return _data->nouns().full_substance_meronym_of(*this); + } + noun_query noun::substance_holonyms() const { assert(_valid == true); @@ -98,6 +119,13 @@ namespace verbly { return _data->nouns().substance_holonym_of(*this); } + noun_query noun::full_substance_holonyms() const + { + assert(_valid == true); + + return _data->nouns().full_substance_holonym_of(*this); + } + noun_query noun::member_meronyms() const { assert(_valid == true); @@ -105,6 +133,13 @@ namespace verbly { return _data->nouns().member_meronym_of(*this); } + noun_query noun::full_member_meronyms() const + { + assert(_valid == true); + + return _data->nouns().full_member_meronym_of(*this); + } + noun_query noun::member_holonyms() const { assert(_valid == true); @@ -112,6 +147,13 @@ namespace verbly { return _data->nouns().member_holonym_of(*this); } + noun_query noun::full_member_holonyms() const + { + assert(_valid == true); + + return _data->nouns().full_member_holonym_of(*this); + } + noun_query noun::classes() const { assert(_valid == true); -- cgit 1.4.1