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.cpp | |
| 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.cpp')
| -rw-r--r-- | lib/noun.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
| 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 { | |||
| 77 | return _data->nouns().part_meronym_of(*this); | 77 | return _data->nouns().part_meronym_of(*this); |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | noun_query noun::full_part_meronyms() const | ||
| 81 | { | ||
| 82 | assert(_valid == true); | ||
| 83 | |||
| 84 | return _data->nouns().full_part_meronym_of(*this); | ||
| 85 | } | ||
| 86 | |||
| 80 | noun_query noun::part_holonyms() const | 87 | noun_query noun::part_holonyms() const |
| 81 | { | 88 | { |
| 82 | assert(_valid == true); | 89 | assert(_valid == true); |
| @@ -84,6 +91,13 @@ namespace verbly { | |||
| 84 | return _data->nouns().part_holonym_of(*this); | 91 | return _data->nouns().part_holonym_of(*this); |
| 85 | } | 92 | } |
| 86 | 93 | ||
| 94 | noun_query noun::full_part_holonyms() const | ||
| 95 | { | ||
| 96 | assert(_valid == true); | ||
| 97 | |||
| 98 | return _data->nouns().full_part_holonym_of(*this); | ||
| 99 | } | ||
| 100 | |||
| 87 | noun_query noun::substance_meronyms() const | 101 | noun_query noun::substance_meronyms() const |
| 88 | { | 102 | { |
| 89 | assert(_valid == true); | 103 | assert(_valid == true); |
| @@ -91,6 +105,13 @@ namespace verbly { | |||
| 91 | return _data->nouns().substance_meronym_of(*this); | 105 | return _data->nouns().substance_meronym_of(*this); |
| 92 | } | 106 | } |
| 93 | 107 | ||
| 108 | noun_query noun::full_substance_meronyms() const | ||
| 109 | { | ||
| 110 | assert(_valid == true); | ||
| 111 | |||
| 112 | return _data->nouns().full_substance_meronym_of(*this); | ||
| 113 | } | ||
| 114 | |||
| 94 | noun_query noun::substance_holonyms() const | 115 | noun_query noun::substance_holonyms() const |
| 95 | { | 116 | { |
| 96 | assert(_valid == true); | 117 | assert(_valid == true); |
| @@ -98,6 +119,13 @@ namespace verbly { | |||
| 98 | return _data->nouns().substance_holonym_of(*this); | 119 | return _data->nouns().substance_holonym_of(*this); |
| 99 | } | 120 | } |
| 100 | 121 | ||
| 122 | noun_query noun::full_substance_holonyms() const | ||
| 123 | { | ||
| 124 | assert(_valid == true); | ||
| 125 | |||
| 126 | return _data->nouns().full_substance_holonym_of(*this); | ||
| 127 | } | ||
| 128 | |||
| 101 | noun_query noun::member_meronyms() const | 129 | noun_query noun::member_meronyms() const |
| 102 | { | 130 | { |
| 103 | assert(_valid == true); | 131 | assert(_valid == true); |
| @@ -105,6 +133,13 @@ namespace verbly { | |||
| 105 | return _data->nouns().member_meronym_of(*this); | 133 | return _data->nouns().member_meronym_of(*this); |
| 106 | } | 134 | } |
| 107 | 135 | ||
| 136 | noun_query noun::full_member_meronyms() const | ||
| 137 | { | ||
| 138 | assert(_valid == true); | ||
| 139 | |||
| 140 | return _data->nouns().full_member_meronym_of(*this); | ||
| 141 | } | ||
| 142 | |||
| 108 | noun_query noun::member_holonyms() const | 143 | noun_query noun::member_holonyms() const |
| 109 | { | 144 | { |
| 110 | assert(_valid == true); | 145 | assert(_valid == true); |
| @@ -112,6 +147,13 @@ namespace verbly { | |||
| 112 | return _data->nouns().member_holonym_of(*this); | 147 | return _data->nouns().member_holonym_of(*this); |
| 113 | } | 148 | } |
| 114 | 149 | ||
| 150 | noun_query noun::full_member_holonyms() const | ||
| 151 | { | ||
| 152 | assert(_valid == true); | ||
| 153 | |||
| 154 | return _data->nouns().full_member_holonym_of(*this); | ||
| 155 | } | ||
| 156 | |||
| 115 | noun_query noun::classes() const | 157 | noun_query noun::classes() const |
| 116 | { | 158 | { |
| 117 | assert(_valid == true); | 159 | assert(_valid == true); |
