# Inflector \>\> "progress"

**URL:** <https://www.ruby-forum.com/t/inflector-progress/149516>\
**Category:** Rails\
**Created:** [September 25, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/inflector-progress/149516 "2008-09-25T18:02:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhnsntmthy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@jhnsntmthy](https://www.ruby-forum.com/u/jhnsntmthy)\
**Post date:** [September 25, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/inflector-progress/149516/1 "2008-09-25T18:02:43Z")

</div>

I have this in my Inflector file:  
ActiveSupport::Inflector.inflections do |inflect|  
inflect.irregular ‘progress’, ‘progresses’  
end

but when I run:

> > “progress”.classify

i get  
=\> Progres

Obviously this is messing up some internals. Progress doesn’t really  
count as “uncountable”

Any help is appreciated

---

<div class="post-metadata">

**Author:** ![jhnsntmthy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@jhnsntmthy](https://www.ruby-forum.com/u/jhnsntmthy)\
**Post date:** [September 25, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/inflector-progress/149516/2 "2008-09-25T18:07:44Z")

</div>

On Sep 25, 11:02 am, Timothy J. \<rails-mailing-l…@andreas-  
[s.net](http://s.net)\> wrote:

> =\> Progres
> 
> Obviously this is messing up some internals. Progress doesn’t really  
> count as “uncountable”
> 
> ## Any help is appreciated
> 
> Posted viahttp://www.ruby-forum.com/.

Any chance you can use “progression” or “step” instead of “progress”?  
Might be easier for the inflector to figure things out…?

Jeff

---

<div class="post-metadata">

**Author:** ![jhnsntmthy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@jhnsntmthy](https://www.ruby-forum.com/u/jhnsntmthy)\
**Post date:** [September 25, 2008, 6:15pm UTC](https://www.ruby-forum.com/t/inflector-progress/149516/3 "2008-09-25T18:15:24Z")

</div>

Sure, there are other options out there to describe it. Would this be a  
consideration that the inflector is broken though?

Jeff C. wrote:

> Any chance you can use “progression” or “step” instead of “progress”?  
> Might be easier for the inflector to figure things out…?
> 
> Jeff

---

<div class="post-metadata">

**Author:** ![jhnsntmthy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@jhnsntmthy](https://www.ruby-forum.com/u/jhnsntmthy)\
**Post date:** [September 25, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/inflector-progress/149516/4 "2008-09-25T20:14:16Z")

</div>

Hi Timothy, your code is right. Here’s the thing:

Inflector.classify is used to see how rails converts to table\_name to  
Model  
name. So you have to do this:

Inflector.classify “progresses”

Inflector.pluralize gives you the contrary.

If you want more information take a look at this:

> **[ActiveSupport::Inflector](https://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#M000248)**
>
> The Inflector transforms words from singular to plural, class names to table names, modularized class names to ones without, and class names to foreign keys.

There you can see that actually your “progres” bug thing is documented  
right  
there but with “busines”.

Hope it helps.

On Thu, Sep 25, 2008 at 11:15 AM, Timothy J. \<  
removed\_email\_address@domain.invalid\> wrote:

> > Might be easier for the inflector to figure things out…?
> > 
> > Jeff
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
ANDRES RODRIGUEZ E  
Electronic Engineer  
Software Developer  
IT Consultant

US Phone: (305) 853-8356  
Primary Mobile: +57-300-2006186  
Secondary Mobile: +57-314-7939859
