diff options
Diffstat (limited to 'lib/word.h')
-rw-r--r-- | lib/word.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/word.h b/lib/word.h index f71dad9..7b3c0f7 100644 --- a/lib/word.h +++ b/lib/word.h | |||
@@ -97,11 +97,23 @@ namespace verbly { | |||
97 | 97 | ||
98 | const lemma& getLemma() const; | 98 | const lemma& getLemma() const; |
99 | 99 | ||
100 | bool hasGroup() const | ||
101 | { | ||
102 | if (!valid_) | ||
103 | { | ||
104 | throw std::domain_error("Bad access to uninitialized word"); | ||
105 | } | ||
106 | |||
107 | return hasGroup_; | ||
108 | } | ||
109 | |||
110 | const group& getGroup() const; | ||
111 | |||
100 | // Convenience accessors | 112 | // Convenience accessors |
101 | 113 | ||
102 | std::string getBaseForm() const; | 114 | std::string getBaseForm() const; |
103 | 115 | ||
104 | std::list<std::string> getInflections(inflection infl) const; | 116 | std::vector<std::string> getInflections(inflection infl) const; |
105 | 117 | ||
106 | // Type info | 118 | // Type info |
107 | 119 | ||