class Zenlish::WClasses::ModalVerbCan

The modal verb `can`

Private Instance Methods

init_feature_defs() click to toggle source

Comment requested by Rubocop

Calls superclass method
# File lib/zenlish/wclasses/modal_verb_can.rb, line 13
def init_feature_defs
  super
  # Create standard feature definitions for modal verb can.
  feature_def_dsl do
    feature_def 'TIME' => enumeration(:present, :past_simple)
    feature_def 'PARADIGM' => [identifier, 'Verb_can_inflection'] # 2nd item is default value
  end
end
init_paradigms() click to toggle source

rubocop: disable Layout/SpaceInsideArrayLiteralBrackets

# File lib/zenlish/wclasses/modal_verb_can.rb, line 23
def init_paradigms
  builder = Inflect::InflectionTableBuilder.new
  table = builder.build('Verb_can_inflection') do
    feature_heading 'TIME'
    #     TIME
    rule([equals(:present)     ], literal('can'))
    rule([equals(:past_simple) ], literal('could'))
  end
  add_paradigm(table)
end