Task:
1) Fill out samples on [[ https://github.com/nicolas-raoul/apps-android-commons/wiki/Fuzzy-category-search | GitHub wiki ]]
2) Test samples with Method A and Method B suggested on [[ http://opendata.stackexchange.com/questions/6151/fuzzy-search-of-mediawiki-commons-categories/6413#6413 | StackExchange ]] thread
**Method A: **MediaWiki API for Commons with search query for pages of type "Category" (srnamespace=14), maximum 10 results (srlimit=10):
https://commons.wikimedia.org/w/api.php?action=query&list=search&srwhat=text&srenablerewrites=1&srnamespace=14&srlimit=10&srsearch=your_string
**Method B:** MediaWiki API for Commons with opensearch for maximum 10 results (limit=10):
https://commons.wikimedia.org/w/api.php?action=opensearch&limit=10&suggest=1&search=Category:your_string
(I modified this to https://commons.wikimedia.org/w/api.php?action=opensearch&format=jsonfm&limit=10&suggest=1&search=Category:apartment%20building , just minor output change to read the results more easily)
3. Look for other possible methods