How to make use of singularize method

Hello

I need to know how to make use of singularize method with params[:path],

the code is something like this

<%= params[:path] %> , the output of this particular statement is
computers and I need to get computer.

Thank you

Advait