class Zenlish::WClasses::WordClass
Also known as: part of speech, syntactic category or word category. A word class represents a group of word which have similar functions. Word classes are divided into:
-
Lexical words (?? same as content words??) such as nouns, verbs, adjectives, adverbs. Content words carry the meaning of a sentence for the chosen discourse universe.
-
Function words (?? same as structure words??) such as pronouns, determiners, modal verbs, auxiliary verbs. Structure words helpt to structure a sentence. They working is independent of the chosen discourse universe. conjunctions and prepositions
Attributes
@return [Hash] pair of the kind: String => InflectionTable
Public Class Methods
# File lib/zenlish/wclasses/word_class.rb, line 24 def initialize super(self.class.name.split('::').last) init_struct_def(nil, {}) @paradigms = {} end
Public Instance Methods
@return [Module, NilClass]
# File lib/zenlish/wclasses/word_class.rb, line 38 def extension nil end
Indicates whether all words from the word class have a single (uninflected) form. @return [FalseClass, TrueClass] true iff the words in the class are invariable.
# File lib/zenlish/wclasses/word_class.rb, line 33 def invariable? true end
Protected Instance Methods
# File lib/zenlish/wclasses/word_class.rb, line 44 def add_paradigm(anInflectionTable) @paradigms[anInflectionTable.name] = anInflectionTable end