Class: LLT::Stem::AdjectiveStem

Inherits:
LLT::Stem show all
Defined in:
lib/llt/stem/adjective_stem.rb

Instance Attribute Summary collapse

Attributes inherited from LLT::Stem

#stem, #type

Instance Method Summary collapse

Methods inherited from LLT::Stem

#initialize

Constructor Details

This class inherits a constructor from LLT::Stem

Instance Attribute Details

#comparatioObject (readonly)

Returns the value of attribute comparatio.



4
5
6
# File 'lib/llt/stem/adjective_stem.rb', line 4

def comparatio
  @comparatio
end

#nomObject (readonly)

Returns the value of attribute nom.



4
5
6
# File 'lib/llt/stem/adjective_stem.rb', line 4

def nom
  @nom
end

Instance Method Details

#init_keysObject



6
7
8
# File 'lib/llt/stem/adjective_stem.rb', line 6

def init_keys
  %i{ nom stem inflection_class comparatio number_of_endings }
end

#nominativeObject



14
15
16
# File 'lib/llt/stem/adjective_stem.rb', line 14

def nominative
  @nom
end

#o_decl_with_possible_ne_voc?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/llt/stem/adjective_stem.rb', line 22

def o_decl_with_possible_ne_voc?
  @inflection_class == 1 && @nom.match(/nus$/)
end

#third_decl_with_possible_ne_abl?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/llt/stem/adjective_stem.rb', line 18

def third_decl_with_possible_ne_abl?
  @inflection_class == 3 && @nom.match(/nis$/) && @stem.match(/n$/)
end

#to_sObject



10
11
12
# File 'lib/llt/stem/adjective_stem.rb', line 10

def to_s
  "#{t.send(@type, :abbr)}#{@inflection_class} #{@stem}"
end