markbates / inflect

DEPRECATED: use github.com/gobuffalo/flect instead
https://github.com/gobuffalo/flect
MIT License
24 stars 18 forks source link

The `humanize` function should recognize Acronyms. #19

Open hyprhare opened 6 years ago

hyprhare commented 6 years ago

It appears that humanize is does not discriminate ACRONYMS from camelCase. It probably should?

For example: "FBI" | humanize => "FBI" "M.I.T" | humanize => "M.I.T"

Consider cases of PascalCase words, like McDaniel as well? Not sure if this would prove more irritating than desirable...: "Patrick-McDaniel-MD" | humanize => "Patrick McDaniel MD"

Keeping the otherwise expected behavior: "myActualCamelCase" | humanize => "My actual camel case" "hole-in-the-wall" | humanize => "Hole in the wall"

SachinMeier commented 3 years ago

concept ack