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:

Attributes

paradigms[R]

@return [Hash] pair of the kind: String => InflectionTable

Public Class Methods

new() click to toggle source
Calls superclass method
# 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

extension() click to toggle source

@return [Module, NilClass]

# File lib/zenlish/wclasses/word_class.rb, line 38
def extension
  nil
end
invariable?() click to toggle source

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

add_paradigm(anInflectionTable) click to toggle source
# File lib/zenlish/wclasses/word_class.rb, line 44
def add_paradigm(anInflectionTable)
  @paradigms[anInflectionTable.name] = anInflectionTable
end