class Zenlish::WClasses::IrregularVerbCan
Irregular verb can
Private Instance Methods
init_feature_defs()
click to toggle source
rubocop: disable Layout/SpaceInsideArrayLiteralBrackets
Calls superclass method
Zenlish::WClasses::IrregularVerb#init_feature_defs
# File lib/zenlish/wclasses/irregular_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
# File lib/zenlish/wclasses/irregular_verb_can.rb, line 22 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