avatar
Michael Kilpatrick @mtkilpatrick.bsky.social

5/ Also they might right "Robert R Brown" and you need to know that middle initial wants to stay where it is, so that needs to accounted for also. Sorted. Erm, but what if they are Dutch?

jun 26, 2025, 1:24 pm • 0 0

Replies

avatar
Michael Kilpatrick @mtkilpatrick.bsky.social

6/ Their name could be Susan van de Ven or Aiden Van De Meyer. (Some non-Dutch have normalised the capitalisation so the Van might not be van). What about "Daphne du Maurier"? There are sets of particles in some languages to look out for, so the script does that too!

jun 26, 2025, 1:26 pm • 0 0 • view
avatar
Michael Kilpatrick @mtkilpatrick.bsky.social

7/ But it has to avoid falsely changing the case of two-letter names such as "Li", and so the search for particles "van de" de la", "du", etc, is separate from the logic that differentiates names such as "Li" from pairs of initials such as "CJ", primarily based on whether there's a vowel or not.

jun 26, 2025, 1:28 pm • 0 0 • view
avatar
Michael Kilpatrick @mtkilpatrick.bsky.social

8/ Blimey, it's an absolute mess. But I think I ended up with a solution that normalises most names if they are entered with stupid upper/lower case inconsistencies, and accounts for strange names, strange positioning of articles, and also puts Mr/Miss/Dr/Prof/etc always at the front.

jun 26, 2025, 1:30 pm • 0 0 • view
avatar
Michael Kilpatrick @mtkilpatrick.bsky.social

9/ All this because I couldn't stand the fact that a few people had bought tickets to Harmony In Harlem concerts but put their name as "judith smith" or "DR C BURT" rather than "Judith Smith" and "Dr C Burt". Oops. That's several days of life I won't get back!

jun 26, 2025, 1:32 pm • 0 0 • view