Page MenuHomePhabricator

Test "Correct typos in one click" script
Open, Needs TriagePublic


"Wikipedia:Correct typos in one click" is a project that helps editors correct typos across Wikipedia.

In the following steps you will fix some typos in Wikipedia using the project script and test its functionality.

  1. Create an account on English Wikipedia (
  2. Visit the project page (
  3. Scroll to the end of the page using "Desktop scroll to bottom" button
  4. Each paragraph should have link to an article in the title, suspect word, the offered correction and some context
  5. Type in the search box: User:YOURNAME/common.js (replace YOURNAME with the account you created)
  6. Choose the option "start the ... page"
  7. In the edit box paste: importScript('User:Uziel302/typo.js'); -this should load the project script on your browser.
  8. Click "Publish page" at the bottom.
  9. Hard refresh in order to load the script. See the keyboard shortcuts of your machine at the gray box at:
  10. Go back to the project page (
  11. Buttons of "replace", "type", "remove" will appear on the project page under each paragraph title, and will allow you to correct suspect typos in one click.
  12. Find a typo where the offer correction is right and click replace
  13. There should be a popup that the typo was fixed, click it and view the changes. If no popup was seen within few seconds of correction, report a bug.
  14. Click "contributions" at the top menu and review the edits you made.
  15. Click diff button to view the before and after of the edit.
  16. Find in the project page a false positive, a word that shouldn't be corrected, and click remove.
  17. Make sure that after refresh the passage is removed.
  18. Find in the project page a word that should be corrected, instead of clicking replace use "type" and type the correction. Make sure the edit is done in the article as you typed.

Event Timeline

Uziel302 created this task.Sun, Dec 1, 6:00 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSun, Dec 1, 6:00 PM
Aklapper added a comment.EditedSun, Dec 1, 6:27 PM

Hi @Uziel302, thanks for creating this. What exactly is someone working on this task supposed to do? Which knowledge is needed, and what exactly is the goal of this task?

Zoranzoki21 added a subscriber: Zoranzoki21.

(task moved in Information needed because of question by @Aklapper)

Uziel302 added a comment.EditedSun, Dec 1, 7:15 PM

The task requires two things: scan for typos in dumps and user interface to correct in one click.
1 downloading the c program, word list and dump of enwikibooks
2 running the c program to scan the dump file for the typos on the list
3 copying user script from enwiki to enwikibooks
4 creating project page for the output and adjusting the script to run on that page
5 testing by correcting typos using the new buttons the script adds

@Uziel302: Thanks for the quick reply! Where would you get a "dump of enwikibooks"? Does "running the c program" require to first compile that program myself? Where should I "create the project page"? I assume I should create an account on a Wikimedia wiki for that first? And "enwiki" probably means "" here.
(I'm not asking these questions to annoy you, but to help you imagine being a person who would like to work on this task and might have zero knowledge about Wikimedia, to avoid misunderstandings on both sides in GCI.)

1 Download "Articles, templates, media/file descriptions, and primary meta-pages." from
2 Running the program requires compiling, which can be done by gcc command. I'm not sure about the students prior knowledge in coding.
3 Creating the project page can be done by searching "Wikibooks:Correct typos in one click" inside and clicking on the red link of "Wikibooks:Correct typos in one click" on the top of the results. It is preferred to edit on Wikibooks with an account, which can be created by clicking "Create account" on the top menu.
4 enwiki is and the same project there is at

@Aklapper anything missing?

@Uziel302: Hi, if this should go into GCI, then a full description which includes all that students should do or must know beforehand, without a need for interpretation (e.g. "What's the gcc command which I cannot find on my Windows 10 machine?"). See . You can edit the task description by clicking Edit Task. Thanks!

Uziel302 renamed this task from Expand "Correct typos in one click" project to wikibooks to Expand "Correct typos in one click" project to Wikibooks.Tue, Dec 3, 2:26 PM
Uziel302 updated the task description. (Show Details)

@Aklapper thanks for the instructions, I edited the task. Let me know if something is still missing.

Uziel302 updated the task description. (Show Details)Tue, Dec 3, 2:31 PM
Aklapper updated the task description. (Show Details)Tue, Dec 3, 9:49 PM

Thanks! Is gcc enwiki\ autocorrct.c meant to be a command? The backslash confuses me.
Which content is "basic" enough to copy it? How many typos is a contributor supposed to fix until the GCI task is approved by the mentor?
Looking at the two sections above, is a GCI student an "editor" or an "admin" or both (and why does that differentiation matter)?

Uziel302 updated the task description. (Show Details)Wed, Dec 4, 5:37 AM
Uziel302 updated the task description. (Show Details)EditedWed, Dec 4, 5:45 AM

@Aklapper the backlash was needed when I ran it since it had space in the file name, I changed the description to instruct to use file name without spaces so backlash is no longer needed.

I think treating 5 typos is enough on the editor side to understand how it works.

I added explanation about the need of both sides.

Uziel302 updated the task description. (Show Details)Wed, Dec 4, 5:50 AM

I feel a bit like a broken record however there seem to be still a lot of things that feel unclear to me. Please try hard to imagine being a complete newcomer, or define clearly required knowledge and skills beforehand.

  • Is gcc installed by default on all unix based system? (I doubt, so what would I have to do?)
  • "Search for the list of misspelled words in the downloaded wiki," - so it is not me searching, but that application does that for me? "Download this file. Compile this file. Then run that application which will search...." would be more correct, I assume? Clear steps explaining what does what in which order are welcome.
  • The task summary says "Wikibooks". The text however only talks about "". Is this task only about fixing English typos, or not?
  • I have no idea what "Treat 5 typos from the list as done on the editor side" means. Or what is an "editor side".
  • Which content on the English Wikipedia project page is considered "basic content" and which not?
  • Should I create a user account on for this? If so, how?
  • hardcodes an xml filename, so it will fail given the dumps link.
Uziel302 renamed this task from Expand "Correct typos in one click" project to Wikibooks to Test "Correct typos in one click" script.Thu, Dec 5, 6:47 PM
Uziel302 updated the task description. (Show Details)

@Aklapper I changed the task to be more adapted to newbies. As of Wikibooks, I created the project there myself:

Uziel302 updated the task description. (Show Details)Thu, Dec 5, 6:50 PM
Uziel302 updated the task description. (Show Details)