Stripping "_id" in titleize

I was just wondering what other people think about “_id” being stripped out when using titleize. I have been trying to generate a title “Genetic Id” from a “genetic_id” string and have found that the titleize method actually produced the title string “Genetic”.

“genetic_id”.titleize produces “Genetic”

I was expecting “Genetic Id”

This is a rather unexpected result for me and I was wonder whether others think this is reasonable behaviour.

I see that this is caused because titleize uses humanize, which strips it out.

Trivial I know, I was just surprised. Thanks Carol

Definitely desirable behavior in the 99% use case, maybe there's room for a `strip: false` optional arg or something.

Related: Add optional remove_suffix parameter for humanize by juanpaulo · Pull Request #17985 · rails/rails · GitHub