Summary
The content to be evaluated for a given content policy may be different, depending on how the structure of the content is described in the content policy text. We should though avoid code duplication and increase reliability by making a public service that allows each content policy definition to get snippets like the edit summary, diff of the revision, and lines added
Technical details
- The service likely needs to allow fetching:
- The lede of an article
- The title of a page
- The edit summary of a revision (though maybe we can just call the RevisionRecord method directly)
- The unified diff of a revision compared to the parent revision
- The added lines of a revision compared to the parent revision
- The removed lines of a revision compared to the parent revision
- The service may also want to include methods to stitch these parts together and return a unified content
Acceptance criteria
- The service exists in MediaWiki-extensions-WikimediaAntiAbuse