I was part-way through submitting an answer on Stack Overflow when the initial question was deleted. The developer was having an issue with Rails thinking that the singular of “faxes” was “faxis” when in fact it should be “fax”.

I thought it was an interesting problem, so here’s the answer I prepared:

You can overwrite or set Rails’ singularizations and pluralizations (properly called inflections) in config/initializers/inflections.rb

For example:

Can’t see this Gist? View it on Github!

As you can see below, Rails now understands how to count “faxes” correctly. One fax, two faxes, three faxes, and so on. You can test that from within the Rails console:

Can’t see this Gist? View it on Github!