Sha256: 9328b1fc9c537824d9724430cde10137597d2e546f6a5b74ce83dcba52d92d87

Contents?: true

Size: 719 Bytes

Versions: 1

Compression:

Stored size: 719 Bytes

Contents

require_relative 'lexical_verb'

module Zenlish
  module WClasses
    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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zenlish-0.2.01 lib/zenlish/wclasses/irregular_verb.rb