Class: Conjugators::ActionVerbs::ImperativeMood

Inherits:
Object
  • Object
show all
Extended by:
Shared
Defined in:
lib/conjugators/action_verbs/imperative_mood.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Shared

irregulars_three_way, irregulars_two_way, person_markers

Constructor Details

#initialize(verb) ⇒ ImperativeMood

Note, MVSKOKE language here



6
7
8
9
10
11
12
# File 'lib/conjugators/action_verbs/imperative_mood.rb', line 6

def initialize(verb)
  @verb = verb

  raise "Invalid verb. Verb must end with 'etv'." unless @verb.end_with?("etv")

  @irregular = !!irregulars[@verb]
end

Class Method Details

.person_markersObject



137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/conjugators/action_verbs/imperative_mood.rb', line 137

def self.person_markers
  {
    basic: {
      '2ps' => %w{ v  },
      '2pp' => %w{ vk },
    },
    polite: {
      '2ps' => %w{ epv },
      '2pp' => %w{ epv },
    },
    do_not: {
      '2ps' => %w{ ekot },
      '2pp' => %w{ ekot },
    },
    lets: {
      '2pp' => %w{ vkē vkēt },
    },
    let_it: {
      '2ps' => %w{ ekv },
    },
    you_must: {
      '2ps' => ["vccv", "et owvccv" ],
      '2pp' => ["vkvccv", "et owvkvccv" ],
    },
    you_must_not: {
      '2ps' => ["ekot owvccv" ],
      '2pp' => ["ekot owvkvccv" ],
    },
  }
end

Instance Method Details

#conjugate!Object



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/conjugators/action_verbs/imperative_mood.rb', line 14

def conjugate!
  {
    verb: @verb,
    second_person_singular: {
      basic:              conjugate(tense: :conjugate_2ps, type: :basic),
      polite:             conjugate(tense: :conjugate_2ps, type: :polite),
      do_not:             conjugate(tense: :conjugate_2ps, type: :do_not),
      let_it:             conjugate(tense: :conjugate_2ps, type: :let_it),
      you_must:          conjugate(tense: :conjugate_2ps, type: :you_must),
      you_must_not:      conjugate(tense: :conjugate_2ps, type: :you_must_not),
    },
    second_person_plural: {
      basic:              conjugate(tense: :conjugate_2pp, type: :basic),
      polite:             conjugate(tense: :conjugate_2pp, type: :polite),
      do_not:             conjugate(tense: :conjugate_2pp, type: :do_not),
      lets:               conjugate(tense: :conjugate_2pp, type: :lets),
      you_must:           conjugate(tense: :conjugate_2pp, type: :you_must),
      you_must_not:       conjugate(tense: :conjugate_2pp, type: :you_must_not),
    },
  }
end