Giter Site home page Giter Site logo

Titlecase isn't titlecase... about humanize HOT 4 CLOSED

hubspot avatar hubspot commented on June 10, 2024
Titlecase isn't titlecase...

from humanize.

Comments (4)

hijonathan avatar hijonathan commented on June 10, 2024

You're technically correct. Do you actually need a titlecase method?

I'm going to alias it to capitalizeAll for now and update the docs.

from humanize.

hijonathan avatar hijonathan commented on June 10, 2024

Actually, we can just integrate https://github.com/gouch/to-title-case and make it configurable. Will that work? If so, would you be willing to send a pull request?

from humanize.

TuckerWhitehouse avatar TuckerWhitehouse commented on June 10, 2024

The problem with to-title-case and many other scripts that I have found, is that they don't support name's like "O'Malley" or "McDermott". I had found a script that did, but it was written in PHP, and I have since lost it :/ If I come across a library that does proper titlecase with name prefixes, I will submit a pull request.

from humanize.

aaylward avatar aaylward commented on June 10, 2024

@TuckerWhitehouse titlecase is now real titlecase. Enjoy!

from humanize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.