Misplaced Pages

:Bots/Requests for approval/CobraBot 2: Difference between revisions - Misplaced Pages

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Misplaced Pages:Bots | Requests for approval Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 16:39, 29 October 2009 editIP69.226.103.13 (talk | contribs)1,766 edits Undid revision 322754193 by Fritzpoll (talk) No, it says subsequent comments in new section. I added new sec← Previous edit Revision as of 16:40, 29 October 2009 edit undoBetacommand (talk | contribs)86,927 edits revert take this else whereNext edit →
Line 79: Line 79:
{{BotApproved}} No one seems to have objected to the trial this time. ]] 11:27, 28 October 2009 (UTC) {{BotApproved}} No one seems to have objected to the trial this time. ]] 11:27, 28 October 2009 (UTC)
:''The above discussion is preserved as an archive of the debate. <span style="color:red">'''Please do not modify it.'''</span> Subsequent comments should be made in a new section.''<!-- from Template:Bot Bottom --></div> :''The above discussion is preserved as an archive of the debate. <span style="color:red">'''Please do not modify it.'''</span> Subsequent comments should be made in a new section.''<!-- from Template:Bot Bottom --></div>


At this point, considering the first bot had issues raised, I asked for it to be stopped, others had raised the issue, and CobraBot's owner did not bother to link to a very relevant ANI discussion, I would like CobraBot 1 deflagged and CobraBot task 2 stopped and the bot owner's responsibility to the community revisited until I have time to figure out whether this bot is a good idea and until the community has time to discuss this issue. --] (]) 16:22, 29 October 2009 (UTC)

Revision as of 16:40, 29 October 2009

The following discussion is an archived debate. Please do not modify it. Subsequent comments should be made in a new section. The result of the discussion was Approved.

CobraBot 2

Operator: Cybercobra

Automatic or Manually assisted: Automatic

Programming language(s): Python (PyWikipedia)

Source code available: Yes Forthcoming (still being written)

Function overview: Adds Dewey Decimal Classification and Library of Congress Classification data to {{Infobox book}} instances based on ISBNs.

Edit period(s): Multiple runs as personal time permits; once initial sweep complete, periodic infrequent re-runs (e.g. quarterly)

Estimated number of pages affected: 11K articles or within that order of magnitude, based on previous task

Exclusion compliant (Y/N): Y (via PyWikipedia defaults)

Already has a bot flag (Y/N): Y

Function details: Essentially the same as task #1, just with different, new fields (that don't link and never have).

  1. Bot chooses an article that transcludes Template:Infobox Book
  2. Bot locates the template in the article
  3. Bot checks if |congress= and/or |dewey= parameters are present
    1. If both yes, and both values is non-whitespace, page is skipped (since the datums are already present). GOTO step 1.
    2. If yes, and value(s) is/are whitespace, parameter(s) removed.
    3. If no, continue to 4.
  4. Bot grabs |isbn= parameter
    1. If parameter not present, page is skipped (No ISBN to use for data lookup). GOTO step 1.
    2. The value of the parameter is obtained, extra preceding "ISBN" text or dashes are stripped from the obtained value
    3. If the value is "N/A" or similar, page is skipped (No useful ISBN to use for data lookup). GOTO step 1.
  5. Using a proprietary process, the corresponding Dewey Decimal number and Library of Congress Classifications are found for the given ISBN.
  6. The data is added to the infobox body using the aforementioned parameters
  7. Page changes are saved.
  8. GOTO 1 until all pages either processed or skipped.

Discussion

{{BAGAssistanceNeeded}} --Cybercobra (talk) 02:24, 25 October 2009 (UTC)

Ok. Approved for trial (37 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Anomie 02:31, 25 October 2009 (UTC)
Trial complete. Interesting choice of magic number. 37 edits for examination. --Cybercobra (talk) 08:05, 25 October 2009 (UTC)
I got tired of round numbers. The edits look generally good, although I haven't even tried to check whether the numbers are correct or not. I do wonder, however, whether "" is really a useful value in Starship Troopers. Anomie 22:46, 25 October 2009 (UTC)
Yep, fiction has no Dewey number. I guess only non-fiction should be populated. HairyWombat (talk) 03:41, 26 October 2009 (UTC)
(tsk-tsk) Read our article on Dewey: "It is a common misconception that all books in the DDC are non-fiction. The DDC has a number for all books, including fiction: American fiction is classified in 813. Most libraries create a separate fiction section to allow shelving in a more generalized fashion than Dewey provides for, or to avoid the space that would be taken up in the 800s." Apparently the database I'm pulling from also does this for some works of fiction. I'll edit I've now edited the code to screen out "" for Dewey as it is indeed not very helpful. If anyone knows a better data source for Dewey, let me know. --Cybercobra (talk) 04:08, 26 October 2009 (UTC)
My mistake. I should have said that fiction has no useful Dewey number. It is no accident that libraries choose to classify fiction using schemes other than Dewey. Classifying the whole of American fiction as "813" is only slightly better than "". I still suggest that the |dewey= parameter only be populated for non-fiction. HairyWombat (talk) 21:12, 26 October 2009 (UTC)
Eh, it does subcategorize it somewhat further than that and at least in theory some libraries are actually using it. And it avoids bias towards LC Classification. But if people want fiction screened out from Dewey, I could implement that. --Cybercobra (talk) 22:35, 26 October 2009 (UTC)
The library at the university I attended used the Dewey numbers for fiction, so at least one library is using it. IMO, just "813" would be useless but the full number would be worth including. Anomie 22:49, 26 October 2009 (UTC)
Fortunately the bot gets the full number (when it's not listed as just ) --Cybercobra (talk) 23:47, 26 October 2009 (UTC)
My guess is Anomie's university library didn't have much fiction, and so Dewey worked for them. However, including fiction does no damage—my whole argument has been that there is plenty of room in the Infobox—so let's include fiction. All the bot now has to do is screen out the ""s. Do we have a consensus? Can we now unleash the beast? HairyWombat (talk) 02:18, 27 October 2009 (UTC)
I couldn't say how many of the books were fiction, but I did find out that there were 4.6 million books in the main library as of a few years ago. Anomie 03:57, 27 October 2009 (UTC)

 Approved. No one seems to have objected to the trial this time. Anomie 11:27, 28 October 2009 (UTC)

The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section.
Category:
Misplaced Pages:Bots/Requests for approval/CobraBot 2: Difference between revisions Add topic