Wikidata:Requests for permissions/Bot/NikkiBot
The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- Approved--Ymblanter (talk) 10:26, 14 June 2015 (UTC)[reply]
NikkiBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Nikki (talk • contribs • logs)
Task/s: Update British English labels/descriptions which have diverged from the English ones
Code: User:NikkiBot/en-gb.py
Function details:
Take a list of items where the English and British English labels are different, compare the two and if it looks like a case where the label simply needs updating, update the label.
I plan to start off cautiously with the following three things:
- If the labels are identical except that the en-gb label starts with a capital letter and the en one doesn't, copy the en label to en-gb.
- If the en-gb label is of the form "Foo, Bar" and has no description and the en label is "Foo" and the description contains "Bar", copy both the en label and description to en-gb.
- If the en label is of the form "Template:Foo" or "Category:Foo" and the en-gb label is just "Foo", copy the en label to en-gb.
From a sample I checked, I expect that to fix about half of the 18,000 which are currently different. I expect I'll find more things which can be added once the bot is running.
This originally came up at Wikidata:Bot requests#Labels_of_elements_in_en-GB and the list I plan to use to initially is the one Pasleim created (User:Pasleim/sandbox3). I could probably do the same thing for Canadian English labels too.
--Nikki (talk) 11:24, 9 June 2015 (UTC)[reply]
- [1] did a test run of 101 edits - Nikki (talk) 01:59, 10 June 2015 (UTC)[reply]
- If you like working with spreadsheets, an alternate way could be to just edit them there and upload the result with QuickStatements. --- Jura 19:43, 10 June 2015 (UTC)[reply]
- I don't mind spreadsheets, but the sort of comparisons/changes here are a bit beyond my spreadsheet abilities, it's easier for me in Python. Also, I only have the IDs of the items, so I would need something to fetch the labels and descriptions anyway. Thanks for the suggestion though. :) - Nikki (talk) 02:31, 11 June 2015 (UTC)[reply]
- Quarry can provide current descriptions. --- Jura 09:06, 11 June 2015 (UTC)[reply]
- I don't mind spreadsheets, but the sort of comparisons/changes here are a bit beyond my spreadsheet abilities, it's easier for me in Python. Also, I only have the IDs of the items, so I would need something to fetch the labels and descriptions anyway. Thanks for the suggestion though. :) - Nikki (talk) 02:31, 11 June 2015 (UTC)[reply]
- If you like working with spreadsheets, an alternate way could be to just edit them there and upload the result with QuickStatements. --- Jura 19:43, 10 June 2015 (UTC)[reply]
- Support --Pasleim (talk) 19:20, 12 June 2015 (UTC)[reply]