String.humanize
humanize() -> string
Description
Convert an internal token or ID into a human-friendly string.
It splits the string into words, removes “ID” from the end, and converts it to Title Case.
'AdminUserId'.humanize() //= 'Admin User' 'list-of-posts'.humanize() //= 'List of Posts' 'list_of_posts'.humanize() //= 'List of Posts'