This task informs T261410: Add a link engineering: Create MySQL table for caching link recommendations.
As noted there, we might be storing:
- the raw wikitext as is
- annotated wikitext that distinguishes the algorithm-added links from the already existing links
- a diff of the old wikitext and new wikitext
It's possible we could coordinate with @MGerlach to get more structured output from the mwaddlink tool; for example while it currently just provides a new version of the article in wikitext with additional links added, the tool could provide a structured response with:
- number of links added
- a list of new proposed links (the text)
- annotated wikitext to highlight what the recommended links are
So this task should encompass both tuning the output of the mwaddlink tool as well as specifying how we'll store the output in our MySQL table.