Removes code duplication on inflections.rb [Closes #425]