eprintid: 4686 rev_number: 11 eprint_status: archive userid: 430 dir: disk0/00/00/46/86 datestamp: 2021-12-10 10:57:14 lastmod: 2021-12-10 10:57:14 status_changed: 2021-12-10 10:57:14 type: conference_item metadata_visibility: show creators_name: Tran, Manh Cuong creators_name: Tran, Trung Kien creators_name: Nguyen, Minh Tan creators_name: Nguyen, Thu Trang creators_name: Nguyen, Son creators_name: Vo, Dinh Hieu creators_id: 17020076@vnu.edu.vn creators_id: 18020026@vnu.edu.vn creators_id: 18020050@vnu.edu.vn creators_id: trang.nguyen@vnu.edu.vn creators_id: sonnguyen@vnu.edu.vn creators_id: hieuvd@vnu.edu.vn title: API parameter recommendation based on language model and program analysis ispublished: pub subjects: IT subjects: isi_scopus_conf divisions: fac_fit abstract: APIs are extensively and frequently used in source code to leverage existing libraries and improve programming productivity. However, correctly and effectively using APIs, es- pecially from unfamiliar libraries, is a non-trivial task. Although various approaches have been proposed for recommending API method calls in code completion, suggesting actual parameters for such APIs still needs further investigating. In this paper, we introduce FLUTE, an efficient and novel approach combining program analysis and language models for recommending API parameters. With FLUTE, the source code of programs is first analyzed to generate syntactically legal and type-valid candidates. Then, these candidates are ranked using language models. Our empirical results on two large real-world projects Netbeans and Eclipse indicate that FLUTE achieves 80% and +90% in Top- 1 and Top-5 Precision, which means the tool outperforms the state-of-the-art approach. date: 2021-12-06 date_type: published full_text_status: public pres_type: paper event_title: THE 28TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE event_type: conference refereed: TRUE citation: Tran, Manh Cuong and Tran, Trung Kien and Nguyen, Minh Tan and Nguyen, Thu Trang and Nguyen, Son and Vo, Dinh Hieu (2021) API parameter recommendation based on language model and program analysis. In: THE 28TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE. document_url: https://eprints.uet.vnu.edu.vn/eprints/id/eprint/4686/1/_APSEC_21_ERA_FLUTE.pdf