class WordNet::Word

WordNet word model class

Public Instance Methods

adjective_satellites() click to toggle source

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

# File lib/wordnet/word.rb, line 135
def adjective_satellites
        return synsets_dataset.adjective_satellites
end
adjectives() click to toggle source

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

# File lib/wordnet/word.rb, line 123
def adjectives
        return synsets_dataset.adjectives
end
adverbs() click to toggle source

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

# File lib/wordnet/word.rb, line 129
def adverbs
        return synsets_dataset.adverbs
end
by_lemma( lemma ) click to toggle source

Limit the dataset to words matching the given lemma.

# File lib/wordnet/word.rb, line 93
def by_lemma( lemma )
        return where( lemma: lemma )
end
morphs() click to toggle source

The WordNet::Morphs related to the word

# File lib/wordnet/word.rb, line 80
many_to_many :morphs,
        join_table: :morphmaps,
        left_key: :wordid,
        right_key: :morphid
nouns() click to toggle source

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

# File lib/wordnet/word.rb, line 111
def nouns
        return synsets_dataset.nouns
end
senses() click to toggle source

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

# File lib/wordnet/word.rb, line 67
one_to_many :senses,
        key: :wordid,
        primary_key: :wordid
synsets() click to toggle source

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

# File lib/wordnet/word.rb, line 73
many_to_many :synsets,
        join_table: :senses,
        left_key: :wordid,
        right_key: :synsetid
to_s() click to toggle source

Return the stringified word; alias for lemma.

# File lib/wordnet/word.rb, line 105
def to_s
        return self.lemma
end
verbs() click to toggle source

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

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