Page MenuHomePhabricator

spellcheck.py could have option 'ignore word for this page'
Open, LowPublicFeature

Description

Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/99/
Reported by: malafaya
Created on: 2007-06-14 15:04:42
Subject: spellcheck.py could have option 'ignore word for this page'
Original description:
spellcheck.py could have option 'ignore word for this page'. Now it just provides the option to 'ignore once' the word. Ignoring it for the rest of the page would be a great improvement.


Version: unspecified
Severity: enhancement
See Also:
https://sourceforge.net/p/pywikipediabot/feature-requests/99
T56554: spellcheck.py — Remember words skipped in a page

Details

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:20 AM
bzimport set Reference to bz55110.
bzimport added a subscriber: Unknown Object (????).
Aklapper triaged this task as Low priority.Feb 4 2022, 10:51 AM
Aklapper changed the subtype of this task from "Task" to "Feature Request".
RaushanCode subscribed.

Hello!
I was browsing through older tasks, and this one caught my eye. I’d love to give it a try.
If no one is working on this, can I go ahead and start exploring the spellcheck.py logic?

Change #1246857 had a related patch set uploaded (by Raushan 31; author: Raushan 31):

[pywikibot/core@master] [spellcheck] Port script to core and implement 'ignore for this page' option

https://gerrit.wikimedia.org/r/1246857

Hello!
I noticed spellcheck.py was missing from the current scripts folder, so I followed the link - https://phabricator.wikimedia.org/diffusion/PWBO/browse/master/spellcheck.py - provided in T236642 to find the original code. I have now ported the script to the Core branch, updating the Python2 code to Python 3 standards (including fixes like handeleArgs to handle_args, print " " to print (""), xrange to range, AttributeErrors etc.). Additionally, I implemented the feature requested in T57110 by adding a 'p' ( similar to q for quit) option to ignore a specific word for the rest of the page.
I have uploaded the patch to Gerrit for review: https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1246857
As a newcomer, I’ve made as many changes and corrections as I could based on my current understanding of the codebase. I look forward to your feedback!