WordNet::

Word class

WordNet word model class

Public Instance Methods

adjective_satellites()

Return a dataset for all of the Word’s Synsets that are adjective satellites.

# File lib/wordnet/word.rb, line 134
def adjective_satellites
        return synsets_dataset.adjective_satellites
end
adjectives()

Return a dataset for all of the Word’s Synsets that are adjectives.

# File lib/wordnet/word.rb, line 122
def adjectives
        return synsets_dataset.adjectives
end
adverbs()

Return a dataset for all of the Word’s Synsets that are adverbs.

# File lib/wordnet/word.rb, line 128
def adverbs
        return synsets_dataset.adverbs
end
by_lemma( lemma )

Limit the dataset to words matching the given lemma.

# File lib/wordnet/word.rb, line 92
def by_lemma( lemma )
        return where( lemma: lemma )
end
morphs()

The WordNet::Morphs related to the word

# File lib/wordnet/word.rb, line 79
many_to_many :morphs,
        join_table: :morphmaps,
        left_key: :wordid,
        right_key: :morphid
nouns()

Return a dataset for all of the Word’s Synsets that are nouns.

# File lib/wordnet/word.rb, line 110
def nouns
        return synsets_dataset.nouns
end
senses()

The WordNet::Sense objects that relate the word with its Synsets

# File lib/wordnet/word.rb, line 66
one_to_many :senses,
        key: :wordid,
        primary_key: :wordid
synsets()

The WordNet::Synsets related to the word via its senses

# File lib/wordnet/word.rb, line 72
many_to_many :synsets,
        join_table: :senses,
        left_key: :wordid,
        right_key: :synsetid
to_s()

Return the stringified word; alias for lemma.

# File lib/wordnet/word.rb, line 104
def to_s
        return self.lemma
end
verbs()

Return a dataset for all of the Word’s Synsets that are verbs.

# File lib/wordnet/word.rb, line 116
def verbs
        return synsets_dataset.verbs
end