![]() | For documentation on the prose size script, see User:Dr pda/prosesize |
Very nice tool for looking at the number or words in an article. In playing with the tool I noticed that it does not pick up editable text with the following characteristics:
<:> indented information is excluded
<*> bulletized information is excluded
<#> numbered information is excluded
For individuals working on large articles these are commonly used techniques for presenting information. Looking at a few articles it seems to reduce actual count by 10-20 percent depending on the structure of the article. Sincerely -- Bullock Talk 18:38, 24 April 2010 (UTC)
I have a problem with using this script with Internet Explorer 6. Whenever I try pressing the "Page size" script, a JavaScript error shows up, and only empty bullet points show up. Is this possible because the XMLHttpRequest object isn't created correctly? I recall that there are two different versions for different Internet Explorer versions. (And just if you are wondering why I'm using Internet Explorer 6: I am using a public library computer, so I have no choice about my browser. I use Firefox at home.) — MC10 ( T• C• GB• L) 00:02, 10 July 2010 (UTC)
I've been using this script for over a month, but it is no longer working. I tried deleting it and adding again, to no avail. Any suggestions? Thanks. Cindamuse ( talk) 10:08, 26 July 2010 (UTC)
Just a small suggestion: perhaps you could change references to "b [bytes]" to "b (characters)" (and "Kb" to, I don't know, "Kb (1,024 characters)"?), or something along those lines? I was trying to use the tool to figure out if articles achieve the 1,500-character minimum required for DYK, and had to ask someone before discovering that one byte equals one character. — Cheers, JackLee – talk– 12:13, 13 August 2010 (UTC)
e2 80 94
). However, this is turn of the
ASCII characters since UTF-8 was specifically designed to be a superset of it. —
Dispenser 14:11, 30 August 2010 (UTC)Per Wikipedia:Article_size#Occasional_ exceptions and Wikipedia:Manual of Style (embedded lists)#Appropriate use, list text should be counted, if separately. Could you add a readable prose(in lists) count? -- Lexein ( talk) 18:43, 23 August 2010 (UTC)
Hi Dr pda, I noticed something odd recently with your script. In an effort to reduce article size, I moved some blockquotes out of the text, and placed them instead in footnotes. The result was that the readable prose size increased, though I thought words in footnotes were not counted. (I realize that words in blockquotes aren't counted.) Can you advise? SlimVirgin talk| contribs 23:10, 6 January 2011 (UTC)
Hi, as you can see from
here I've just fixed a couple of issues with the script, addressing the cases you mentioned (and have now made it count blockquotes). One other thing I discovered is that diffs now have action=historysubmit
in the URL, and not action=submit
. This must be a recent change. Since I explicitly checked for the type of action being done on the page before adding the "Page Size" link to the toolbox, this may explain why it wasn't showing up for you in some cases. If you
bypass your cache this might allow you to see the page size link on old revisions. However, rereading what has been written above, it seems like you also experience this problem also on old revisions, rather than diffs between old revisions, and it is browser-specific, so maybe it's something different.
Dr pda (
talk) 08:44, 9 February 2011 (UTC)
I use this tool all the time, and it seems to work great, but I just found one article, Prince Ferdinand Philippe, Duke of Orléans, for which most of the numbers come up as 0. Spock of Vulcan ( talk) 20:38, 17 January 2011 (UTC)
I ran into a similar problem while looking at
Barak Obama. The tool only returns the File size, and 4 empty bullet locations below that.
Cliff (
talk) 18:40, 8 April 2011 (UTC)
Is there an easy option to show raw numeric counts, rather than (or in addition to) "11 kB"? Values <10000 show four digits of precision, while values >10000 show two. Readable prose size precision does matter somewhat when calculating 5x article size changes for WP:Did you know. Example: Steven Matheson (revision 413440046), actual size 11497 (by my count). -- Lexein ( talk) 00:15, 14 February 2011 (UTC)
Hi Dr pda, Your tool is wonderful. I like it. I am preparing a series of studies about Wikipedia. I would like to know whether or not your tool can count the number of sentences only in PROSE section on a Wikipedia article as your word count function works. cooldenny ( talk) 18:25, 30 April 2011 (UTC)
I have noticed since yesterday that when I want the page size to be shown, all that pops up are four bullet points with emptiness to their right while the respective statistics are supposed to be there instead. I don't know what the problem is there; I signed up for the copyediting drive, and I question how much I am capable of doing without that tool. What should happen for the tool to work again? Backtable Speak to me concerning my deeds. 03:55, 17 May 2011 (UTC)
Ever sice the "Technical maintenance will be performed soon. Temporary issues may arise but will be resolved shortly." notice has been displayed at the top of the page, the page size tool has not been working.
pluma
Ø 01:45, 5 October 2011 (UTC)
Fixed
pluma
Ø 23:12, 5 October 2011 (UTC)
if(para.parentNode.id == contentDivName || para.parentNode.nodeName == "BLOCKQUOTE"){
to
if(para.parentNode.parentNode.id == contentDivName || para.parentNode.parentNode.nodeName == "BLOCKQUOTE"){
should fix it. -- Odie5533 ( talk) 18:39, 5 October 2011 (UTC)
A similar edit needs to be made elsewhere in the script, for when you click on the link and Prose Size is already activated, then this will properly deactivate it by uncoloring the article. Gary King ( talk · scripts) 07:11, 7 October 2011 (UTC)
In the Guild of Copy Editors backlog-reduction drives, sometimes only a section of a very long article needs copyediting and this script worked well in edit-preview mode until recently (I can still get page sizes for whole articles, but not for sections). I recently added a duplicate-links highlighting tool, but am now unable to delete the duplicate-links script from my .js page to see if that's the problem (which exists in both Firefox and Chrome, so I don't think it's a browser issue). Any help much appreciated!-- Miniapolis ( talk) 02:25, 13 November 2011 (UTC)
importScript('User:Ucucha/duplinks.js'); importScript('User:Smith609/toolbox.js'); importScript('User:Topbanana/RLRL_SR_Utility.js' ); if(wgAction == 'edit') { addOnloadHook(function minorEdit() { document.getElementById('wpMinoredit').checked = true; } )}
and bypassed the cache and it still doesn't work. My JS error console has many entries for this script; is it possible my version got corrupted somehow?-- Miniapolis ( talk) 14:36, 13 November 2011 (UTC)
On pages with the template {{ Timeline geological timescale}}, the page size counter does not work. It can only count text up to the start of the template and most of the summary statistics are bullets with nothing following them. RockMagnetist ( talk) 22:26, 18 April 2012 (UTC)
For example, the page count for Geology looks like this:
RockMagnetist ( talk) 15:35, 11 May 2012 (UTC)
For the article Ra.One, I am getting the following things while checking the size :-
Document statistics:
I am certain something is pretty wrong here. Can somebody help me with this? ~*~ Ankit Bhatt~*~ 13:07, 11 May 2012 (UTC)
I've been trying to use the page size script to compare past and current revisions of a page, but the "file size" statistic isn't working. Any past revision of any page invariably displays a file size of 58kB. Everything else (prose size, image size, etc) works normally. I'm using IE, but the problem's the same on Firefox. Any ideas? DoctorKubla ( talk) 17:02, 5 July 2012 (UTC)
Please see Wikipedia:Help desk#Script for article size ( permanent link). Best regards-- Fuhghettaboutit ( talk) 23:16, 19 September 2012 (UTC)
This tool breaks on the Frog article right before some extended content, and does not count any of the subsequent 3/4 of the article. Please fix. • Jesse V. (talk) 00:09, 26 September 2012 (UTC)
Mention ofvector.js should be added next to monobook. -- Piotr Konieczny aka Prokonsul Piotrus| reply here 03:55, 6 April 2013 (UTC)
Hi, could this not be one of those bot type meta tools instead of a somewhat daunting DIY million bytes of code, and don't forget to bypass your systems..? I know, the code is probably excellent, but I'm not quite sure that I am, and then, I thought I managed to measure prose before without having to set up scripts and fiddle with my browser settings. If you start playing with words like "bypass" in machine code and you don't know what you are doing, you are asking for trouble no? ~ R. T. G 01:58, 15 July 2013 (UTC)
Hello. Will the codes be same as " User:Dr pda/prosesize.js" if I want to add this gadget to my local wikipedia by creating a page like "Mediawiki:Gadget-Prosesize.js"? Gitartha.bordoloi ( talk) 13:45, 28 December 2013 (UTC)
I had been using this for a long time. Suddenly it seems to be breaking my use of Wikipedia:HotCat. When I have nothing other than importScript('User:Dr pda/prosesize.js'); in my common.js I get the prosesize tool working but my HotCat breaks. When I remove it HotCat works again. I thought I would share. Blue Rasberry (talk) 16:50, 17 February 2014 (UTC)
I am new to this whole area, so maybe I am doing something wrong... Trying to follow the instructions, I clicked on the link to "your skin script file" which says there is no such user page "Gronk Oz/vector.js" - I accepted the option to create it.
However, when I pasted the line of code {{subst:js|User:Dr_pda/prosesize.js}} into the top of this new page, it would not allow me to save the changes. The top line (where I pasted the code) had a red cross to the left, and when I hovered the cursor over it, it displays the following error messages:
Has anybody else installed it on Chrome and can advise how to address this problem? -- Gronk Oz ( talk) 05:17, 23 July 2014 (UTC)
Prosesize returned the following for 2014 Ferguson unrest. The article has a mix of list-defined references and in-body references. The references numbers seemed too small to include the LDRs, so I copied-and-pasted the LDRs into a .txt file and saved it on my computer. The resulting file was 81 kB in size. I conclude that Prosesize does not include LDRs. It would be great if it could be modified to do so; if that is not feasible, the documentation should be updated to clarify this.
on Chrome 52.0.2743.116 m on W10. Thanks! Lfstevens ( talk) 21:33, 3 September 2016 (UTC)
Hi. The script is not working for the article Glushkov's construction algorithm. Thanks for the splendid tool, though. I hope it can be fixed soon. BroVic ( talk) 23:38, 15 November 2016 (UTC)
FYI, I have created a shortcut
WP:RPS to the guideline about readable prose size. It may be useful to point there from the script's page size stats. I suggest those changes to lines 221–226 of the source. —
JFG
talk 02:17, 29 November 2016 (UTC)
if((prose_size-refmark_size)>10240){
prose_value.innerHTML='Prose size (text only): '+((prose_size-refmark_size)/1024).toFixed(0)+' kB ('+word_count+' words) "
readable prose size"';
}
else{
prose_value.innerHTML='Prose size (text only): '+(prose_size-refmark_size)+' B ('+word_count+' words) "
readable prose size"';
}
Also seen in Giovanni Gribodo, any ideas why? Quetzal1964 20:17, 1 June 2017 (UTC) talk
User:Shubinator/DYKcheck.js seems to have the same problem. Would it be possible to fix it too? Hawkeye7 ( talk) 01:06, 2 June 2017 (UTC)
Thank you. - Ammarpad ( talk) 13:17, 12 October 2017 (UTC)
Any talk page watchers here would probably be interested in Wikipedia:Village_pump_(technical)#Prosesize_as_gadget. Galobtter ( pingó mió) 07:38, 14 November 2019 (UTC)
I am trying install this tool on my common.js page, but it does not seem to be working. I have tried following the precise steps as laid out on the help page, but I must be doing something wrong. Could someone help? Sorry for the trouble! Ruby2010 ( talk) 21:54, 30 December 2019 (UTC)
importScript('User:Ucucha/HarvErrors.js'); importScript('User:Ucucha/duplinks.js'); // User:Ucucha/duplinks importScript('User:Zhaofeng Li/Reflinks.js' ); mw.loader.load('//en.wikipedia.org/?title=User%3ADr+pda%2Fprosesize.js&action=raw&ctype=text/javascript'); // User:Dr pda/prosesize
I tried to add it, but it stopped the other scripts on my common.js page working. Kingsif ( talk) 13:59, 7 March 2020 (UTC)
A discussion is taking place to address the redirect
Wikipedia:PROSESIZE. The discussion will occur at
Wikipedia:Redirects for discussion/Log/2021 February 19#Wikipedia:PROSESIZE until a consensus is reached, and anyone, including you, is welcome to contribute to the discussion.
Hanif Al Husaini (
talk) 07:28, 19 February 2021 (UTC)
![]() | For documentation on the prose size script, see User:Dr pda/prosesize |
Very nice tool for looking at the number or words in an article. In playing with the tool I noticed that it does not pick up editable text with the following characteristics:
<:> indented information is excluded
<*> bulletized information is excluded
<#> numbered information is excluded
For individuals working on large articles these are commonly used techniques for presenting information. Looking at a few articles it seems to reduce actual count by 10-20 percent depending on the structure of the article. Sincerely -- Bullock Talk 18:38, 24 April 2010 (UTC)
I have a problem with using this script with Internet Explorer 6. Whenever I try pressing the "Page size" script, a JavaScript error shows up, and only empty bullet points show up. Is this possible because the XMLHttpRequest object isn't created correctly? I recall that there are two different versions for different Internet Explorer versions. (And just if you are wondering why I'm using Internet Explorer 6: I am using a public library computer, so I have no choice about my browser. I use Firefox at home.) — MC10 ( T• C• GB• L) 00:02, 10 July 2010 (UTC)
I've been using this script for over a month, but it is no longer working. I tried deleting it and adding again, to no avail. Any suggestions? Thanks. Cindamuse ( talk) 10:08, 26 July 2010 (UTC)
Just a small suggestion: perhaps you could change references to "b [bytes]" to "b (characters)" (and "Kb" to, I don't know, "Kb (1,024 characters)"?), or something along those lines? I was trying to use the tool to figure out if articles achieve the 1,500-character minimum required for DYK, and had to ask someone before discovering that one byte equals one character. — Cheers, JackLee – talk– 12:13, 13 August 2010 (UTC)
e2 80 94
). However, this is turn of the
ASCII characters since UTF-8 was specifically designed to be a superset of it. —
Dispenser 14:11, 30 August 2010 (UTC)Per Wikipedia:Article_size#Occasional_ exceptions and Wikipedia:Manual of Style (embedded lists)#Appropriate use, list text should be counted, if separately. Could you add a readable prose(in lists) count? -- Lexein ( talk) 18:43, 23 August 2010 (UTC)
Hi Dr pda, I noticed something odd recently with your script. In an effort to reduce article size, I moved some blockquotes out of the text, and placed them instead in footnotes. The result was that the readable prose size increased, though I thought words in footnotes were not counted. (I realize that words in blockquotes aren't counted.) Can you advise? SlimVirgin talk| contribs 23:10, 6 January 2011 (UTC)
Hi, as you can see from
here I've just fixed a couple of issues with the script, addressing the cases you mentioned (and have now made it count blockquotes). One other thing I discovered is that diffs now have action=historysubmit
in the URL, and not action=submit
. This must be a recent change. Since I explicitly checked for the type of action being done on the page before adding the "Page Size" link to the toolbox, this may explain why it wasn't showing up for you in some cases. If you
bypass your cache this might allow you to see the page size link on old revisions. However, rereading what has been written above, it seems like you also experience this problem also on old revisions, rather than diffs between old revisions, and it is browser-specific, so maybe it's something different.
Dr pda (
talk) 08:44, 9 February 2011 (UTC)
I use this tool all the time, and it seems to work great, but I just found one article, Prince Ferdinand Philippe, Duke of Orléans, for which most of the numbers come up as 0. Spock of Vulcan ( talk) 20:38, 17 January 2011 (UTC)
I ran into a similar problem while looking at
Barak Obama. The tool only returns the File size, and 4 empty bullet locations below that.
Cliff (
talk) 18:40, 8 April 2011 (UTC)
Is there an easy option to show raw numeric counts, rather than (or in addition to) "11 kB"? Values <10000 show four digits of precision, while values >10000 show two. Readable prose size precision does matter somewhat when calculating 5x article size changes for WP:Did you know. Example: Steven Matheson (revision 413440046), actual size 11497 (by my count). -- Lexein ( talk) 00:15, 14 February 2011 (UTC)
Hi Dr pda, Your tool is wonderful. I like it. I am preparing a series of studies about Wikipedia. I would like to know whether or not your tool can count the number of sentences only in PROSE section on a Wikipedia article as your word count function works. cooldenny ( talk) 18:25, 30 April 2011 (UTC)
I have noticed since yesterday that when I want the page size to be shown, all that pops up are four bullet points with emptiness to their right while the respective statistics are supposed to be there instead. I don't know what the problem is there; I signed up for the copyediting drive, and I question how much I am capable of doing without that tool. What should happen for the tool to work again? Backtable Speak to me concerning my deeds. 03:55, 17 May 2011 (UTC)
Ever sice the "Technical maintenance will be performed soon. Temporary issues may arise but will be resolved shortly." notice has been displayed at the top of the page, the page size tool has not been working.
pluma
Ø 01:45, 5 October 2011 (UTC)
Fixed
pluma
Ø 23:12, 5 October 2011 (UTC)
if(para.parentNode.id == contentDivName || para.parentNode.nodeName == "BLOCKQUOTE"){
to
if(para.parentNode.parentNode.id == contentDivName || para.parentNode.parentNode.nodeName == "BLOCKQUOTE"){
should fix it. -- Odie5533 ( talk) 18:39, 5 October 2011 (UTC)
A similar edit needs to be made elsewhere in the script, for when you click on the link and Prose Size is already activated, then this will properly deactivate it by uncoloring the article. Gary King ( talk · scripts) 07:11, 7 October 2011 (UTC)
In the Guild of Copy Editors backlog-reduction drives, sometimes only a section of a very long article needs copyediting and this script worked well in edit-preview mode until recently (I can still get page sizes for whole articles, but not for sections). I recently added a duplicate-links highlighting tool, but am now unable to delete the duplicate-links script from my .js page to see if that's the problem (which exists in both Firefox and Chrome, so I don't think it's a browser issue). Any help much appreciated!-- Miniapolis ( talk) 02:25, 13 November 2011 (UTC)
importScript('User:Ucucha/duplinks.js'); importScript('User:Smith609/toolbox.js'); importScript('User:Topbanana/RLRL_SR_Utility.js' ); if(wgAction == 'edit') { addOnloadHook(function minorEdit() { document.getElementById('wpMinoredit').checked = true; } )}
and bypassed the cache and it still doesn't work. My JS error console has many entries for this script; is it possible my version got corrupted somehow?-- Miniapolis ( talk) 14:36, 13 November 2011 (UTC)
On pages with the template {{ Timeline geological timescale}}, the page size counter does not work. It can only count text up to the start of the template and most of the summary statistics are bullets with nothing following them. RockMagnetist ( talk) 22:26, 18 April 2012 (UTC)
For example, the page count for Geology looks like this:
RockMagnetist ( talk) 15:35, 11 May 2012 (UTC)
For the article Ra.One, I am getting the following things while checking the size :-
Document statistics:
I am certain something is pretty wrong here. Can somebody help me with this? ~*~ Ankit Bhatt~*~ 13:07, 11 May 2012 (UTC)
I've been trying to use the page size script to compare past and current revisions of a page, but the "file size" statistic isn't working. Any past revision of any page invariably displays a file size of 58kB. Everything else (prose size, image size, etc) works normally. I'm using IE, but the problem's the same on Firefox. Any ideas? DoctorKubla ( talk) 17:02, 5 July 2012 (UTC)
Please see Wikipedia:Help desk#Script for article size ( permanent link). Best regards-- Fuhghettaboutit ( talk) 23:16, 19 September 2012 (UTC)
This tool breaks on the Frog article right before some extended content, and does not count any of the subsequent 3/4 of the article. Please fix. • Jesse V. (talk) 00:09, 26 September 2012 (UTC)
Mention ofvector.js should be added next to monobook. -- Piotr Konieczny aka Prokonsul Piotrus| reply here 03:55, 6 April 2013 (UTC)
Hi, could this not be one of those bot type meta tools instead of a somewhat daunting DIY million bytes of code, and don't forget to bypass your systems..? I know, the code is probably excellent, but I'm not quite sure that I am, and then, I thought I managed to measure prose before without having to set up scripts and fiddle with my browser settings. If you start playing with words like "bypass" in machine code and you don't know what you are doing, you are asking for trouble no? ~ R. T. G 01:58, 15 July 2013 (UTC)
Hello. Will the codes be same as " User:Dr pda/prosesize.js" if I want to add this gadget to my local wikipedia by creating a page like "Mediawiki:Gadget-Prosesize.js"? Gitartha.bordoloi ( talk) 13:45, 28 December 2013 (UTC)
I had been using this for a long time. Suddenly it seems to be breaking my use of Wikipedia:HotCat. When I have nothing other than importScript('User:Dr pda/prosesize.js'); in my common.js I get the prosesize tool working but my HotCat breaks. When I remove it HotCat works again. I thought I would share. Blue Rasberry (talk) 16:50, 17 February 2014 (UTC)
I am new to this whole area, so maybe I am doing something wrong... Trying to follow the instructions, I clicked on the link to "your skin script file" which says there is no such user page "Gronk Oz/vector.js" - I accepted the option to create it.
However, when I pasted the line of code {{subst:js|User:Dr_pda/prosesize.js}} into the top of this new page, it would not allow me to save the changes. The top line (where I pasted the code) had a red cross to the left, and when I hovered the cursor over it, it displays the following error messages:
Has anybody else installed it on Chrome and can advise how to address this problem? -- Gronk Oz ( talk) 05:17, 23 July 2014 (UTC)
Prosesize returned the following for 2014 Ferguson unrest. The article has a mix of list-defined references and in-body references. The references numbers seemed too small to include the LDRs, so I copied-and-pasted the LDRs into a .txt file and saved it on my computer. The resulting file was 81 kB in size. I conclude that Prosesize does not include LDRs. It would be great if it could be modified to do so; if that is not feasible, the documentation should be updated to clarify this.
on Chrome 52.0.2743.116 m on W10. Thanks! Lfstevens ( talk) 21:33, 3 September 2016 (UTC)
Hi. The script is not working for the article Glushkov's construction algorithm. Thanks for the splendid tool, though. I hope it can be fixed soon. BroVic ( talk) 23:38, 15 November 2016 (UTC)
FYI, I have created a shortcut
WP:RPS to the guideline about readable prose size. It may be useful to point there from the script's page size stats. I suggest those changes to lines 221–226 of the source. —
JFG
talk 02:17, 29 November 2016 (UTC)
if((prose_size-refmark_size)>10240){
prose_value.innerHTML='Prose size (text only): '+((prose_size-refmark_size)/1024).toFixed(0)+' kB ('+word_count+' words) "
readable prose size"';
}
else{
prose_value.innerHTML='Prose size (text only): '+(prose_size-refmark_size)+' B ('+word_count+' words) "
readable prose size"';
}
Also seen in Giovanni Gribodo, any ideas why? Quetzal1964 20:17, 1 June 2017 (UTC) talk
User:Shubinator/DYKcheck.js seems to have the same problem. Would it be possible to fix it too? Hawkeye7 ( talk) 01:06, 2 June 2017 (UTC)
Thank you. - Ammarpad ( talk) 13:17, 12 October 2017 (UTC)
Any talk page watchers here would probably be interested in Wikipedia:Village_pump_(technical)#Prosesize_as_gadget. Galobtter ( pingó mió) 07:38, 14 November 2019 (UTC)
I am trying install this tool on my common.js page, but it does not seem to be working. I have tried following the precise steps as laid out on the help page, but I must be doing something wrong. Could someone help? Sorry for the trouble! Ruby2010 ( talk) 21:54, 30 December 2019 (UTC)
importScript('User:Ucucha/HarvErrors.js'); importScript('User:Ucucha/duplinks.js'); // User:Ucucha/duplinks importScript('User:Zhaofeng Li/Reflinks.js' ); mw.loader.load('//en.wikipedia.org/?title=User%3ADr+pda%2Fprosesize.js&action=raw&ctype=text/javascript'); // User:Dr pda/prosesize
I tried to add it, but it stopped the other scripts on my common.js page working. Kingsif ( talk) 13:59, 7 March 2020 (UTC)
A discussion is taking place to address the redirect
Wikipedia:PROSESIZE. The discussion will occur at
Wikipedia:Redirects for discussion/Log/2021 February 19#Wikipedia:PROSESIZE until a consensus is reached, and anyone, including you, is welcome to contribute to the discussion.
Hanif Al Husaini (
talk) 07:28, 19 February 2021 (UTC)