RACK: Automatic API Recommendation using Crowdsourced Knowledge
Mohammad Masudur Rahman, Chanchal K. Roy, David Lo

TL;DR
RACK is an innovative API recommendation system that leverages crowdsourced knowledge from Stack Overflow to improve code search accuracy for natural language queries, outperforming existing methods.
Contribution
It introduces a novel technique that exploits keyword-API associations from Stack Overflow to recommend relevant APIs, enhancing code search effectiveness.
Findings
RACK achieves 79% top-10 accuracy on Java API queries.
It outperforms state-of-the-art techniques in accuracy, precision, and recall.
The approach is validated on real-world code search queries.
Abstract
Traditional code search engines often do not perform well with natural language queries since they mostly apply keyword matching. These engines thus need carefully designed queries containing information about programming APIs for code search. Unfortunately, existing studies suggest that preparing an effective code search query is both challenging and time consuming for the developers. In this paper, we propose a novel API recommendation technique--RACK that recommends a list of relevant APIs for a natural language query for code search by exploiting keyword-API associations from the crowdsourced knowledge of Stack Overflow. We first motivate our technique using an exploratory study with 11 core Java packages and 344K Java posts from Stack Overflow. Experiments using 150 code search queries randomly chosen from three Java tutorial sites show that our technique recommends correct API…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
