Class: LLT::Stem::NounStem
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
#nom ⇒ Object
Returns the value of attribute nom.
4
5
6
|
# File 'lib/llt/stem/noun_stem.rb', line 4
def nom
@nom
end
|
Instance Method Details
#init_keys ⇒ Object
6
7
8
|
# File 'lib/llt/stem/noun_stem.rb', line 6
def init_keys
%i{ nom stem inflection_class sexus persona place }
end
|
#nominative ⇒ Object
14
15
16
|
# File 'lib/llt/stem/noun_stem.rb', line 14
def nominative
@nom
end
|
#o_decl_with_possible_ne_voc? ⇒ Boolean
35
36
37
38
39
|
# File 'lib/llt/stem/noun_stem.rb', line 35
def o_decl_with_possible_ne_voc?
if @inflection_class == 2
@nom.match(/nus$/)
end
end
|
#third_decl_with_possible_ne_abl? ⇒ Boolean
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/llt/stem/noun_stem.rb', line 18
def third_decl_with_possible_ne_abl?
case @inflection_class
when 3
@nom.match(/[id]?on?$/) && @stem.match(/d?in$|i?on$/) ||
@nom.match(/men$/) && @stem.match(/min$/) ||
@nom.match(/uis$/) && @stem.match(/in$/)
when 33
@nom.match(/nis$/) && @stem.match(/n$/)
end
end
|
#third_decl_with_possible_ve_abl? ⇒ Boolean
29
30
31
32
33
|
# File 'lib/llt/stem/noun_stem.rb', line 29
def third_decl_with_possible_ve_abl?
if @inflection_class == 33
@nom.match(/vis$/) && @stem.match(/v$/)
end
end
|
#to_s ⇒ Object
10
11
12
|
# File 'lib/llt/stem/noun_stem.rb', line 10
def to_s
"#{t.send(@type, :abbr)}#{@inflection_class} #{@stem}"
end
|