diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-02-16 20:02:55 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-02-16 20:02:55 -0500 |
commit | 7cb714b57d1cbebb572e2279e2058f5fc94ba171 (patch) | |
tree | 0f2f6222b61a9dde824585625f2ab2043861d6a6 /lib/word.h | |
parent | 824b4b580adeea161be89a8aa114fabb794fb4ce (diff) | |
download | verbly-7cb714b57d1cbebb572e2279e2058f5fc94ba171.tar.gz verbly-7cb714b57d1cbebb572e2279e2058f5fc94ba171.tar.bz2 verbly-7cb714b57d1cbebb572e2279e2058f5fc94ba171.zip |
Added word::synonyms join field (BAD)
Note that this is not a great implementation; the filter generated is mergable with unrelated filters and may cause results that are misleading.
Diffstat (limited to 'lib/word.h')
-rw-r--r-- | lib/word.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/word.h b/lib/word.h index e866f09..8c8de51 100644 --- a/lib/word.h +++ b/lib/word.h | |||
@@ -166,6 +166,18 @@ namespace verbly { | |||
166 | static const field regionalTerms; | 166 | static const field regionalTerms; |
167 | static const field regionalDomains; | 167 | static const field regionalDomains; |
168 | 168 | ||
169 | // Synonymy relationship | ||
170 | |||
171 | class synonyms_field { | ||
172 | public: | ||
173 | |||
174 | filter operator%=(filter joinCondition) const; | ||
175 | |||
176 | operator filter() const; | ||
177 | }; | ||
178 | |||
179 | static const synonyms_field synonyms; | ||
180 | |||
169 | private: | 181 | private: |
170 | 182 | ||
171 | void initializeForm(inflection category) const; | 183 | void initializeForm(inflection category) const; |