Does anyone have a good Proper Case algorithm

前端 未结 13 1221
一生所求
一生所求 2020-12-15 04:03

Does anyone have a trusted Proper Case or PCase algorithm (similar to a UCase or Upper)? I\'m looking for something that takes a value such as \"GEORGE BURDELL\"

13条回答
  •  隐瞒了意图╮
    2020-12-15 04:58

    I know this thread has been open for awhile, but as I was doing research for this problem I came across this nifty site, which allows you to paste in names to be capitalized quite quickly: https://dialect.ca/code/name-case/. I wanted to include it here for reference for others doing similar research/projects.

    They release the algorithm they have written in php at this link: https://dialect.ca/code/name-case/name_case.phps

    A preliminary test and reading of their code suggests they have been quite thorough.

提交回复
热议问题