5j9/citer

Bug: USA Today citations have "Today, USA" as second author

Closed this issue ยท 5 comments

Hey!

I was just wondering why no one has made a good open source tool for online citations yet, and discovered citer today!

So in appreciation for all of your hard work, have a bug report!

image

Because of how the webpage is formatted, "USA Today" gets captured as the second author, together with Brian Truitt.

<ref name="Truitt Today 2019">{{cite web | last=Truitt | first=Brian | last2=Today | first2=Usa | title=The infamous 'Han shot first' scene in 'Star Wars' has changed yet again on Disney+ | website=USA TODAY | date=2019-11-12 | url=https://www.usatoday.com/story/entertainment/movies/2019/11/12/star-wars-disney-plus-changes-controversial-han-solo-greedo-scene/2576097001/ | access-date=2021-07-03}}</ref>

I can actually look into forking and fixing this myself next week, if no one else beats me to it!
Cheers!

5j9 commented

I can't figure out why the fix works on my machine but not on toolforge.

5j9 commented

Ok, apparently USA Today may respond with a different layout according to user's IP address. I have saved the raw HTML content of the page as it is received on toolforge at https://gist.github.com/5j9/ec831edb740363191e21c4f500cb9a09#file-usatoday_toolforge-html-L86 .

The issue relies in this part:

{"@context":"http://schema.org","@type":"NewsArticle","author":{"@type":"Person","name":"Brian Truitt, USA TODAY"}

They are obviously misusing the name field to promote their website's name and that confuses Citer.

Staged roll-out! You gotta love it, but you also just have to hate it sometimes :}

Maybe there could be two implementations to check which version of the site the client is on?

5j9 commented

Maybe there could be two implementations to check which version of the site the client is on?

Yeah, but I'm trying to avoid adding site-specific rules... For now, I decided to ignore all uppercase author names. I hope it won't cause too many false negatives. ๐Ÿคž

All-uppercase surnames are commonly used in East Asian names to clarify which of the names is to be regarded as a surname, as many East Asian cultures haven't standardized the representation or order of names in Latin Script. See, for example, Robinson, Emily Claire. (2006). A guide to names and naming practices. Government of the United Kingdom / Interpol General Secretariat.