Class: Linguistics::Latin::Verb::LatinVerb::Formatters::TriplicateAndPluralizeFormatters
- Inherits:
-
Object
- Object
- Linguistics::Latin::Verb::LatinVerb::Formatters::TriplicateAndPluralizeFormatters
- Defined in:
- lib/linguistics_latin_tense_block/utils/triplicate_and_pluralize_formatters.rb
Class Method Summary collapse
Class Method Details
.pluralize_participial_listing(participle) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/linguistics_latin_tense_block/utils/triplicate_and_pluralize_formatters.rb', line 8 def self.pluralize_participial_listing(participle) x = triplicate_and_genderize(participle) x.sub!(/us,/, 'ī,' ) x.sub!(/a,/, 'ae,') x.sub!(/um.*$/, 'a' ) end |
.triplicate_and_genderize(s) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/linguistics_latin_tense_block/utils/triplicate_and_pluralize_formatters.rb', line 15 def self.triplicate_and_genderize(s) stem = s.sub(/^(.*)um$/,"\\1") [ stem + 'us', stem + 'a', s ].join(', ') end |