From 7cb714b57d1cbebb572e2279e2058f5fc94ba171 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 16 Feb 2017 20:02:55 -0500 Subject: 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. --- lib/word.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/word.h') 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 { static const field regionalTerms; static const field regionalDomains; + // Synonymy relationship + + class synonyms_field { + public: + + filter operator%=(filter joinCondition) const; + + operator filter() const; + }; + + static const synonyms_field synonyms; + private: void initializeForm(inflection category) const; -- cgit 1.4.1