Context
Android wants the ability to provide the reason for an image suggestion. For example,
source: https://www.mediawiki.org/wiki/Wikimedia_Apps/Team/Android/Add_an_image_MVP
As the lower part of the image suggestion describes:
Suggestion reason: Used in the same article on another language Wikipedia: German
The algo provides this in the raw data from the note column. There has been requests if we can change things like jawiki to Japanese Wikipedia.
Acceptance Criteria
- Given I have made a request to the Image Suggestion API, I expect to receive a found_on for each image suggestion.
Example Response
[
{
"page": "Cat",
"suggestions": [
{
"filename": "Cheetah.jpg",
"source": "Wikipedia",
"found_on": [
"cswiki",
"nlwiki",
"zhwiki",
"azbwiki",
"dewiki",
"viwiki"
]
"confidence_rating": "string"
}
]
}Open Questions
Out of scope
- MediaSearch does not provide reasons for suggestions as to where it was found on
