pub fn singularize(name: &str) -> String
Singularize a snake_case identifier by transforming only the trailing word: user_accounts → user_account, news_posts → news_post.
user_accounts
user_account
news_posts
news_post