$ cat names.txt | sort | uniq -c | grep -v 1
2 Cannon
2 Chung
2 Meyer
2 Moore
5 Smith
2 van Rossum
2 Zhu
Maybe I’m lucky that someone might be clicking on my PEP (712) thinking it was another masterpiece by the great Brett Cannon, Python Core Developer.
But some part of me wishes that my “Cannon” in the list (1 of 60 total) was unambiguously mine. Perhaps I suffer because my counterpart is just too prolific (occupying 59 other entries!).
Maybe one of the 5 "Smith"s can share what they think? Or one of the other “twinsies”?
In some countries, it is common that people only have one name and no last name, (Indonesian names - Wikipedia) so I’d be supportive of listing people’s full name instead of the “Last, First” format.
And I’ll get ahead of a response I see, which is it can already be indexed by whatever a person chooses (for instance Guido Van Rossum’s identifier is “GvR”). Unless the majority is doing it, the people that self-select stick out like a sore-thumb
I was going to suggest you use the PEP “API” to grab the names programmatically and do what you’re looking for in a few lines of Python, but I actually realized that even in PEP.full_details only the last names are shown too, i.e.
Would you be unsatisfied with it listing your full name (as written in the PEP author field) instead, as I’m proposing—same as what you have your Discourse display name set to? That’s the simplest and most consistent solution (no more need for author overrides or special casing, just use whatever the author entered).
It should only require changing a few lines—adding a nametuple element full with the full literal name here, and then using that instead of surnamehere. See my comment above for full details.