Sha256: 43efd927ec69945f3690cc572d4a54ec51bfc5ab63ad289f90ab3ccb2acc8d45
Contents?: true
Size: 908 Bytes
Versions: 2
Compression:
Stored size: 908 Bytes
Contents
require_relative 'auxiliary' module Zenlish module WClasses # The modal verb `can` class ModalVerbCan < Auxiliary def initialize super() end private def init_feature_defs super # Create standard feature definitions for modal verb can. feature_def_dsl { feature_def 'TIME' => enumeration(:present, :past_simple) feature_def 'PARADIGM' => [identifier, 'Verb_can_inflection'] # 2nd item is default value } end 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 end # class end # module end # module
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zenlish-0.2.05 | lib/zenlish/wclasses/modal_verb_can.rb |
zenlish-0.2.04 | lib/zenlish/wclasses/modal_verb_can.rb |