Linguistics::EN::

Participles

module

Methods for deriving present participles for the English-language Linguistics module.

Public Instance Methods

anchor
part_pres()
Alias for: present_participle
anchor
present_participle()

Attempt to return the inflected string in its present participle form (e.g., talked -> talking).

# File lib/linguistics/en/participles.rb, line 15
def present_participle
plural = self.to_s.en.plural_verb

        plural.sub!( /ie$/, 'y' ) or
                plural.sub!( /ue$/, 'u' ) or
                plural.sub!( /([auy])e$/, '$1' ) or
                plural.sub!( /i$/, '' ) or
                plural.sub!( /([^e])e$/, "\\1" ) or
                /er$/.match( plural ) or
                plural.sub!( /([^aeiou][aeiouy]([bdgmnprst]))$/, "\\1\\2" )

return "#{plural}ing"
end
Also aliased as: part_pres