Class: Zenlish::WClasses::Verb

Inherits:
WordClass
  • Object
show all
Defined in:
lib/zenlish/wclasses/verb.rb

Overview

Abstract class. In traditional grammar, the verb is often defined notionally as a 'doing' word (i.e. a word that describes the action in a clause).

Direct Known Subclasses

Auxiliary, LexicalVerb

Instance Attribute Summary

Attributes inherited from WordClass

#paradigms

Instance Method Summary collapse

Methods inherited from WordClass

#extension

Methods included from Feature::FeatureStructDefBearer

#[], #boolean, #enumeration, #feature_def, #feature_def_dsl, #identifier, #init_struct_def, #struct

Constructor Details

#initializeVerb

Returns a new instance of Verb.



10
11
12
13
14
15
# File 'lib/zenlish/wclasses/verb.rb', line 10

def initialize
  super()
  @paradigms = {}
  init_feature_defs
  init_paradigms
end

Instance Method Details

#invariable?Boolean

As all verbs inflect, or change form, to reflect changes in tense, person, number, and voice, they are, by definition, variable.

Returns:

  • (Boolean)


19
20
21
# File 'lib/zenlish/wclasses/verb.rb', line 19

def invariable?
  false
end