lib/zenlish/wclasses/irregular_verb.rb in zenlish-0.2.00 vs lib/zenlish/wclasses/irregular_verb.rb in zenlish-0.2.01
- old
+ new
@@ -1,9 +1,33 @@
require_relative 'lexical_verb'
module Zenlish
module WClasses
- # TODO: document
class IrregularVerb < LexicalVerb
+ # @return [Array<String>] [the past simple form, past participle form].
+ attr_writer :forms
+
+ def initialize
+ super()
+ init_feature_defs
+ end
+
+ def past_simple
+ raise StandardError
+ end
+
+ def past_participle
+ raise StandardError
+ end
+
+ private
+
+ def init_feature_defs
+ super()
+ # Define standard feature definitions for irregular verbs.
+ feature_def_dsl {
+ feature_def 'PARADIGM' => [identifier, 'Irregular_form'] # 2nd item is default value
+ }
+ end
end # class
end # module
end # module
\ No newline at end of file