Class: LLT::Constants::Endings::Adverb
- Inherits:
-
Object
- Object
- LLT::Constants::Endings::Adverb
- Defined in:
- lib/llt/constants/endings.rb
Constant Summary collapse
- E =
"e"- ITER =
"iter"- TER =
"ter"- ER =
"er"- EMPTY =
""
Class Method Summary collapse
- .get(inflection_class, stem, comparatio) ⇒ Object
- .positivus_ending(inflection_class, stem) ⇒ Object
Class Method Details
.get(inflection_class, stem, comparatio) ⇒ Object
157 158 159 160 161 162 163 |
# File 'lib/llt/constants/endings.rb', line 157 def self.get(inflection_class, stem, comparatio) const_get(case comparatio when :comparativus then :EMPTY when :superlativus then :E else positivus_ending(inflection_class, stem) end) end |
.positivus_ending(inflection_class, stem) ⇒ Object
165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/llt/constants/endings.rb', line 165 def self.positivus_ending(inflection_class, stem) if inflection_class == 3 case stem when /nt$/ then :ER when /^facil$/ then :E else :ITER # TER for audacter and sollerter, cf. RH 50 end else :E end end |