Page MenuHomePhabricator

New AbuseFilter variable: distance
Closed, DuplicatePublicFeature

Description

Feature summary:

distance

would return the edit distance between the new version and the old version, measured by characters. For example, say we have three strings:

  1. Among incarcerated youths recieving remedial education during their incarceration, 43% do not return to school. 40% re-enroll, but drop out within a year. 10% drop out after re-enrolling, but after more than a year. Only 7% graduate high school successfully.
  2. Among detained youths recieving remedial education during their detention, 43% do not return to school. 40% re-enroll, but drop out within a year. 10% drop out after more than a year. Only 7% graduate high school successfully.
  3. 43% of detained youths recieving remedial education do not return to school. 40% re-enroll, but drop out within a year. 10% drop out after more than a year. Only 7% graduate high school successfully.

Distance between 1 and 2: 25
1 & 3: 59
2 & 3: 49

Use case(s): Some abuse filters would need to check if two revisions of a page are closely related, such as to find canned edit summaries. See https://en.wikipedia.org/wiki/Wikipedia:Edit_filter/Requested#Significance-misleading_edits

Benefits: same as use cases. Within current capabilities, it is complex or even impossible to find the actual edit distance.

Event Timeline

Pppery subscribed.

Probably this is better done as a function distance(old_wikitext, new_wikitext) than a variable.

I would also name the specific algorithm(s) implemented.

Daimona subscribed.

I agree with both comments above. Also, the main problem discussed in the past is that string distance can be computationally intensive, and we don't really want it to be run on potentially long strings such as the entire content of a heavy page.