Class: OJAD::Verb

Inherits:
Object
  • Object
show all
Defined in:
lib/ojad/verb.rb

Instance Method Summary collapse

Constructor Details

#initialize(document) ⇒ Verb

Returns a new instance of Verb.



5
6
7
# File 'lib/ojad/verb.rb', line 5

def initialize(document)
  @document = document
end

Instance Method Details

#to_humanObject

TODO: parse the verb group



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/ojad/verb.rb', line 10

def to_human
  "Verb: #{group}\n" \
  "Dictionary: #{dictionary}\n" \
  "Polite: #{polite}\n" \
  "Te: #{te}\n" \
  "Ta: #{ta}\n" \
  "Negative: #{negative}\n" \
  "Past negative: #{past_negative}\n" \
  "Ba: #{ba}\n" \
  "Causative: #{causative}\n" \
  "Passive: #{passive}\n" \
  "Imperative: #{imperative}\n" \
  "Potential: #{potential}\n" \
  "Volitional: #{volitional}\n"
end