tamtamchik / namecase

PHP package that converts names into the correct case where it is possible.
https://tamtamchika.net/namecase
MIT License
77 stars 7 forks source link

Combined La names are an issue #13

Open tamtamchik opened 3 years ago

tamtamchik commented 3 years ago

Andre LaMothe is converted to Andre Lamothe

kevyworks commented 2 years ago

@tamtamchik Hi, this is also similar to a name of: JoLyn, have you made fixes to this?

Custom RegEx:

// For: "AaAaa..", example name "laMothe" or "LaMothe" becomes proper as "LaMothe"
^([A-Za-z]{1}[a-z]{1})([A-Z]{1}[a-z][^A-Z]+\b)
tamtamchik commented 2 years ago

@kevyworks thanks for your regexp! Can you please provide a real person with the name JoLyn? (Wikipedia is a great source for examples).

kevyworks commented 2 years ago

@tamtamchik Im sorry i forgot her last name, but its a valid name JoLyn. Im not using your library but I was searching for this, and this naming thing can't be standardized in anyway.. I have to do a modifiable UI for admins to set custom ignore such as this, like van, Vanderford, sometimes without modification it will do a vanDerford