lib/programming_ipsum/inflector.rb
# no way to check syllables in ruby, so this has some issues.
no way to check syllables in ruby, so this has some issues.
no way to check syllables in ruby so this has some issues .
def gerund_verb(word)
      if word =~ /[^oey]e$/
        word[0..-2] + 'ing'
      elsif word[-1] == 'c'
        word + 'king'
      elsif word =~ /[^aeiou][aeiou][^aeiouxw]$/
        word + word[-1] + 'ing'
      else
        word + 'ing'
      end
    end
def gerund_verb ( word ) if word =~ / [^oey]e$ / word [ 0 .. - 2 ] + 'ing' elsif word [ - 1 ] == 'c' word + 'king' elsif word =~ / [^aeiou][aeiou][^aeiouxw]$ / word + word [ - 1 ] + 'ing' else word + 'ing' end end
no way to check syllables in ruby, so this has some issues.
no way to check syllables in ruby so this has some issues .
word