Page MenuHomePhabricator

Implement a generic text-matching capability
Open, Needs TriagePublic

Description

We can imagine many Edit Checks that depend on text-matching. [i][ii][iii][iv][v]

This task involves the work of introducing a generic text-matching capability that would relieve future Check authors of having to write custom code to detect if and where the sort of text the Check they're writing is scoped to is present within an article

Story

  • As a developer seeking to introduce a new Edit Check, I want to be able to detect – and subsequently make people aware– if/when the change(s) they're making introduces text/characters within an article that defies consented upon policies/guidelines so that I can help people publish edits that improve the quality and coverage of Wikipedia.

Demo

https://patchdemo.wmflabs.org/wikis/7cbeaac332/wiki/John_Gregory_(footballer)?veaction=edit&ecenable=1

TODO

  • Define what products/experiences this technical capability will "power." In doing this, we'll come to decide what about the currently implementation might need to be revised/extended to service these use cases.

Requirements


i. Ensuring the the spelling of a person's name is in line a locale's birth certificate polices, as is the case with the State of Texas and Beyoncé:

Screenshot 2024-05-21 at 11.59.44 AM.png (566×972 px, 127 KB)

ii. Prompting people to reconsider including emojis, ™ and ®, and similar symbols in article text
iii. Prompting people to avoid using title case in a context where sentence case is preferred.
iv. Prompting people to avoid using a word from a variety of language different from the one the article is tagged as having (British/American English, France/Canada French...)
v. Prompting people to avoid words/language volunteers at a project have reached consensus on seeing as biased

Event Timeline

ppelberg added a subscriber: DLynch.

Per what @Esanders shared offline today:

  1. The functionality this task is asking for is largely written, although not yet merged
  2. Before "1.", @Esanders and @DLynch will talk to determine what – if any – adjustments need to be made to current implementation before merging broader set of Edit Check changes
ppelberg updated the task description. (Show Details)
ppelberg moved this task from Triaged to New functionality on the EditCheck board.