Skip to content

Commit 5860846

Browse files
committed
accesssor for Gloss
1 parent 1f9e1f3 commit 5860846

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wordnet.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ func (w *Lookup) Lemma() string {
151151
return w.cluster.words[0].word
152152
}
153153

154+
// A description of this meaning
155+
func (w *Lookup) Gloss() string {
156+
return w.cluster.gloss
157+
}
158+
154159
func (w *Lookup) DumpStr() string {
155160
s := fmt.Sprintf("Word: %s\n", w.String())
156161
s += fmt.Sprintf("Synonyms: ")

0 commit comments

Comments
 (0)