User:Michael Devore/wiksort

''Initial documentation stub. Please ask questions if you don't understand how to install or use the script, and I will improve it.''

wikSort is a user script that sorts unique words in an article to a separate browser page. All words over six characters are alphabetically listed in a text box of the new page as a single entry, followed by the usage count. As a copyeditor, I find this list extremely useful in finding simple typographical errors, although one should always double-check that a possible misspelling or variation is really incorrect in the article.

To use the script, add the following line to the JavaScript file for your current skin:

importScript( 'User:Michael Devore/wiksort.js' );

In a typical setup, you will be using the default MonoBook skin with a JavaScript file named monobook.js. If you use the Cologne Blue skin, as I do, the file is cologneblue.js. Other skins have different file names listed at the Skin page.

Once installed, the script will add a link titled "Sort words" to either the toolbox section (default MonoBook skin) or the Edit section (Cologne Blue skin). Click on the "Sort words" link to generate a page with the sorted word list. After a short delay while the page is processed, the page will either display in a new tab or a separate browser window, depending on the browser version and options. You must enable popups for the wikipedia site, because the new generated page is considered a popup. (Since Wikipedia doesn't use advertising popups, this permission should not be too onerous.)

wikSort works best with the Firefox browser because Firefox's built-in spell checker can help you quickly locate misspelled words and inconsistent spelling within an article. However, the script was also tested with Internet Explorer version 7 to display a word list.

wikSort was tested with Windows XP and Ubuntu Linux using Firefox 2.x and 3.x with the MonoBook and Cologne Blue skins, as well as IE 7 with XP. It may not work with other browsers and skins without further work. Let me know if you have questions or problems you need help with. Messages about the script can be posted to the script's talk page, or to my general talk page.