Class: LLT::Stem::NounPack

Inherits:
Pack
  • Object
show all
Defined in:
lib/llt/stem/noun_pack.rb

Instance Attribute Summary

Attributes inherited from Pack

#lemma, #lemma_key, #stems, #type

Instance Method Summary collapse

Methods inherited from Pack

#lemma_with_key, #to_hash, #to_s

Constructor Details

#initialize(*args) ⇒ NounPack

Returns a new instance of NounPack.



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

def initialize(*args)
  super(*args)
  @lemma = @stems.first.nominative
end

Instance Method Details

#o_decl_with_possible_ne_voc?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/llt/stem/noun_pack.rb', line 17

def o_decl_with_possible_ne_voc?
  super { @stems.any?(&:o_decl_with_possible_ne_voc?) }
end

#third_decl_with_possible_ne_abl?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/llt/stem/noun_pack.rb', line 9

def third_decl_with_possible_ne_abl?
  super { @stems.any?(&:third_decl_with_possible_ne_abl?) }
end

#third_decl_with_possible_ve_abl?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/llt/stem/noun_pack.rb', line 13

def third_decl_with_possible_ve_abl?
  super { @stems.any?(&:third_decl_with_possible_ve_abl?) }
end