From dc210ee6eba3b1d173808bd858113f6abd90bff1 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 16 Mar 2016 21:35:35 -0400 Subject: Added word derivational relationships (kind of eh at the moment) and moved verbly into its own directory --- lib/word.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lib/word.h (limited to 'lib/word.h') diff --git a/lib/word.h b/lib/word.h new file mode 100644 index 0000000..23ddb2b --- /dev/null +++ b/lib/word.h @@ -0,0 +1,35 @@ +#ifndef WORD_H_8FC89498 +#define WORD_H_8FC89498 + +namespace verbly { + + class adjective_query; + class verb_query; + class adverb_query; + + template + class query; + + class word { + protected: + const data& _data; + int _id; + + std::list> pronunciations; + + word(const data& _data, int _id); + + friend class adjective_query; + friend class verb_query; + friend class noun_query; + friend class adverb_query; + + public: + virtual std::string base_form() const = 0; + + std::list rhyme_phonemes() const; + }; + +}; + +#endif /* end of include guard: WORD_H_8FC89498 */ -- cgit 1.4.1